app.scss 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285
  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. // 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. }
  588. }
  589. }
  590. dl {
  591. dt {
  592. margin-top: 0.3em;
  593. margin-bottom: 0.3em;
  594. font-weight: bold;
  595. }
  596. dd {
  597. margin-left: 1.125em;
  598. margin-bottom: 0.75em;
  599. > p {
  600. padding: 0;
  601. }
  602. }
  603. }
  604. // ---------------------------------
  605. // CODE
  606. // ---------------------------------
  607. code {
  608. background-color: mc('indigo', '50');
  609. padding: 0 5px;
  610. color: mc('indigo', '800');
  611. font-family: 'Roboto Mono', monospace;
  612. font-weight: normal;
  613. font-size: 1rem;
  614. box-shadow: none;
  615. &::before, &::after {
  616. display: none;
  617. }
  618. @at-root .theme--dark & {
  619. background-color: darken(mc('grey', '900'), 5%);
  620. color: mc('indigo', '100');
  621. }
  622. }
  623. .prismjs{
  624. border: none;
  625. border-radius: 5px;
  626. box-shadow: initial;
  627. background-color: mc('grey', '900');
  628. padding: 1rem 1rem 1rem 3rem;
  629. margin: 1rem 0;
  630. @at-root .theme--dark & {
  631. background-color: darken(mc('grey', '900'), 5%);
  632. }
  633. > code {
  634. background-color: transparent;
  635. padding: 0;
  636. color: #FFF;
  637. box-shadow: initial;
  638. display: block;
  639. font-size: .85rem;
  640. font-family: 'Roboto Mono', monospace;
  641. &:after, &:before {
  642. content: initial;
  643. letter-spacing: initial;
  644. }
  645. }
  646. }
  647. .diagram {
  648. margin-top: 1rem;
  649. overflow: auto;
  650. svg:first-child {
  651. direction: ltr;
  652. }
  653. }
  654. // ---------------------------------
  655. // TASK LISTS
  656. // ---------------------------------
  657. .contains-task-list {
  658. padding-left: 0;
  659. }
  660. .task-list-item {
  661. position: relative;
  662. list-style-type: none;
  663. &-checkbox[disabled] {
  664. width: 1.1rem;
  665. height: 1.1rem;
  666. top: 2px;
  667. position: relative;
  668. margin-right: 2px;
  669. &::after {
  670. position: absolute;
  671. left: 0;
  672. top: 0;
  673. content: ' ';
  674. display: block;
  675. width: 1.1rem;
  676. height: 1.1rem;
  677. background-color: #FFF;
  678. border: 1px solid mc('grey', '400');
  679. border-radius: 2px;
  680. font-weight: bold;
  681. font-size: .8rem;
  682. line-height: 1rem;
  683. text-align: center;
  684. @at-root .theme--dark & {
  685. background-color: mc('grey', '900');
  686. border-color: mc('grey', '700');
  687. }
  688. }
  689. &[checked]::after {
  690. content: '✓';
  691. }
  692. }
  693. .contains-task-list {
  694. padding: .5rem 0 0 1.5rem;
  695. }
  696. }
  697. // ---------------------------------
  698. // TABLES
  699. // ---------------------------------
  700. table {
  701. margin: .5rem 0;
  702. border-spacing: 0;
  703. border-radius: 5px;
  704. border: 1px solid mc('grey', '300');
  705. @at-root .theme--dark & {
  706. border-color: mc('grey', '600');
  707. }
  708. &.dense {
  709. td, th {
  710. font-size: .85rem;
  711. padding: .5rem;
  712. }
  713. }
  714. th {
  715. padding: .75rem;
  716. border-bottom: 2px solid mc('grey', '500');
  717. color: mc('grey', '600');
  718. background-color: mc('grey', '100');
  719. @at-root .theme--dark & {
  720. background-color: darken(mc('grey', '900'), 8%);
  721. border-bottom-color: mc('grey', '600');
  722. color: mc('grey', '500');
  723. }
  724. &:first-child {
  725. border-top-left-radius: 7px;
  726. }
  727. &:last-child {
  728. border-top-right-radius: 7px;
  729. }
  730. }
  731. td {
  732. padding: .75rem;
  733. }
  734. tr {
  735. td {
  736. border-bottom: 1px solid mc('grey', '300');
  737. border-right: 1px solid mc('grey', '100');
  738. @at-root .theme--dark & {
  739. border-bottom-color: mc('grey', '700');
  740. border-right-color: mc('grey', '800');
  741. }
  742. &:nth-child(even) {
  743. background-color: mc('grey', '50');
  744. @at-root .theme--dark & {
  745. background-color: darken(mc('grey', '900'), 4%);
  746. }
  747. }
  748. &:last-child {
  749. border-right: none;
  750. }
  751. }
  752. &:nth-child(even) {
  753. td {
  754. background-color: mc('grey', '50');
  755. @at-root .theme--dark & {
  756. background-color: darken(mc('grey', '800'), 8%);
  757. }
  758. &:nth-child(even) {
  759. background-color: mc('grey', '100');
  760. @at-root .theme--dark & {
  761. background-color: darken(mc('grey', '800'), 10%);
  762. }
  763. }
  764. }
  765. }
  766. &:last-child {
  767. td {
  768. border-bottom: none;
  769. &:first-child {
  770. border-bottom-left-radius: 7px;
  771. }
  772. &:last-child {
  773. border-bottom-right-radius: 7px;
  774. }
  775. }
  776. }
  777. }
  778. }
  779. figure.table {
  780. margin: 0;
  781. > table {
  782. background-color: #FFF;
  783. margin: 0;
  784. border-collapse: collapse;
  785. box-shadow: 0 0 5px 0 rgba(0, 0, 0, .07);
  786. @at-root .theme--dark & {
  787. background-color: darken(mc('grey', '900'), 3%);
  788. }
  789. td, th {
  790. border: 1px solid mc('blue-grey', '100');
  791. box-shadow: inset -1px -1px 0 0 #FFF, inset 1px 0 0 #FFF;
  792. padding: .5rem .75rem;
  793. border-radius: 0 !important;
  794. @at-root .theme--dark & {
  795. border-color: mc('grey', '700');
  796. box-shadow: inset -1px -1px 0 0 rgba(0,0,0, .5);
  797. }
  798. }
  799. th {
  800. background-color: lighten(mc('blue-grey', '50'), 1%);
  801. font-weight: 700;
  802. color: mc('blue-grey', '700');
  803. @at-root .theme--dark & {
  804. background-color: mc('grey', '800');
  805. color: mc('grey', '400');
  806. }
  807. }
  808. thead th {
  809. border-bottom: 2px solid mc('blue-grey', '100');
  810. @at-root .theme--dark & {
  811. border-bottom: none;
  812. }
  813. }
  814. tbody th {
  815. background-color: lighten(mc('blue-grey', '50'), 4%);
  816. @at-root .theme--dark & {
  817. background-color: darken(mc('grey', '800'), 8%);
  818. }
  819. }
  820. }
  821. }
  822. // -> Add horizontal scrollbar when table is too wide
  823. .table-container {
  824. width: 100%;
  825. overflow-x: auto;
  826. }
  827. // ---------------------------------
  828. // IMAGES
  829. // ---------------------------------
  830. img {
  831. max-width: 100%;
  832. &.align-left {
  833. float: left;
  834. margin: 0 1rem 1rem 0;
  835. }
  836. &.align-right {
  837. float: right;
  838. margin: 0 0 1rem 1rem;
  839. z-index: 1;
  840. position: relative;
  841. }
  842. &.align-center {
  843. display: block;
  844. max-width: 100%;
  845. margin: auto;
  846. }
  847. &.align-abstopright {
  848. position: absolute;
  849. top: -90px;
  850. right: 1rem;
  851. height: calc(90px - 32px);
  852. width: auto;
  853. @at-root .is-rtl & {
  854. left: 1rem;
  855. right: initial;
  856. }
  857. }
  858. &.decor-shadow {
  859. box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
  860. }
  861. &.decor-outline {
  862. border: 1px solid mc('grey', '400');
  863. }
  864. &.uml-diagram {
  865. margin: 1rem 0;
  866. }
  867. }
  868. figure.image {
  869. margin: 1rem 0 0 0;
  870. img {
  871. margin: 0 auto;
  872. }
  873. figcaption {
  874. padding: 4px 1rem;
  875. text-align: center;
  876. font-size: 12px;
  877. color: mc('grey', '700');
  878. background-color: mc('grey', '100');
  879. @at-root .theme--dark & {
  880. color: mc('grey', '400');
  881. background-color: mc('grey', '800');
  882. }
  883. }
  884. }
  885. figure.image-style-align-right {
  886. float: right;
  887. }
  888. figure.image-style-align-left {
  889. float: left;
  890. }
  891. // ---------------------------------
  892. // DETAILS
  893. // ---------------------------------
  894. details {
  895. background-color: mc('grey', '50');
  896. margin: 1rem 2rem;
  897. border: 1px solid mc('grey', '300');
  898. border-radius: 7px;
  899. > p {
  900. padding-left: 0;
  901. }
  902. > summary {
  903. border-radius: 7px;
  904. background-color: mc('grey', '50');
  905. cursor: pointer;
  906. display: list-item;
  907. align-items: center;
  908. padding: 0.4rem 1rem;
  909. transition: background-color .4s ease;
  910. &:focus {
  911. outline: none;
  912. background-color: mc('grey', '100');
  913. }
  914. > h1, h2, h3, h4, h5, h6 {
  915. width: 95%;
  916. display: inline-block;
  917. &:first-child {
  918. margin-top: 0;
  919. }
  920. &:only-child::after {
  921. display: none;
  922. }
  923. }
  924. }
  925. &[open] {
  926. padding: 1rem;
  927. > summary {
  928. background-color: mc('grey', '100');
  929. border-bottom: 1px solid mc('grey', '300');
  930. border-bottom-left-radius: 0;
  931. border-bottom-right-radius: 0;
  932. margin: -1rem -1rem 1rem -1rem;
  933. }
  934. }
  935. @at-root .theme--dark & {
  936. background-color: mc('grey', '900');
  937. border-color: mc('grey', '700');
  938. > summary {
  939. background-color: mc('grey', '900');
  940. border-color: mc('grey', '700');
  941. }
  942. &[open] > summary {
  943. background-color: lighten(mc('grey', '900'), 5%);
  944. }
  945. }
  946. }
  947. // ---------------------------------
  948. // HIGHLIGHTING
  949. // ---------------------------------
  950. mark {
  951. &.pen-red {
  952. color: mc('red', '500');
  953. background-color: initial;
  954. }
  955. &.pen-green {
  956. color: mc('green', '500');
  957. background-color: initial;
  958. }
  959. &.marker-blue {
  960. background-color: mc('blue', '300');
  961. }
  962. &.marker-yellow {
  963. background-color: mc('yellow', '300');
  964. }
  965. &.marker-pink {
  966. background-color: mc('pink', '300');
  967. }
  968. &.marker-green {
  969. background-color: mc('green', '300');
  970. }
  971. }
  972. .mention {
  973. background-color: rgba(153, 0, 48, .1);
  974. color: #990030;
  975. @at-root .theme--dark & {
  976. color: mc('pink', '500');
  977. }
  978. }
  979. }
  980. // ---------------------------------
  981. // COMMENTS
  982. // ---------------------------------
  983. .comments {
  984. &-container {
  985. border-radius: 7px;
  986. }
  987. &-header {
  988. color: #FFF;
  989. padding: 8px 20px;
  990. font-size: 16px;
  991. font-weight: 500;
  992. background-color: mc('blue-grey', '500');
  993. border-radius: 7px 7px 0 0;
  994. @at-root .theme--dark & {
  995. background-color: lighten(mc('blue-grey', '900'), 5%);
  996. }
  997. }
  998. &-main {
  999. background-color: mc('blue-grey', '50');
  1000. border-radius: 0 0 7px 7px;
  1001. padding: 20px;
  1002. @at-root .theme--dark & {
  1003. background-color: darken(mc('grey', '900'), 5%);
  1004. }
  1005. }
  1006. }
  1007. // ---------------
  1008. // RTL FIXES
  1009. // Vuetify GH Issue: https://github.com/vuetifyjs/vuetify/issues/6317
  1010. // ---------------
  1011. .is-rtl {
  1012. .page-col-content.is-page-header {
  1013. @each $size, $width in $grid-breakpoints {
  1014. @media (min-width: $width) {
  1015. @for $n from 0 through 12 {
  1016. &.offset-#{$size}-#{$n} {
  1017. margin-left: 0;
  1018. margin-right: ($n / 12 * 100) * 1%;
  1019. }
  1020. }
  1021. }
  1022. }
  1023. }
  1024. }
  1025. // ---------------
  1026. // PRINT OVERRIDES
  1027. // ---------------
  1028. @media print {
  1029. .nav-header,
  1030. .v-navigation-drawer,
  1031. .v-btn--fab,
  1032. .page-col-sd,
  1033. .v-tooltip__content
  1034. {
  1035. display: none !important;
  1036. }
  1037. .layout {
  1038. display: block !important;
  1039. }
  1040. .page-col-content {
  1041. flex-basis: 100% !important;
  1042. flex-grow: 1 !important;
  1043. max-width: 100% !important;
  1044. margin-left: 0 !important;
  1045. > .v-toolbar {
  1046. border: 1px solid mc('grey', '300') !important;
  1047. border-radius: 7px !important;
  1048. & + .v-divider {
  1049. display: none !important;
  1050. }
  1051. }
  1052. }
  1053. .v-main {
  1054. padding: 0 !important;
  1055. font-size: 14px;
  1056. background-color: #FFF;
  1057. }
  1058. .v-main .contents {
  1059. color: #000;
  1060. background-color: #FFF;
  1061. @at-root .theme--dark & {
  1062. color: #000;
  1063. }
  1064. .prismjs{
  1065. box-shadow: none;
  1066. background-color: #FFF;
  1067. @at-root .theme--dark & {
  1068. background-color: #FFF;
  1069. }
  1070. > code {
  1071. color: #000;
  1072. box-shadow: none;
  1073. text-shadow: none;
  1074. }
  1075. }
  1076. }
  1077. .comments-container {
  1078. display: none;
  1079. }
  1080. .page-edit-shortcuts {
  1081. display: none;
  1082. }
  1083. }