app.scss 23 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126
  1. /* THEME SPECIFIC STYLES */
  2. .v-main .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: '\F03CC';
  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. & + hr.footnotes-sep {
  65. display: none;
  66. }
  67. }
  68. h1 {
  69. padding: 0;
  70. color: mc('blue', '800');
  71. margin-top: 2rem;
  72. position: relative;
  73. @at-root .theme--dark & {
  74. color: mc('grey', '300');
  75. }
  76. &::after {
  77. content: '';
  78. position: absolute;
  79. bottom: 0;
  80. left: 0;
  81. width: 100%;
  82. height: 2px;
  83. background: linear-gradient(to right, mc('theme', 'primary'), rgba(mc('theme', 'primary'), 0));
  84. border-radius: 3px;
  85. @at-root .theme--dark & {
  86. background: linear-gradient(to right, mc('blue', '300') 0%, mc('blue', '500') 10%, rgba(mc('blue', '900'), 0) 100%);
  87. }
  88. @at-root .is-rtl & {
  89. background: linear-gradient(to left, mc('theme', 'primary'), rgba(mc('theme', 'primary'), 0));
  90. }
  91. @at-root .theme--dark.is-rtl & {
  92. background: linear-gradient(to left, mc('grey', '600'), rgba(mc('grey', '600'), 0));
  93. }
  94. }
  95. }
  96. h2 {
  97. margin: 1rem 0 0 0;
  98. color: mc('grey', '800');
  99. position: relative;
  100. @at-root .theme--dark & {
  101. color: mc('grey', '400');
  102. }
  103. &::after {
  104. content: '';
  105. position: absolute;
  106. bottom: 0;
  107. left: 0;
  108. width: 100%;
  109. height: 1px;
  110. background: linear-gradient(to right, mc('grey', '700'), rgba(mc('grey', '700'), 0));
  111. @at-root .theme--dark & {
  112. background: linear-gradient(to right, mc('grey', '300'), rgba(mc('grey', '700'), 0));
  113. }
  114. @at-root .is-rtl & {
  115. background: linear-gradient(to left, mc('grey', '700'), rgba(mc('grey', '700'), 0));
  116. }
  117. @at-root .theme--dark.is-rtl & {
  118. background: linear-gradient(to left, mc('grey', '300'), rgba(mc('grey', '700'), 0));
  119. }
  120. }
  121. }
  122. h3 {
  123. margin: 8px 0 0 0;
  124. color: mc('grey', '700');
  125. position: relative;
  126. @at-root .theme--dark & {
  127. color: mc('grey', '600');
  128. }
  129. &::after {
  130. content: '';
  131. position: absolute;
  132. bottom: 0;
  133. left: 0;
  134. width: 100%;
  135. height: 1px;
  136. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 90%);
  137. }
  138. }
  139. h4, h5, h6 {
  140. font-size: 1rem;
  141. margin: 8px 0 0 0;
  142. color: mc('grey', '700');
  143. position: relative;
  144. @at-root .theme--dark & {
  145. color: mc('grey', '600');
  146. }
  147. &::after {
  148. content: '';
  149. position: absolute;
  150. bottom: 0;
  151. left: 0;
  152. width: 100%;
  153. height: 1px;
  154. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 70%);
  155. }
  156. }
  157. h5 {
  158. &::after {
  159. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 50%);
  160. }
  161. }
  162. h6 {
  163. &::after {
  164. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 30%);
  165. }
  166. }
  167. // ---------------------------------
  168. // PARAGRAPHS
  169. // ---------------------------------
  170. p {
  171. padding: 1rem 0 0 0;
  172. margin: 0;
  173. @at-root .contents > div > p:first-child {
  174. padding-top: 0;
  175. }
  176. @at-root .v-application & {
  177. margin-bottom: 0;
  178. }
  179. }
  180. hr {
  181. margin: 1rem 0;
  182. height: 1px;
  183. border: none;
  184. background-color: mc('grey', '400');
  185. @at-root .theme--dark & {
  186. background-color: mc('grey', '700');
  187. }
  188. }
  189. .emoji {
  190. height: 1.25em;
  191. margin: 0 1px -4px;
  192. }
  193. .text-huge {
  194. font-size: 1.8em;
  195. }
  196. .text-big {
  197. font-size: 1.4em;
  198. }
  199. .text-small {
  200. font-size: .85em;
  201. }
  202. .text-tiny {
  203. font-size: .7em;
  204. }
  205. blockquote {
  206. padding: 0 1rem 1rem 1rem;
  207. background-color: mc('blue-grey', '50');
  208. border-left: 55px solid mc('blue-grey', '500');
  209. border-radius: .5rem;
  210. margin: 1rem 0;
  211. position: relative;
  212. @at-root .theme--dark & {
  213. background-color: mc('blue-grey', '900');
  214. }
  215. &::before {
  216. display: inline-block;
  217. font: normal normal normal 24px/1 "Material Design Icons", sans-serif;
  218. position: absolute;
  219. margin-top: -12px;
  220. top: 50%;
  221. left: -38px;
  222. color: rgba(255, 255, 255, .7);
  223. content: "\F0757";
  224. }
  225. > p:first-child .emoji {
  226. margin-right: .5rem;
  227. }
  228. &.valign-center > p {
  229. display: flex;
  230. align-items: center;
  231. }
  232. &.is-info {
  233. background-color: mc('blue', '50');
  234. border-color: mc('blue', '300');
  235. color: mc('blue', '900');
  236. &::before {
  237. content: "\F02FC";
  238. }
  239. code {
  240. background-color: mc('blue', '50');
  241. color: mc('blue', '800');
  242. }
  243. @at-root .theme--dark & {
  244. background-color: mc('blue', '900');
  245. color: mc('blue', '50');
  246. border-color: mc('blue', '500');
  247. }
  248. }
  249. &.is-warning {
  250. background-color: mc('orange', '50');
  251. border-color: mc('orange', '300');
  252. color: darken(mc('orange', '900'), 10%);
  253. &::before {
  254. content: "\F0026";
  255. }
  256. code {
  257. background-color: mc('orange', '50');
  258. color: mc('orange', '800');
  259. }
  260. @at-root .theme--dark & {
  261. background-color: darken(mc('orange', '900'), 5%);
  262. color: mc('orange', '100');
  263. border-color: mc('orange', '500');
  264. box-shadow: 0 0 2px 0 mc('grey', '900');
  265. }
  266. }
  267. &.is-danger {
  268. background-color: mc('red', '50');
  269. border-color: mc('red', '300');
  270. color: mc('red', '900');
  271. &::before {
  272. content: "\F0159";
  273. }
  274. code {
  275. background-color: mc('red', '50');
  276. color: mc('red', '800');
  277. }
  278. @at-root .theme--dark & {
  279. background-color: mc('red', '900');
  280. color: mc('red', '100');
  281. border-color: mc('red', '500');
  282. }
  283. }
  284. &.is-success {
  285. background-color: mc('green', '50');
  286. border-color: mc('green', '300');
  287. color: mc('green', '900');
  288. &::before {
  289. content: "\F0E1E";
  290. }
  291. code {
  292. background-color: mc('green', '50');
  293. color: mc('green', '800');
  294. }
  295. @at-root .theme--dark & {
  296. background-color: mc('green', '900');
  297. color: mc('green', '50');
  298. border-color: mc('green', '500');
  299. }
  300. }
  301. }
  302. // ---------------------------------
  303. // LISTS
  304. // ---------------------------------
  305. ol, ul:not(.tabset-tabs) {
  306. padding-top: 1rem;
  307. width: 100%;
  308. @at-root .is-rtl & {
  309. padding-left: 0;
  310. padding-right: 1rem;
  311. }
  312. li > ul, li > ol {
  313. padding-top: .5rem;
  314. padding-left: 1rem;
  315. @at-root .is-rtl & {
  316. padding-left: 0;
  317. padding-right: 1rem;
  318. }
  319. }
  320. li + li {
  321. margin-top: .5rem;
  322. }
  323. &.links-list {
  324. padding-left: 0;
  325. list-style-type: none;
  326. @at-root .is-rtl & {
  327. padding-right: 0;
  328. }
  329. li {
  330. background-color: mc('grey', '50');
  331. background-image: linear-gradient(to bottom, #FFF, mc('grey', '50'));
  332. border-right: 1px solid mc('grey', '200');
  333. border-bottom: 1px solid mc('grey', '200');
  334. border-left: 5px solid mc('grey', '300');
  335. box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
  336. padding: 1rem;
  337. border-radius: 5px;
  338. font-weight: 500;
  339. @at-root .is-rtl & {
  340. border-left-width: 1px;
  341. border-right-width: 5px;
  342. }
  343. &:hover {
  344. background-image: linear-gradient(to bottom, #FFF, lighten(mc('blue', '50'), 4%));
  345. border-left-color: mc('blue', '500');
  346. cursor: pointer;
  347. @at-root .is-rtl & {
  348. border-left-color: mc('grey', '200');
  349. border-right-width: mc('blue', '500');
  350. }
  351. }
  352. &::before {
  353. content: '';
  354. display: none;
  355. }
  356. > a {
  357. display: block;
  358. text-decoration: none;
  359. margin: -1rem;
  360. padding: 1rem;
  361. > em {
  362. font-weight: 400;
  363. font-style: normal;
  364. color: mc('grey', '700');
  365. display: inline-block;
  366. padding-left: .5rem;
  367. border-left: 1px solid mc('grey', '300');
  368. margin-left: .5rem;
  369. &.is-block {
  370. display: block;
  371. padding-left: 0;
  372. margin-left: 0;
  373. border-left: none;
  374. }
  375. }
  376. }
  377. > em {
  378. font-weight: 400;
  379. font-style: normal;
  380. }
  381. @at-root .theme--dark & {
  382. background-color: mc('grey', '50');
  383. background-image: linear-gradient(to bottom, lighten(mc('grey', '900'), 5%), mc('grey', '900'));
  384. border-right: 1px solid mc('grey', '900');
  385. border-bottom: 1px solid mc('grey', '900');
  386. border-left: 5px solid mc('grey', '700');
  387. box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.1);
  388. @at-root .theme--dark.is-rtl & {
  389. border-left-width: 1px;
  390. border-right-width: 5px;
  391. }
  392. &:hover {
  393. background-image: linear-gradient(to bottom, lighten(mc('grey', '900'), 2%), darken(mc('grey', '900'), 3%));
  394. border-left-color: mc('indigo', '300');
  395. cursor: pointer;
  396. @at-root .theme--dark.is-rtl & {
  397. border-left-color: mc('grey', '900');
  398. border-right-width: mc('indigo', '300');
  399. }
  400. }
  401. }
  402. }
  403. }
  404. &.grid-list {
  405. margin: 1rem 0 0 0;
  406. background-color: #FFF;
  407. border: 1px solid mc('grey', '200');
  408. padding: 1px;
  409. display: inline-block;
  410. list-style-type: none;
  411. @at-root .theme--dark & {
  412. background-color: #000;
  413. border: 1px solid mc('grey', '800');
  414. }
  415. li {
  416. background-color: mc('grey', '50');
  417. padding: .6rem 1rem;
  418. display: block;
  419. &:nth-child(odd) {
  420. background-color: mc('grey', '100');
  421. }
  422. & + li {
  423. margin-top: 0;
  424. }
  425. &::before {
  426. content: '';
  427. display: none;
  428. }
  429. @at-root .theme--dark & {
  430. background-color: mc('grey', '900');
  431. &:nth-child(odd) {
  432. background-color: darken(mc('grey', '900'), 5%);
  433. }
  434. }
  435. }
  436. }
  437. }
  438. ul:not(.tabset-tabs):not(.contains-task-list) {
  439. list-style: none;
  440. > li::before {
  441. position: absolute;
  442. left: -1.1rem;
  443. content: '\25b8';
  444. color: mc('grey', '600');
  445. width: 1.35rem;
  446. @at-root .is-rtl & {
  447. right: -1.1rem;
  448. content: '\25C3';
  449. }
  450. }
  451. }
  452. ol, ul:not(.tabset-tabs) {
  453. > li {
  454. position: relative;
  455. > p {
  456. display:inline-block;
  457. vertical-align:top;
  458. padding-top:0;
  459. }
  460. }
  461. }
  462. // ---------------------------------
  463. // CODE
  464. // ---------------------------------
  465. code {
  466. background-color: mc('indigo', '50');
  467. padding: 0 5px;
  468. color: mc('indigo', '800');
  469. font-family: 'Roboto Mono', monospace;
  470. font-weight: normal;
  471. font-size: 1rem;
  472. box-shadow: none;
  473. &::before, &::after {
  474. display: none;
  475. }
  476. @at-root .theme--dark & {
  477. background-color: darken(mc('grey', '900'), 5%);
  478. color: mc('indigo', '100');
  479. }
  480. }
  481. .prismjs{
  482. border: none;
  483. border-radius: 5px;
  484. box-shadow: initial;
  485. background-color: mc('grey', '900');
  486. padding: 1rem 1rem 1rem 3rem;
  487. margin: 1rem 0;
  488. @at-root .theme--dark & {
  489. background-color: darken(mc('grey', '900'), 5%);
  490. }
  491. > code {
  492. background-color: transparent;
  493. padding: 0;
  494. color: #FFF;
  495. box-shadow: initial;
  496. display: block;
  497. font-size: .85rem;
  498. font-family: 'Roboto Mono', monospace;
  499. &:after, &:before {
  500. content: initial;
  501. letter-spacing: initial;
  502. }
  503. }
  504. }
  505. .diagram {
  506. margin-top: 1rem;
  507. overflow: auto;
  508. svg:first-child {
  509. direction: ltr;
  510. }
  511. }
  512. // ---------------------------------
  513. // TASK LISTS
  514. // ---------------------------------
  515. .contains-task-list {
  516. padding-left: 0;
  517. }
  518. .task-list-item {
  519. position: relative;
  520. list-style-type: none;
  521. &-checkbox[disabled] {
  522. width: 1.1rem;
  523. height: 1.1rem;
  524. top: 2px;
  525. position: relative;
  526. margin-right: 2px;
  527. &::after {
  528. position: absolute;
  529. left: 0;
  530. top: 0;
  531. content: ' ';
  532. display: block;
  533. width: 1.1rem;
  534. height: 1.1rem;
  535. background-color: #FFF;
  536. border: 1px solid mc('grey', '400');
  537. border-radius: 2px;
  538. font-weight: bold;
  539. font-size: .8rem;
  540. line-height: 1rem;
  541. text-align: center;
  542. @at-root .theme--dark & {
  543. background-color: mc('grey', '900');
  544. border-color: mc('grey', '700');
  545. }
  546. }
  547. &[checked]::after {
  548. content: '✓';
  549. }
  550. }
  551. .contains-task-list {
  552. padding: .5rem 0 0 1.5rem;
  553. }
  554. }
  555. // ---------------------------------
  556. // TABLES
  557. // ---------------------------------
  558. table {
  559. margin: .5rem 0;
  560. border-spacing: 0;
  561. border-radius: 5px;
  562. border: 1px solid mc('grey', '300');
  563. @at-root .theme--dark & {
  564. border-color: mc('grey', '600');
  565. }
  566. &.dense {
  567. td, th {
  568. font-size: .85rem;
  569. padding: .5rem;
  570. }
  571. }
  572. th {
  573. padding: .75rem;
  574. border-bottom: 2px solid mc('grey', '500');
  575. color: mc('grey', '600');
  576. background-color: mc('grey', '100');
  577. @at-root .theme--dark & {
  578. background-color: darken(mc('grey', '900'), 8%);
  579. border-bottom-color: mc('grey', '600');
  580. color: mc('grey', '500');
  581. }
  582. &:first-child {
  583. border-top-left-radius: 7px;
  584. }
  585. &:last-child {
  586. border-top-right-radius: 7px;
  587. }
  588. }
  589. td {
  590. padding: .75rem;
  591. }
  592. tr {
  593. td {
  594. border-bottom: 1px solid mc('grey', '300');
  595. border-right: 1px solid mc('grey', '100');
  596. @at-root .theme--dark & {
  597. border-bottom-color: mc('grey', '700');
  598. border-right-color: mc('grey', '800');
  599. }
  600. &:nth-child(even) {
  601. background-color: mc('grey', '50');
  602. @at-root .theme--dark & {
  603. background-color: darken(mc('grey', '900'), 4%);
  604. }
  605. }
  606. &:last-child {
  607. border-right: none;
  608. }
  609. }
  610. &:nth-child(even) {
  611. td {
  612. background-color: mc('grey', '50');
  613. @at-root .theme--dark & {
  614. background-color: darken(mc('grey', '800'), 8%);
  615. }
  616. &:nth-child(even) {
  617. background-color: mc('grey', '100');
  618. @at-root .theme--dark & {
  619. background-color: darken(mc('grey', '800'), 10%);
  620. }
  621. }
  622. }
  623. }
  624. &:last-child {
  625. td {
  626. border-bottom: none;
  627. &:first-child {
  628. border-bottom-left-radius: 7px;
  629. }
  630. &:last-child {
  631. border-bottom-right-radius: 7px;
  632. }
  633. }
  634. }
  635. }
  636. }
  637. figure.table {
  638. margin: 0;
  639. > table {
  640. background-color: #FFF;
  641. margin: 0;
  642. border-collapse: collapse;
  643. box-shadow: 0 0 5px 0 rgba(0, 0, 0, .07);
  644. @at-root .theme--dark & {
  645. background-color: darken(mc('grey', '900'), 3%);
  646. }
  647. td, th {
  648. border: 1px solid mc('blue-grey', '100');
  649. box-shadow: inset -1px -1px 0 0 #FFF, inset 1px 0 0 #FFF;
  650. padding: .5rem .75rem;
  651. border-radius: 0 !important;
  652. @at-root .theme--dark & {
  653. border-color: mc('grey', '700');
  654. box-shadow: inset -1px -1px 0 0 rgba(0,0,0, .5);
  655. }
  656. }
  657. th {
  658. background-color: lighten(mc('blue-grey', '50'), 1%);
  659. font-weight: 700;
  660. color: mc('blue-grey', '700');
  661. @at-root .theme--dark & {
  662. background-color: mc('grey', '800');
  663. color: mc('grey', '400');
  664. }
  665. }
  666. thead th {
  667. border-bottom: 2px solid mc('blue-grey', '100');
  668. @at-root .theme--dark & {
  669. border-bottom: none;
  670. }
  671. }
  672. tbody th {
  673. background-color: lighten(mc('blue-grey', '50'), 4%);
  674. @at-root .theme--dark & {
  675. background-color: darken(mc('grey', '800'), 8%);
  676. }
  677. }
  678. }
  679. }
  680. // -> Add horizontal scrollbar when table is too wide
  681. .table-container {
  682. width: 100%;
  683. overflow-x: auto;
  684. }
  685. // ---------------------------------
  686. // IMAGES
  687. // ---------------------------------
  688. img {
  689. max-width: 100%;
  690. &.align-left {
  691. float: left;
  692. margin: 0 1rem 1rem 0;
  693. }
  694. &.align-right {
  695. float: right;
  696. margin: 0 0 1rem 1rem;
  697. z-index: 1;
  698. position: relative;
  699. }
  700. &.align-center {
  701. display: block;
  702. max-width: 100%;
  703. margin: auto;
  704. }
  705. &.align-abstopright {
  706. position: absolute;
  707. top: -90px;
  708. right: 1rem;
  709. height: calc(90px - 32px);
  710. width: auto;
  711. @at-root .is-rtl & {
  712. left: 1rem;
  713. right: initial;
  714. }
  715. }
  716. &.decor-shadow {
  717. box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
  718. }
  719. &.decor-outline {
  720. border: 1px solid mc('grey', '400');
  721. }
  722. &.uml-diagram {
  723. margin: 1rem 0;
  724. }
  725. }
  726. figure.image {
  727. margin: 1rem 0 0 0;
  728. img {
  729. margin: 0 auto;
  730. }
  731. figcaption {
  732. padding: 4px 1rem;
  733. text-align: center;
  734. font-size: 12px;
  735. color: mc('grey', '700');
  736. background-color: mc('grey', '100');
  737. @at-root .theme--dark & {
  738. color: mc('grey', '400');
  739. background-color: mc('grey', '800');
  740. }
  741. }
  742. }
  743. figure.image-style-align-right {
  744. float: right;
  745. }
  746. figure.image-style-align-left {
  747. float: left;
  748. }
  749. // ---------------------------------
  750. // DETAILS
  751. // ---------------------------------
  752. details {
  753. background-color: mc('grey', '50');
  754. margin: 1rem 2rem;
  755. border: 1px solid mc('grey', '300');
  756. border-radius: 7px;
  757. > p {
  758. padding-left: 0;
  759. }
  760. > summary {
  761. border-radius: 7px;
  762. background-color: mc('grey', '50');
  763. cursor: pointer;
  764. display: list-item;
  765. align-items: center;
  766. padding: 0.4rem 1rem;
  767. transition: background-color .4s ease;
  768. &:focus {
  769. outline: none;
  770. background-color: mc('grey', '100');
  771. }
  772. > h1, h2, h3, h4, h5, h6 {
  773. width: 95%;
  774. display: inline-block;
  775. &:first-child {
  776. margin-top: 0;
  777. }
  778. &:only-child::after {
  779. display: none;
  780. }
  781. }
  782. }
  783. &[open] {
  784. padding: 1rem;
  785. > summary {
  786. background-color: mc('grey', '100');
  787. border-bottom: 1px solid mc('grey', '300');
  788. border-bottom-left-radius: 0;
  789. border-bottom-right-radius: 0;
  790. margin: -1rem -1rem 1rem -1rem;
  791. }
  792. }
  793. @at-root .theme--dark & {
  794. background-color: mc('grey', '900');
  795. border-color: mc('grey', '700');
  796. > summary {
  797. background-color: mc('grey', '900');
  798. border-color: mc('grey', '700');
  799. }
  800. &[open] > summary {
  801. background-color: lighten(mc('grey', '900'), 5%);
  802. }
  803. }
  804. }
  805. // ---------------------------------
  806. // HIGHLIGHTING
  807. // ---------------------------------
  808. mark {
  809. &.pen-red {
  810. color: mc('red', '500');
  811. background-color: initial;
  812. }
  813. &.pen-green {
  814. color: mc('green', '500');
  815. background-color: initial;
  816. }
  817. &.marker-blue {
  818. background-color: mc('blue', '300');
  819. }
  820. &.marker-yellow {
  821. background-color: mc('yellow', '300');
  822. }
  823. &.marker-pink {
  824. background-color: mc('pink', '300');
  825. }
  826. &.marker-green {
  827. background-color: mc('green', '300');
  828. }
  829. }
  830. .mention {
  831. background-color: rgba(153, 0, 48, .1);
  832. color: #990030;
  833. @at-root .theme--dark & {
  834. color: mc('pink', '500');
  835. }
  836. }
  837. }
  838. // ---------------------------------
  839. // COMMENTS
  840. // ---------------------------------
  841. .comments {
  842. &-container {
  843. border-radius: 7px;
  844. }
  845. &-header {
  846. color: #FFF;
  847. padding: 8px 20px;
  848. font-size: 16px;
  849. font-weight: 500;
  850. background-color: mc('blue-grey', '500');
  851. border-radius: 7px 7px 0 0;
  852. @at-root .theme--dark & {
  853. background-color: lighten(mc('blue-grey', '900'), 5%);
  854. }
  855. }
  856. &-main {
  857. background-color: mc('blue-grey', '50');
  858. border-radius: 0 0 7px 7px;
  859. padding: 20px;
  860. @at-root .theme--dark & {
  861. background-color: darken(mc('grey', '900'), 5%);
  862. }
  863. }
  864. }
  865. // ---------------
  866. // RTL FIXES
  867. // Vuetify GH Issue: https://github.com/vuetifyjs/vuetify/issues/6317
  868. // ---------------
  869. .is-rtl {
  870. .page-col-content.is-page-header {
  871. @each $size, $width in $grid-breakpoints {
  872. @media (min-width: $width) {
  873. @for $n from 0 through 12 {
  874. &.offset-#{$size}-#{$n} {
  875. margin-left: 0;
  876. margin-right: ($n / 12 * 100) * 1%;
  877. }
  878. }
  879. }
  880. }
  881. }
  882. }
  883. // ---------------
  884. // PRINT OVERRIDES
  885. // ---------------
  886. @media print {
  887. .nav-header,
  888. .v-navigation-drawer,
  889. .v-btn--fab,
  890. .page-col-sd,
  891. .v-tooltip__content
  892. {
  893. display: none !important;
  894. }
  895. .layout {
  896. display: block !important;
  897. }
  898. .page-col-content {
  899. flex-basis: 100% !important;
  900. flex-grow: 1 !important;
  901. max-width: 100% !important;
  902. margin-left: 0 !important;
  903. > .v-toolbar {
  904. border: 1px solid mc('grey', '300') !important;
  905. border-radius: 7px !important;
  906. & + .v-divider {
  907. display: none !important;
  908. }
  909. }
  910. }
  911. .v-main {
  912. padding: 0 !important;
  913. font-size: 14px;
  914. background-color: #FFF;
  915. }
  916. .v-main .contents {
  917. color: #000;
  918. background-color: #FFF;
  919. @at-root .theme--dark & {
  920. color: #000;
  921. }
  922. .prismjs{
  923. box-shadow: none;
  924. background-color: #FFF;
  925. @at-root .theme--dark & {
  926. background-color: #FFF;
  927. }
  928. > code {
  929. color: #000;
  930. box-shadow: none;
  931. text-shadow: none;
  932. }
  933. }
  934. }
  935. .comments-container {
  936. display: none;
  937. }
  938. .page-edit-shortcuts {
  939. display: none;
  940. }
  941. }