app.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685
  1. /* THEME SPECIFIC STYLES */
  2. .contents {
  3. color: mc('grey', '800');
  4. padding: .5rem 0 50px;
  5. position: relative;
  6. > div > *:first-child {
  7. margin-top: 0;
  8. }
  9. @at-root .theme--dark & {
  10. // background-color: darken(mc('grey', '900'), 4%);
  11. color: mc('grey', '300');
  12. a {
  13. color: mc('blue', '100');
  14. }
  15. }
  16. // ---------------------------------
  17. // HEADERS
  18. // ---------------------------------
  19. h1, h2, h3, h4, h5, h6 {
  20. position: relative;
  21. &:before {
  22. display: block;
  23. content: " ";
  24. width: 1px;
  25. margin-top: -75px;
  26. height: 75px;
  27. visibility: hidden;
  28. z-index: -1;
  29. }
  30. &:first-child {
  31. padding-top: 0;
  32. }
  33. &:hover {
  34. .toc-anchor {
  35. display: block;
  36. }
  37. }
  38. .toc-anchor {
  39. display: none;
  40. position: absolute;
  41. right: 1rem;
  42. bottom: .5rem;
  43. font-size: 1.25rem;
  44. text-decoration: none;
  45. color: mc('grey', '500');
  46. }
  47. & + h2, & + h3, & + h4, & + h5, & + h6 {
  48. margin-top: 8px;
  49. }
  50. }
  51. h1 {
  52. padding: 0;
  53. color: mc('blue', '800');
  54. margin-top: 2rem;
  55. position: relative;
  56. @at-root .theme--dark & {
  57. color: mc('grey', '300');
  58. }
  59. &::after {
  60. content: '';
  61. position: absolute;
  62. bottom: 0;
  63. left: 0;
  64. width: 100%;
  65. height: 2px;
  66. background: linear-gradient(to right, mc('theme', 'primary'), rgba(mc('theme', 'primary'), 0));
  67. border-radius: 3px;
  68. @at-root .theme--dark & {
  69. background: linear-gradient(to right, mc('blue', '300') 0%, mc('blue', '500') 10%, rgba(mc('blue', '900'), 0) 100%);
  70. }
  71. @at-root .application--is-rtl & {
  72. background: linear-gradient(to left, mc('theme', 'primary'), rgba(mc('theme', 'primary'), 0));
  73. }
  74. @at-root .theme--dark.application--is-rtl & {
  75. background: linear-gradient(to left, mc('grey', '600'), rgba(mc('grey', '600'), 0));
  76. }
  77. }
  78. }
  79. h2 {
  80. margin: 1rem 0 0 0;
  81. color: mc('grey', '800');
  82. position: relative;
  83. @at-root .theme--dark & {
  84. color: mc('grey', '400');
  85. }
  86. &::after {
  87. content: '';
  88. position: absolute;
  89. bottom: 0;
  90. left: 0;
  91. width: 100%;
  92. height: 1px;
  93. background: linear-gradient(to right, mc('grey', '700'), rgba(mc('grey', '700'), 0));
  94. @at-root .theme--dark & {
  95. background: linear-gradient(to right, mc('grey', '300'), rgba(mc('grey', '700'), 0));
  96. }
  97. @at-root .application--is-rtl & {
  98. background: linear-gradient(to left, mc('grey', '700'), rgba(mc('grey', '700'), 0));
  99. }
  100. @at-root .theme--dark.application--is-rtl & {
  101. background: linear-gradient(to left, mc('grey', '300'), rgba(mc('grey', '700'), 0));
  102. }
  103. }
  104. }
  105. h3 {
  106. margin: 8px 0 0 0;
  107. color: mc('grey', '700');
  108. position: relative;
  109. @at-root .theme--dark & {
  110. color: mc('grey', '600');
  111. }
  112. &::after {
  113. content: '';
  114. position: absolute;
  115. bottom: 0;
  116. left: 0;
  117. width: 100%;
  118. height: 1px;
  119. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 90%);
  120. }
  121. }
  122. h4, h5, h6 {
  123. font-size: 1rem;
  124. margin: 8px 0 0 0;
  125. color: mc('grey', '700');
  126. position: relative;
  127. @at-root .theme--dark & {
  128. color: mc('grey', '600');
  129. }
  130. &::after {
  131. content: '';
  132. position: absolute;
  133. bottom: 0;
  134. left: 0;
  135. width: 100%;
  136. height: 1px;
  137. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 70%);
  138. }
  139. }
  140. h5 {
  141. &::after {
  142. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 50%);
  143. }
  144. }
  145. h6 {
  146. &::after {
  147. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 30%);
  148. }
  149. }
  150. // ---------------------------------
  151. // PARAGRAPHS
  152. // ---------------------------------
  153. p {
  154. padding: 1rem 24px 0 24px;
  155. margin: 0;
  156. text-align: justify;
  157. @at-root .contents > div > p:first-child {
  158. padding-top: 0;
  159. }
  160. @at-root .v-application & {
  161. margin-bottom: 0;
  162. }
  163. }
  164. hr {
  165. margin: 1rem 0;
  166. height: 1px;
  167. border: none;
  168. background-color: mc('grey', '400');
  169. @at-root .theme--dark & {
  170. background-color: mc('grey', '700');
  171. }
  172. }
  173. .emoji {
  174. height: 1.25em;
  175. margin: 0 1px -4px;
  176. }
  177. blockquote {
  178. padding: 0 0 1rem 0;
  179. border-left: 5px solid mc('blue', '500');
  180. border-radius: .5rem;
  181. margin: 1rem 0;
  182. > p:first-child .emoji {
  183. margin-right: .5rem;
  184. }
  185. &.valign-center > p {
  186. display: flex;
  187. align-items: center;
  188. }
  189. &.is-info {
  190. background-color: mc('blue', '50');
  191. background-image: radial-gradient(ellipse at top, mc('blue', '50'), lighten(mc('blue', '50'), 5%));
  192. border-color: mc('blue', '100');
  193. box-shadow: 0 0 2px 0 mc('blue', '100');
  194. code {
  195. background-color: mc('blue', '50');
  196. color: mc('blue', '800');
  197. }
  198. @at-root .theme--dark & {
  199. background-color: mc('grey', '900');
  200. background-image: radial-gradient(ellipse at top, rgba(mc('blue', '900'), .25), rgba(darken(mc('blue', '900'), 5%), .2));
  201. border-color: mc('blue', '500');
  202. box-shadow: 0 0 2px 0 mc('grey', '900');
  203. }
  204. }
  205. &.is-warning {
  206. background-color: mc('orange', '50');
  207. background-image: radial-gradient(ellipse at top, mc('orange', '50'), lighten(mc('orange', '50'), 5%));
  208. border-color: mc('orange', '100');
  209. box-shadow: 0 0 2px 0 mc('orange', '100');
  210. code {
  211. background-color: mc('orange', '50');
  212. color: mc('orange', '800');
  213. }
  214. @at-root .theme--dark & {
  215. background-color: mc('grey', '900');
  216. background-image: radial-gradient(ellipse at top, rgba(mc('orange', '900'), .25), rgba(darken(mc('orange', '900'), 5%), .2));
  217. border-color: mc('orange', '500');
  218. box-shadow: 0 0 2px 0 mc('grey', '900');
  219. }
  220. }
  221. &.is-danger {
  222. background-color: mc('red', '50');
  223. background-image: radial-gradient(ellipse at top, mc('red', '50'), lighten(mc('red', '50'), 5%));
  224. border-color: mc('red', '100');
  225. box-shadow: 0 0 2px 0 mc('red', '100');
  226. code {
  227. background-color: mc('red', '50');
  228. color: mc('red', '800');
  229. }
  230. @at-root .theme--dark & {
  231. background-color: mc('grey', '900');
  232. background-image: radial-gradient(ellipse at top, rgba(mc('red', '900'), .1), rgba(darken(mc('red', '900'), 5%), .2));
  233. border-color: mc('red', '500');
  234. box-shadow: 0 0 2px 0 mc('grey', '900');
  235. }
  236. }
  237. &.is-success {
  238. background-color: mc('green', '50');
  239. background-image: radial-gradient(ellipse at top, mc('green', '50'), lighten(mc('green', '50'), 5%));
  240. border-color: mc('green', '100');
  241. box-shadow: 0 0 2px 0 mc('green', '100');
  242. code {
  243. background-color: mc('green', '50');
  244. color: mc('green', '800');
  245. }
  246. @at-root .theme--dark & {
  247. background-color: mc('grey', '900');
  248. background-image: radial-gradient(ellipse at top, rgba(mc('green', '900'), .4), rgba(darken(mc('green', '900'), 5%), .2));
  249. border-color: mc('green', '500');
  250. box-shadow: 0 0 2px 0 mc('grey', '900');
  251. }
  252. }
  253. }
  254. // ---------------------------------
  255. // LISTS
  256. // ---------------------------------
  257. ol, ul {
  258. padding: 1rem 24px 0 24px;
  259. list-style-position: inside;
  260. li + li {
  261. margin-top: .5rem;
  262. }
  263. &.links-list {
  264. li {
  265. background-color: mc('grey', '50');
  266. background-image: linear-gradient(to bottom, #FFF, mc('grey', '50'));
  267. border-right: 1px solid mc('grey', '200');
  268. border-bottom: 1px solid mc('grey', '200');
  269. border-left: 5px solid mc('grey', '300');
  270. box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
  271. padding: 1rem;
  272. border-radius: 5px;
  273. font-weight: 500;
  274. &:hover {
  275. background-image: linear-gradient(to bottom, #FFF, lighten(mc('blue', '50'), 4%));
  276. border-left-color: mc('blue', '500');
  277. cursor: pointer;
  278. }
  279. &::before {
  280. content: '';
  281. display: none;
  282. }
  283. > a {
  284. display: block;
  285. text-decoration: none;
  286. margin: -1rem;
  287. padding: 1rem;
  288. > em {
  289. font-weight: 400;
  290. font-style: normal;
  291. color: mc('grey', '700');
  292. display: inline-block;
  293. padding-left: .5rem;
  294. border-left: 1px solid mc('grey', '300');
  295. margin-left: .5rem;
  296. &.is-block {
  297. display: block;
  298. padding-left: 0;
  299. margin-left: 0;
  300. border-left: none;
  301. }
  302. }
  303. }
  304. > em {
  305. font-weight: 400;
  306. font-style: normal;
  307. }
  308. @at-root .theme--dark & {
  309. background-color: mc('grey', '50');
  310. background-image: linear-gradient(to bottom, lighten(mc('grey', '900'), 5%), mc('grey', '900'));
  311. border-right: 1px solid mc('grey', '900');
  312. border-bottom: 1px solid mc('grey', '900');
  313. border-left: 5px solid mc('grey', '700');
  314. box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.1);
  315. &:hover {
  316. background-image: linear-gradient(to bottom, lighten(mc('grey', '900'), 2%), darken(mc('grey', '900'), 3%));
  317. border-left-color: mc('indigo', '300');
  318. cursor: pointer;
  319. }
  320. }
  321. }
  322. }
  323. &.grid-list {
  324. margin: 1rem 24px 0 24px;
  325. background-color: #FFF;
  326. border: 1px solid mc('grey', '200');
  327. padding: 1px;
  328. display: inline-block;
  329. @at-root .theme--dark & {
  330. background-color: #000;
  331. border: 1px solid mc('grey', '800');
  332. }
  333. li {
  334. background-color: mc('grey', '50');
  335. padding: .6rem 1rem;
  336. display: block;
  337. &:nth-child(odd) {
  338. background-color: mc('grey', '100');
  339. }
  340. & + li {
  341. margin-top: 0;
  342. }
  343. &::before {
  344. content: '';
  345. display: none;
  346. }
  347. @at-root .theme--dark & {
  348. background-color: mc('grey', '900');
  349. &:nth-child(odd) {
  350. background-color: darken(mc('grey', '900'), 5%);
  351. }
  352. }
  353. }
  354. }
  355. }
  356. ul {
  357. list-style: none;
  358. > li::before {
  359. content: '\25b8';
  360. color: mc('grey', '600');
  361. display: inline-block;
  362. width: 1.35rem;
  363. }
  364. }
  365. // ---------------------------------
  366. // CODE
  367. // ---------------------------------
  368. code {
  369. background-color: mc('indigo', '50');
  370. padding: 0 5px;
  371. color: mc('indigo', '800');
  372. font-family: 'Roboto Mono', monospace;
  373. font-weight: normal;
  374. font-size: 1rem;
  375. box-shadow: none;
  376. &::before, &::after {
  377. display: none;
  378. }
  379. @at-root .theme--dark & {
  380. background-color: darken(mc('grey', '900'), 5%);
  381. color: mc('indigo', '100');
  382. }
  383. }
  384. .prismjs{
  385. border: none;
  386. border-radius: 5px;
  387. box-shadow: initial;
  388. background-color: mc('grey', '900');
  389. padding: 1rem 1rem 1rem 3rem;
  390. margin: 1rem 24px;
  391. @at-root .theme--dark & {
  392. background-color: darken(mc('grey', '900'), 5%);
  393. }
  394. > code {
  395. background-color: transparent;
  396. padding: 0;
  397. color: #FFF;
  398. box-shadow: initial;
  399. display: block;
  400. font-size: .85rem;
  401. font-family: 'Roboto Mono', monospace;
  402. &:after, &:before {
  403. content: initial;
  404. letter-spacing: initial;
  405. }
  406. }
  407. }
  408. // ---------------------------------
  409. // TASK LISTS
  410. // ---------------------------------
  411. .task-list-item {
  412. position: relative;
  413. list-style-type: none;
  414. &-checkbox[disabled] {
  415. display: none;
  416. & + label {
  417. padding-left: 1.5rem;
  418. }
  419. & + label::before {
  420. position: absolute;
  421. left: 0;
  422. top: 2px;
  423. content: ' ';
  424. display: block;
  425. width: 1.1rem;
  426. height: 1.1rem;
  427. background-color: #FFF;
  428. border: 1px solid mc('grey', '400');
  429. border-radius: 2px;
  430. font-weight: bold;
  431. font-size: .8rem;
  432. line-height: 1rem;
  433. text-align: center;
  434. @at-root .theme--dark & {
  435. background-color: mc('grey', '900');
  436. border-color: mc('grey', '700');
  437. }
  438. }
  439. &[checked] + label::before {
  440. content: '✓';
  441. }
  442. }
  443. .contains-task-list {
  444. padding: .5rem 0 0 1.5rem;
  445. }
  446. }
  447. // ---------------------------------
  448. // TABLES
  449. // ---------------------------------
  450. table {
  451. margin: .5rem 1.75rem;
  452. border-spacing: 0;
  453. th {
  454. padding: .75rem;
  455. border-bottom: 2px solid mc('grey', '500');
  456. color: mc('grey', '600');
  457. }
  458. td {
  459. padding: .75rem;
  460. }
  461. tr {
  462. td {
  463. border-bottom: 1px solid mc('grey', '200');
  464. }
  465. }
  466. }
  467. // ---------------------------------
  468. // IMAGES
  469. // ---------------------------------
  470. img {
  471. max-width: 100%;
  472. &.align-left {
  473. float: left;
  474. margin: 0 1rem 1rem 0;
  475. }
  476. &.align-right {
  477. float: right;
  478. margin: 0 0 1rem 1rem;
  479. }
  480. &.align-center {
  481. display: block;
  482. max-width: 100%;
  483. margin: auto;
  484. }
  485. &.align-abstopright {
  486. position: absolute;
  487. top: -90px;
  488. right: 1rem;
  489. height: calc(90px - 32px);
  490. width: auto;
  491. }
  492. &.decor-shadow {
  493. box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
  494. }
  495. &.decor-outline {
  496. border: 1px solid mc('grey', '400');
  497. }
  498. }
  499. // ---------------------------------
  500. // DETAILS
  501. // ---------------------------------
  502. details {
  503. background-color: mc('grey', '50');
  504. margin: 1rem 2rem;
  505. border: 1px solid mc('grey', '300');
  506. border-radius: 7px;
  507. > p {
  508. padding-left: 0;
  509. }
  510. summary {
  511. border-radius: 7px;
  512. background-color: mc('grey', '50');
  513. cursor: pointer;
  514. height: 40px;
  515. display: flex;
  516. align-items: center;
  517. padding: 0 1rem;
  518. transition: background-color .4s ease;
  519. &:focus {
  520. outline: none;
  521. background-color: mc('grey', '100');
  522. }
  523. }
  524. &[open] {
  525. padding: 1rem;
  526. summary {
  527. background-color: mc('grey', '100');
  528. border-bottom: 1px solid mc('grey', '300');
  529. border-bottom-left-radius: 0;
  530. border-bottom-right-radius: 0;
  531. margin: -1rem -1rem 1rem -1rem;
  532. }
  533. }
  534. @at-root .theme--dark & {
  535. background-color: mc('grey', '900');
  536. border-color: mc('grey', '700');
  537. summary {
  538. background-color: mc('grey', '900');
  539. border-color: mc('grey', '700');
  540. }
  541. &[open] summary {
  542. background-color: lighten(mc('grey', '900'), 5%);
  543. }
  544. }
  545. }
  546. }
  547. // ---------------
  548. // PRINT OVERRIDES
  549. // ---------------
  550. @media print {
  551. .nav-header,
  552. .v-navigation-drawer,
  553. .v-footer,
  554. .v-btn--fab,
  555. .page-col-sd
  556. {
  557. display: none !important;
  558. }
  559. .page-col-content {
  560. flex-basis: 100% !important;
  561. flex-grow: 1 !important;
  562. max-width: 100% !important;
  563. margin-left: 0 !important;
  564. > .v-toolbar {
  565. border: 1px solid mc('grey', '300') !important;
  566. border-radius: 7px !important;
  567. & + .v-divider {
  568. display: none !important;
  569. }
  570. }
  571. }
  572. .v-content {
  573. padding: 0 !important;
  574. font-size: 14px;
  575. }
  576. }