app.scss 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291
  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:not([class^="language-"]) {
  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:not([class^="language-"]) {
  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:not([class^="language-"]) {
  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:not([class^="language-"]) {
  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. // ASCIIDOC SPECIFIC
  304. // ---------------------------------
  305. .admonitionblock {
  306. margin: 1rem 0;
  307. position: relative;
  308. table {
  309. border: none;
  310. background-color: transparent;
  311. width: 100%;
  312. }
  313. td.icon {
  314. border-bottom-left-radius: 7px;
  315. border-top-left-radius: 7px;
  316. text-align: center;
  317. width: 56px;
  318. &::before {
  319. display: inline-block;
  320. font: normal normal normal 24px/1 "Material Design Icons", sans-serif !important;
  321. }
  322. }
  323. td.content {
  324. border-bottom-right-radius: 7px;
  325. border-top-right-radius: 7px;
  326. }
  327. &.note {
  328. td.icon {
  329. background-color: mc('blue', '300');
  330. color: mc('blue', '50');
  331. &::before {
  332. content: "\F02FC";
  333. }
  334. }
  335. td.content {
  336. color: darken(mc('blue', '900'), 10%);
  337. background-color: mc('blue', '50');
  338. @at-root .theme--dark & {
  339. background-color: mc('blue', '900');
  340. color: mc('blue', '50');
  341. }
  342. }
  343. }
  344. &.tip {
  345. td.icon {
  346. background-color: mc('green', '300');
  347. color: mc('green', '50');
  348. &::before {
  349. content: "\F0335";
  350. }
  351. }
  352. td.content {
  353. color: darken(mc('green', '900'), 10%);
  354. background-color: mc('green', '50');
  355. @at-root .theme--dark & {
  356. background-color: mc('green', '900');
  357. color: mc('green', '50');
  358. }
  359. }
  360. }
  361. &.warning {
  362. background-color: transparent !important;
  363. td.icon {
  364. background-color: mc('orange', '300');
  365. color: #FFF;
  366. &::before {
  367. content: "\F0026";
  368. }
  369. }
  370. td.content {
  371. color: darken(mc('orange', '900'), 10%);
  372. background-color: mc('orange', '50');
  373. @at-root .theme--dark & {
  374. background-color: darken(mc('orange', '900'), 5%);
  375. color: mc('orange', '100');
  376. }
  377. }
  378. }
  379. &.caution {
  380. td.icon {
  381. background-color: mc('purple', '300');
  382. color: mc('purple', '50');
  383. &::before {
  384. content: "\f0238";
  385. }
  386. }
  387. td.content {
  388. color: darken(mc('purple', '900'), 10%);
  389. background-color: mc('purple', '50');
  390. @at-root .theme--dark & {
  391. background-color: mc('purple', '900');
  392. color: mc('purple', '100');
  393. }
  394. }
  395. }
  396. &.important {
  397. td.icon {
  398. background-color: mc('red', '300');
  399. color: mc('red', '50');
  400. &::before {
  401. content: "\F0159";
  402. }
  403. }
  404. td.content {
  405. color: darken(mc('red', '900'), 10%);
  406. background-color: mc('red', '50');
  407. @at-root .theme--dark & {
  408. background-color: mc('red', '900');
  409. color: mc('red', '100');
  410. }
  411. }
  412. }
  413. }
  414. .exampleblock {
  415. > .title {
  416. font-style: italic;
  417. font-size: 1rem !important;
  418. color: #7a2717;
  419. @at-root .theme--dark & {
  420. color: mc('brown', '300');
  421. }
  422. }
  423. > .content {
  424. border: 1px solid mc('grey', '200');
  425. border-radius: 7px;
  426. margin-bottom: 12px;
  427. padding: 16px;
  428. }
  429. }
  430. // ---------------------------------
  431. // LISTS
  432. // ---------------------------------
  433. ol, ul:not(.tabset-tabs) {
  434. padding-top: 1rem;
  435. width: 100%;
  436. @at-root .is-rtl & {
  437. padding-left: 0;
  438. padding-right: 1rem;
  439. }
  440. li > ul, li > ol {
  441. padding-top: .5rem;
  442. padding-left: 1rem;
  443. @at-root .is-rtl & {
  444. padding-left: 0;
  445. padding-right: 1rem;
  446. }
  447. }
  448. li + li {
  449. margin-top: .5rem;
  450. }
  451. &.links-list {
  452. padding-left: 0;
  453. list-style-type: none;
  454. @at-root .is-rtl & {
  455. padding-right: 0;
  456. }
  457. li {
  458. background-color: mc('grey', '50');
  459. background-image: linear-gradient(to bottom, #FFF, mc('grey', '50'));
  460. border-right: 1px solid mc('grey', '200');
  461. border-bottom: 1px solid mc('grey', '200');
  462. border-left: 5px solid mc('grey', '300');
  463. box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
  464. padding: 1rem;
  465. border-radius: 5px;
  466. font-weight: 500;
  467. @at-root .is-rtl & {
  468. border-left-width: 1px;
  469. border-right-width: 5px;
  470. }
  471. &:hover {
  472. background-image: linear-gradient(to bottom, #FFF, lighten(mc('blue', '50'), 4%));
  473. border-left-color: mc('blue', '500');
  474. cursor: pointer;
  475. @at-root .is-rtl & {
  476. border-left-color: mc('grey', '200');
  477. border-right-width: mc('blue', '500');
  478. }
  479. }
  480. &::before {
  481. content: '';
  482. display: none;
  483. }
  484. > a {
  485. display: block;
  486. text-decoration: none;
  487. margin: -1rem;
  488. padding: 1rem;
  489. > em {
  490. font-weight: 400;
  491. font-style: normal;
  492. color: mc('grey', '700');
  493. display: inline-block;
  494. padding-left: .5rem;
  495. border-left: 1px solid mc('grey', '300');
  496. margin-left: .5rem;
  497. &.is-block {
  498. display: block;
  499. padding-left: 0;
  500. margin-left: 0;
  501. border-left: none;
  502. }
  503. }
  504. }
  505. > em {
  506. font-weight: 400;
  507. font-style: normal;
  508. }
  509. @at-root .theme--dark & {
  510. background-color: mc('grey', '50');
  511. background-image: linear-gradient(to bottom, lighten(mc('grey', '900'), 5%), mc('grey', '900'));
  512. border-right: 1px solid mc('grey', '900');
  513. border-bottom: 1px solid mc('grey', '900');
  514. border-left: 5px solid mc('grey', '700');
  515. box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.1);
  516. @at-root .theme--dark.is-rtl & {
  517. border-left-width: 1px;
  518. border-right-width: 5px;
  519. }
  520. &:hover {
  521. background-image: linear-gradient(to bottom, lighten(mc('grey', '900'), 2%), darken(mc('grey', '900'), 3%));
  522. border-left-color: mc('indigo', '300');
  523. cursor: pointer;
  524. @at-root .theme--dark.is-rtl & {
  525. border-left-color: mc('grey', '900');
  526. border-right-width: mc('indigo', '300');
  527. }
  528. }
  529. }
  530. }
  531. }
  532. &.grid-list {
  533. margin: 1rem 0 0 0;
  534. background-color: #FFF;
  535. border: 1px solid mc('grey', '200');
  536. padding: 1px;
  537. display: inline-block;
  538. list-style-type: none;
  539. @at-root .theme--dark & {
  540. background-color: #000;
  541. border: 1px solid mc('grey', '800');
  542. }
  543. li {
  544. background-color: mc('grey', '50');
  545. padding: .6rem 1rem;
  546. display: block;
  547. &:nth-child(odd) {
  548. background-color: mc('grey', '100');
  549. }
  550. & + li {
  551. margin-top: 0;
  552. }
  553. &::before {
  554. content: '';
  555. display: none;
  556. }
  557. @at-root .theme--dark & {
  558. background-color: mc('grey', '900');
  559. &:nth-child(odd) {
  560. background-color: darken(mc('grey', '900'), 5%);
  561. }
  562. }
  563. }
  564. }
  565. }
  566. ul:not(.tabset-tabs):not(.contains-task-list) {
  567. list-style: none;
  568. > li::before {
  569. position: absolute;
  570. left: -1.1rem;
  571. content: '\25b8';
  572. color: mc('grey', '600');
  573. width: 1.35rem;
  574. @at-root .is-rtl & {
  575. right: -1.1rem;
  576. content: '\25C3';
  577. }
  578. }
  579. }
  580. ol, ul:not(.tabset-tabs) {
  581. > li {
  582. position: relative;
  583. > p {
  584. display:inline-block;
  585. vertical-align:top;
  586. padding-top:0;
  587. &:first-child {
  588. width: 100%;
  589. }
  590. }
  591. }
  592. }
  593. dl {
  594. dt {
  595. margin-top: 0.3em;
  596. margin-bottom: 0.3em;
  597. font-weight: bold;
  598. }
  599. dd {
  600. margin-left: 1.125em;
  601. margin-bottom: 0.75em;
  602. > p {
  603. padding: 0;
  604. }
  605. }
  606. }
  607. // ---------------------------------
  608. // CODE
  609. // ---------------------------------
  610. code {
  611. background-color: mc('indigo', '50');
  612. padding: 0 5px;
  613. color: mc('indigo', '800');
  614. font-family: 'Roboto Mono', monospace;
  615. font-weight: normal;
  616. font-size: 1rem;
  617. box-shadow: none;
  618. &::before, &::after {
  619. display: none;
  620. }
  621. @at-root .theme--dark & {
  622. background-color: darken(mc('grey', '900'), 5%);
  623. color: mc('indigo', '100');
  624. }
  625. }
  626. .prismjs{
  627. border: none;
  628. border-radius: 5px;
  629. box-shadow: initial;
  630. background-color: mc('grey', '900');
  631. padding: 1rem 1rem 1rem 3rem;
  632. margin: 1rem 0;
  633. @at-root .theme--dark & {
  634. background-color: darken(mc('grey', '900'), 5%);
  635. }
  636. > code {
  637. background-color: transparent;
  638. padding: 0;
  639. color: #FFF;
  640. box-shadow: initial;
  641. display: block;
  642. font-size: .85rem;
  643. font-family: 'Roboto Mono', monospace;
  644. &:after, &:before {
  645. content: initial;
  646. letter-spacing: initial;
  647. }
  648. }
  649. }
  650. .diagram {
  651. margin-top: 1rem;
  652. overflow: auto;
  653. svg:first-child {
  654. direction: ltr;
  655. }
  656. }
  657. // ---------------------------------
  658. // TASK LISTS
  659. // ---------------------------------
  660. .contains-task-list {
  661. padding-left: 0;
  662. }
  663. .task-list-item {
  664. position: relative;
  665. list-style-type: none;
  666. &-checkbox[disabled] {
  667. width: 1.1rem;
  668. height: 1.1rem;
  669. top: 2px;
  670. position: relative;
  671. margin-right: 2px;
  672. &::after {
  673. position: absolute;
  674. left: 0;
  675. top: 0;
  676. content: ' ';
  677. display: block;
  678. width: 1.1rem;
  679. height: 1.1rem;
  680. background-color: #FFF;
  681. border: 1px solid mc('grey', '400');
  682. border-radius: 2px;
  683. font-weight: bold;
  684. font-size: .8rem;
  685. line-height: 1rem;
  686. text-align: center;
  687. @at-root .theme--dark & {
  688. background-color: mc('grey', '900');
  689. border-color: mc('grey', '700');
  690. }
  691. }
  692. &[checked]::after {
  693. content: '✓';
  694. }
  695. }
  696. .contains-task-list {
  697. padding: .5rem 0 0 1.5rem;
  698. }
  699. }
  700. // ---------------------------------
  701. // TABLES
  702. // ---------------------------------
  703. table {
  704. margin: .5rem 0;
  705. border-spacing: 0;
  706. border-radius: 5px;
  707. border: 1px solid mc('grey', '300');
  708. @at-root .theme--dark & {
  709. border-color: mc('grey', '600');
  710. }
  711. &.dense {
  712. td, th {
  713. font-size: .85rem;
  714. padding: .5rem;
  715. }
  716. }
  717. th {
  718. padding: .75rem;
  719. border-bottom: 2px solid mc('grey', '500');
  720. color: mc('grey', '600');
  721. background-color: mc('grey', '100');
  722. @at-root .theme--dark & {
  723. background-color: darken(mc('grey', '900'), 8%);
  724. border-bottom-color: mc('grey', '600');
  725. color: mc('grey', '500');
  726. }
  727. &:first-child {
  728. border-top-left-radius: 7px;
  729. }
  730. &:last-child {
  731. border-top-right-radius: 7px;
  732. }
  733. }
  734. td {
  735. padding: .75rem;
  736. }
  737. tr {
  738. td {
  739. border-bottom: 1px solid mc('grey', '300');
  740. border-right: 1px solid mc('grey', '100');
  741. @at-root .theme--dark & {
  742. border-bottom-color: mc('grey', '700');
  743. border-right-color: mc('grey', '800');
  744. }
  745. &:nth-child(even) {
  746. background-color: mc('grey', '50');
  747. @at-root .theme--dark & {
  748. background-color: darken(mc('grey', '900'), 4%);
  749. }
  750. }
  751. &:last-child {
  752. border-right: none;
  753. }
  754. }
  755. &:nth-child(even) {
  756. td {
  757. background-color: mc('grey', '50');
  758. @at-root .theme--dark & {
  759. background-color: darken(mc('grey', '800'), 8%);
  760. }
  761. &:nth-child(even) {
  762. background-color: mc('grey', '100');
  763. @at-root .theme--dark & {
  764. background-color: darken(mc('grey', '800'), 10%);
  765. }
  766. }
  767. }
  768. }
  769. &:last-child {
  770. td {
  771. border-bottom: none;
  772. &:first-child {
  773. border-bottom-left-radius: 7px;
  774. }
  775. &:last-child {
  776. border-bottom-right-radius: 7px;
  777. }
  778. }
  779. }
  780. }
  781. }
  782. figure.table {
  783. margin: 0;
  784. > table {
  785. background-color: #FFF;
  786. margin: 0;
  787. border-collapse: collapse;
  788. box-shadow: 0 0 5px 0 rgba(0, 0, 0, .07);
  789. @at-root .theme--dark & {
  790. background-color: darken(mc('grey', '900'), 3%);
  791. }
  792. td, th {
  793. border: 1px solid mc('blue-grey', '100');
  794. box-shadow: inset -1px -1px 0 0 #FFF, inset 1px 0 0 #FFF;
  795. padding: .5rem .75rem;
  796. border-radius: 0 !important;
  797. @at-root .theme--dark & {
  798. border-color: mc('grey', '700');
  799. box-shadow: inset -1px -1px 0 0 rgba(0,0,0, .5);
  800. }
  801. }
  802. th {
  803. background-color: lighten(mc('blue-grey', '50'), 1%);
  804. font-weight: 700;
  805. color: mc('blue-grey', '700');
  806. @at-root .theme--dark & {
  807. background-color: mc('grey', '800');
  808. color: mc('grey', '400');
  809. }
  810. }
  811. thead th {
  812. border-bottom: 2px solid mc('blue-grey', '100');
  813. @at-root .theme--dark & {
  814. border-bottom: none;
  815. }
  816. }
  817. tbody th {
  818. background-color: lighten(mc('blue-grey', '50'), 4%);
  819. @at-root .theme--dark & {
  820. background-color: darken(mc('grey', '800'), 8%);
  821. }
  822. }
  823. }
  824. }
  825. // -> Add horizontal scrollbar when table is too wide
  826. .table-container {
  827. width: 100%;
  828. overflow-x: auto;
  829. }
  830. // ---------------------------------
  831. // IMAGES
  832. // ---------------------------------
  833. img {
  834. max-width: 100%;
  835. &.align-left {
  836. float: left;
  837. margin: 0 1rem 1rem 0;
  838. }
  839. &.align-right {
  840. float: right;
  841. margin: 0 0 1rem 1rem;
  842. z-index: 1;
  843. position: relative;
  844. }
  845. &.align-center {
  846. display: block;
  847. max-width: 100%;
  848. margin: auto;
  849. }
  850. &.align-abstopright {
  851. position: absolute;
  852. top: -90px;
  853. right: 1rem;
  854. height: calc(90px - 32px);
  855. width: auto;
  856. @at-root .is-rtl & {
  857. left: 1rem;
  858. right: initial;
  859. }
  860. }
  861. &.decor-shadow {
  862. box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
  863. }
  864. &.decor-outline {
  865. border: 1px solid mc('grey', '400');
  866. }
  867. &.uml-diagram {
  868. margin: 1rem 0;
  869. }
  870. }
  871. figure.image {
  872. margin: 1rem 0 0 0;
  873. img {
  874. margin: 0 auto;
  875. }
  876. figcaption {
  877. padding: 4px 1rem;
  878. text-align: center;
  879. font-size: 12px;
  880. color: mc('grey', '700');
  881. background-color: mc('grey', '100');
  882. @at-root .theme--dark & {
  883. color: mc('grey', '400');
  884. background-color: mc('grey', '800');
  885. }
  886. }
  887. }
  888. figure.image-style-align-right {
  889. float: right;
  890. }
  891. figure.image-style-align-left {
  892. float: left;
  893. }
  894. // ---------------------------------
  895. // DETAILS
  896. // ---------------------------------
  897. details {
  898. background-color: mc('grey', '50');
  899. margin: 1rem 2rem;
  900. border: 1px solid mc('grey', '300');
  901. border-radius: 7px;
  902. > p {
  903. padding-left: 0;
  904. }
  905. > summary {
  906. border-radius: 7px;
  907. background-color: mc('grey', '50');
  908. cursor: pointer;
  909. display: list-item;
  910. align-items: center;
  911. padding: 0.4rem 1rem;
  912. transition: background-color .4s ease;
  913. &:focus {
  914. outline: none;
  915. background-color: mc('grey', '100');
  916. }
  917. > h1, h2, h3, h4, h5, h6 {
  918. width: 95%;
  919. display: inline-block;
  920. &:first-child {
  921. margin-top: 0;
  922. }
  923. &:only-child::after {
  924. display: none;
  925. }
  926. }
  927. }
  928. &[open] {
  929. padding: 1rem;
  930. > summary {
  931. background-color: mc('grey', '100');
  932. border-bottom: 1px solid mc('grey', '300');
  933. border-bottom-left-radius: 0;
  934. border-bottom-right-radius: 0;
  935. margin: -1rem -1rem 1rem -1rem;
  936. }
  937. }
  938. @at-root .theme--dark & {
  939. background-color: mc('grey', '900');
  940. border-color: mc('grey', '700');
  941. > summary {
  942. background-color: mc('grey', '900');
  943. border-color: mc('grey', '700');
  944. }
  945. &[open] > summary {
  946. background-color: lighten(mc('grey', '900'), 5%);
  947. }
  948. }
  949. }
  950. // ---------------------------------
  951. // HIGHLIGHTING
  952. // ---------------------------------
  953. mark {
  954. &.pen-red {
  955. color: mc('red', '500');
  956. background-color: initial;
  957. }
  958. &.pen-green {
  959. color: mc('green', '500');
  960. background-color: initial;
  961. }
  962. &.marker-blue {
  963. background-color: mc('blue', '300');
  964. }
  965. &.marker-yellow {
  966. background-color: mc('yellow', '300');
  967. }
  968. &.marker-pink {
  969. background-color: mc('pink', '300');
  970. }
  971. &.marker-green {
  972. background-color: mc('green', '300');
  973. }
  974. }
  975. .mention {
  976. background-color: rgba(153, 0, 48, .1);
  977. color: #990030;
  978. @at-root .theme--dark & {
  979. color: mc('pink', '500');
  980. }
  981. }
  982. }
  983. // ---------------------------------
  984. // COMMENTS
  985. // ---------------------------------
  986. .comments {
  987. &-container {
  988. border-radius: 7px;
  989. }
  990. &-header {
  991. color: #FFF;
  992. padding: 8px 20px;
  993. font-size: 16px;
  994. font-weight: 500;
  995. background-color: mc('blue-grey', '500');
  996. border-radius: 7px 7px 0 0;
  997. @at-root .theme--dark & {
  998. background-color: lighten(mc('blue-grey', '900'), 5%);
  999. }
  1000. }
  1001. &-main {
  1002. background-color: mc('blue-grey', '50');
  1003. border-radius: 0 0 7px 7px;
  1004. padding: 20px;
  1005. @at-root .theme--dark & {
  1006. background-color: darken(mc('grey', '900'), 5%);
  1007. }
  1008. }
  1009. }
  1010. // ---------------
  1011. // RTL FIXES
  1012. // Vuetify GH Issue: https://github.com/vuetifyjs/vuetify/issues/6317
  1013. // ---------------
  1014. .is-rtl {
  1015. .page-col-content.is-page-header {
  1016. @each $size, $width in $grid-breakpoints {
  1017. @media (min-width: $width) {
  1018. @for $n from 0 through 12 {
  1019. &.offset-#{$size}-#{$n} {
  1020. margin-left: 0;
  1021. margin-right: ($n / 12 * 100) * 1%;
  1022. }
  1023. }
  1024. }
  1025. }
  1026. }
  1027. }
  1028. // ---------------
  1029. // PRINT OVERRIDES
  1030. // ---------------
  1031. @media print {
  1032. .nav-header,
  1033. .v-navigation-drawer,
  1034. .v-btn--fab,
  1035. .page-col-sd,
  1036. .v-tooltip__content
  1037. {
  1038. display: none !important;
  1039. }
  1040. .layout {
  1041. display: block !important;
  1042. }
  1043. .page-col-content {
  1044. flex-basis: 100% !important;
  1045. flex-grow: 1 !important;
  1046. max-width: 100% !important;
  1047. margin-left: 0 !important;
  1048. > .v-toolbar {
  1049. border: 1px solid mc('grey', '300') !important;
  1050. border-radius: 7px !important;
  1051. & + .v-divider {
  1052. display: none !important;
  1053. }
  1054. }
  1055. }
  1056. .v-main {
  1057. padding: 0 !important;
  1058. font-size: 14px;
  1059. background-color: #FFF;
  1060. }
  1061. .v-main .contents {
  1062. color: #000;
  1063. background-color: #FFF;
  1064. @at-root .theme--dark & {
  1065. color: #000;
  1066. }
  1067. .prismjs{
  1068. box-shadow: none;
  1069. background-color: #FFF;
  1070. @at-root .theme--dark & {
  1071. background-color: #FFF;
  1072. }
  1073. > code {
  1074. color: #000;
  1075. box-shadow: none;
  1076. text-shadow: none;
  1077. white-space: pre-wrap !important;
  1078. overflow-wrap: break-word !important;
  1079. }
  1080. }
  1081. }
  1082. .comments-container {
  1083. display: none;
  1084. }
  1085. .page-edit-shortcuts {
  1086. display: none;
  1087. }
  1088. }