app.scss 16 KB

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