app.scss 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854
  1. /* THEME SPECIFIC STYLES */
  2. .v-content .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. }
  65. h1 {
  66. padding: 0;
  67. color: mc('blue', '800');
  68. margin-top: 2rem;
  69. position: relative;
  70. @at-root .theme--dark & {
  71. color: mc('grey', '300');
  72. }
  73. &::after {
  74. content: '';
  75. position: absolute;
  76. bottom: 0;
  77. left: 0;
  78. width: 100%;
  79. height: 2px;
  80. background: linear-gradient(to right, mc('theme', 'primary'), rgba(mc('theme', 'primary'), 0));
  81. border-radius: 3px;
  82. @at-root .theme--dark & {
  83. background: linear-gradient(to right, mc('blue', '300') 0%, mc('blue', '500') 10%, rgba(mc('blue', '900'), 0) 100%);
  84. }
  85. @at-root .is-rtl & {
  86. background: linear-gradient(to left, mc('theme', 'primary'), rgba(mc('theme', 'primary'), 0));
  87. }
  88. @at-root .theme--dark.is-rtl & {
  89. background: linear-gradient(to left, mc('grey', '600'), rgba(mc('grey', '600'), 0));
  90. }
  91. }
  92. }
  93. h2 {
  94. margin: 1rem 0 0 0;
  95. color: mc('grey', '800');
  96. position: relative;
  97. @at-root .theme--dark & {
  98. color: mc('grey', '400');
  99. }
  100. &::after {
  101. content: '';
  102. position: absolute;
  103. bottom: 0;
  104. left: 0;
  105. width: 100%;
  106. height: 1px;
  107. background: linear-gradient(to right, mc('grey', '700'), rgba(mc('grey', '700'), 0));
  108. @at-root .theme--dark & {
  109. background: linear-gradient(to right, mc('grey', '300'), rgba(mc('grey', '700'), 0));
  110. }
  111. @at-root .is-rtl & {
  112. background: linear-gradient(to left, mc('grey', '700'), rgba(mc('grey', '700'), 0));
  113. }
  114. @at-root .theme--dark.is-rtl & {
  115. background: linear-gradient(to left, mc('grey', '300'), rgba(mc('grey', '700'), 0));
  116. }
  117. }
  118. }
  119. h3 {
  120. margin: 8px 0 0 0;
  121. color: mc('grey', '700');
  122. position: relative;
  123. @at-root .theme--dark & {
  124. color: mc('grey', '600');
  125. }
  126. &::after {
  127. content: '';
  128. position: absolute;
  129. bottom: 0;
  130. left: 0;
  131. width: 100%;
  132. height: 1px;
  133. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 90%);
  134. }
  135. }
  136. h4, h5, h6 {
  137. font-size: 1rem;
  138. margin: 8px 0 0 0;
  139. color: mc('grey', '700');
  140. position: relative;
  141. @at-root .theme--dark & {
  142. color: mc('grey', '600');
  143. }
  144. &::after {
  145. content: '';
  146. position: absolute;
  147. bottom: 0;
  148. left: 0;
  149. width: 100%;
  150. height: 1px;
  151. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 70%);
  152. }
  153. }
  154. h5 {
  155. &::after {
  156. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 50%);
  157. }
  158. }
  159. h6 {
  160. &::after {
  161. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 30%);
  162. }
  163. }
  164. // ---------------------------------
  165. // PARAGRAPHS
  166. // ---------------------------------
  167. p {
  168. padding: 1rem 0 0 0;
  169. margin: 0;
  170. @at-root .contents > div > p:first-child {
  171. padding-top: 0;
  172. }
  173. @at-root .v-application & {
  174. margin-bottom: 0;
  175. }
  176. }
  177. hr {
  178. margin: 1rem 0;
  179. height: 1px;
  180. border: none;
  181. background-color: mc('grey', '400');
  182. @at-root .theme--dark & {
  183. background-color: mc('grey', '700');
  184. }
  185. }
  186. .emoji {
  187. height: 1.25em;
  188. margin: 0 1px -4px;
  189. }
  190. blockquote {
  191. padding: 0 1rem 1rem 1rem;
  192. border-left: 5px solid mc('blue', '500');
  193. border-radius: .5rem;
  194. margin: 1rem 0;
  195. > p:first-child .emoji {
  196. margin-right: .5rem;
  197. }
  198. &.valign-center > p {
  199. display: flex;
  200. align-items: center;
  201. }
  202. &.is-info {
  203. background-color: mc('blue', '50');
  204. border-color: mc('blue', '300');
  205. color: mc('blue', '900');
  206. code {
  207. background-color: mc('blue', '50');
  208. color: mc('blue', '800');
  209. }
  210. @at-root .theme--dark & {
  211. background-color: mc('blue', '900');
  212. color: mc('blue', '50');
  213. border-color: mc('blue', '500');
  214. }
  215. }
  216. &.is-warning {
  217. background-color: mc('orange', '50');
  218. border-color: mc('orange', '300');
  219. color: darken(mc('orange', '900'), 10%);
  220. code {
  221. background-color: mc('orange', '50');
  222. color: mc('orange', '800');
  223. }
  224. @at-root .theme--dark & {
  225. background-color: darken(mc('orange', '900'), 5%);
  226. color: mc('orange', '100');
  227. border-color: mc('orange', '500');
  228. box-shadow: 0 0 2px 0 mc('grey', '900');
  229. }
  230. }
  231. &.is-danger {
  232. background-color: mc('red', '50');
  233. border-color: mc('red', '300');
  234. color: mc('red', '900');
  235. code {
  236. background-color: mc('red', '50');
  237. color: mc('red', '800');
  238. }
  239. @at-root .theme--dark & {
  240. background-color: mc('red', '900');
  241. color: mc('red', '100');
  242. border-color: mc('red', '500');
  243. }
  244. }
  245. &.is-success {
  246. background-color: mc('green', '50');
  247. border-color: mc('green', '300');
  248. color: mc('green', '900');
  249. code {
  250. background-color: mc('green', '50');
  251. color: mc('green', '800');
  252. }
  253. @at-root .theme--dark & {
  254. background-color: mc('green', '900');
  255. color: mc('green', '50');
  256. border-color: mc('green', '500');
  257. }
  258. }
  259. }
  260. // ---------------------------------
  261. // LISTS
  262. // ---------------------------------
  263. ol, ul {
  264. padding-top: 1rem;
  265. width: 100%;
  266. @at-root .is-rtl & {
  267. padding-left: 0;
  268. padding-right: 1rem;
  269. }
  270. li > ul, li > ol {
  271. padding-top: .5rem;
  272. padding-left: 1rem;
  273. @at-root .is-rtl & {
  274. padding-left: 0;
  275. padding-right: 1rem;
  276. }
  277. }
  278. li + li {
  279. margin-top: .5rem;
  280. }
  281. &.links-list {
  282. padding-left: 0;
  283. list-style-type: none;
  284. @at-root .is-rtl & {
  285. padding-right: 0;
  286. }
  287. li {
  288. background-color: mc('grey', '50');
  289. background-image: linear-gradient(to bottom, #FFF, mc('grey', '50'));
  290. border-right: 1px solid mc('grey', '200');
  291. border-bottom: 1px solid mc('grey', '200');
  292. border-left: 5px solid mc('grey', '300');
  293. box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
  294. padding: 1rem;
  295. border-radius: 5px;
  296. font-weight: 500;
  297. @at-root .is-rtl & {
  298. border-left-width: 1px;
  299. border-right-width: 5px;
  300. }
  301. &:hover {
  302. background-image: linear-gradient(to bottom, #FFF, lighten(mc('blue', '50'), 4%));
  303. border-left-color: mc('blue', '500');
  304. cursor: pointer;
  305. @at-root .is-rtl & {
  306. border-left-color: mc('grey', '200');
  307. border-right-width: mc('blue', '500');
  308. }
  309. }
  310. &::before {
  311. content: '';
  312. display: none;
  313. }
  314. > a {
  315. display: block;
  316. text-decoration: none;
  317. margin: -1rem;
  318. padding: 1rem;
  319. > em {
  320. font-weight: 400;
  321. font-style: normal;
  322. color: mc('grey', '700');
  323. display: inline-block;
  324. padding-left: .5rem;
  325. border-left: 1px solid mc('grey', '300');
  326. margin-left: .5rem;
  327. &.is-block {
  328. display: block;
  329. padding-left: 0;
  330. margin-left: 0;
  331. border-left: none;
  332. }
  333. }
  334. }
  335. > em {
  336. font-weight: 400;
  337. font-style: normal;
  338. }
  339. @at-root .theme--dark & {
  340. background-color: mc('grey', '50');
  341. background-image: linear-gradient(to bottom, lighten(mc('grey', '900'), 5%), mc('grey', '900'));
  342. border-right: 1px solid mc('grey', '900');
  343. border-bottom: 1px solid mc('grey', '900');
  344. border-left: 5px solid mc('grey', '700');
  345. box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.1);
  346. @at-root .theme--dark.is-rtl & {
  347. border-left-width: 1px;
  348. border-right-width: 5px;
  349. }
  350. &:hover {
  351. background-image: linear-gradient(to bottom, lighten(mc('grey', '900'), 2%), darken(mc('grey', '900'), 3%));
  352. border-left-color: mc('indigo', '300');
  353. cursor: pointer;
  354. @at-root .theme--dark.is-rtl & {
  355. border-left-color: mc('grey', '900');
  356. border-right-width: mc('indigo', '300');
  357. }
  358. }
  359. }
  360. }
  361. }
  362. &.grid-list {
  363. margin: 1rem 0 0 0;
  364. background-color: #FFF;
  365. border: 1px solid mc('grey', '200');
  366. padding: 1px;
  367. display: inline-block;
  368. list-style-type: none;
  369. @at-root .theme--dark & {
  370. background-color: #000;
  371. border: 1px solid mc('grey', '800');
  372. }
  373. li {
  374. background-color: mc('grey', '50');
  375. padding: .6rem 1rem;
  376. display: block;
  377. &:nth-child(odd) {
  378. background-color: mc('grey', '100');
  379. }
  380. & + li {
  381. margin-top: 0;
  382. }
  383. &::before {
  384. content: '';
  385. display: none;
  386. }
  387. @at-root .theme--dark & {
  388. background-color: mc('grey', '900');
  389. &:nth-child(odd) {
  390. background-color: darken(mc('grey', '900'), 5%);
  391. }
  392. }
  393. }
  394. }
  395. }
  396. ul {
  397. list-style: none;
  398. > li::before {
  399. position: absolute;
  400. left: -1.1rem;
  401. content: '\25b8';
  402. color: mc('grey', '600');
  403. width: 1.35rem;
  404. @at-root .is-rtl & {
  405. content: '\25C3';
  406. }
  407. }
  408. }
  409. ul, ol {
  410. > li {
  411. position: relative;
  412. > p {
  413. display:inline-block;
  414. vertical-align:top;
  415. padding-top:0;
  416. }
  417. }
  418. }
  419. // ---------------------------------
  420. // CODE
  421. // ---------------------------------
  422. code {
  423. background-color: mc('indigo', '50');
  424. padding: 0 5px;
  425. color: mc('indigo', '800');
  426. font-family: 'Roboto Mono', monospace;
  427. font-weight: normal;
  428. font-size: 1rem;
  429. box-shadow: none;
  430. &::before, &::after {
  431. display: none;
  432. }
  433. @at-root .theme--dark & {
  434. background-color: darken(mc('grey', '900'), 5%);
  435. color: mc('indigo', '100');
  436. }
  437. }
  438. .prismjs{
  439. border: none;
  440. border-radius: 5px;
  441. box-shadow: initial;
  442. background-color: mc('grey', '900');
  443. padding: 1rem 1rem 1rem 3rem;
  444. margin: 1rem 0;
  445. @at-root .theme--dark & {
  446. background-color: darken(mc('grey', '900'), 5%);
  447. }
  448. > code {
  449. background-color: transparent;
  450. padding: 0;
  451. color: #FFF;
  452. box-shadow: initial;
  453. display: block;
  454. font-size: .85rem;
  455. font-family: 'Roboto Mono', monospace;
  456. &:after, &:before {
  457. content: initial;
  458. letter-spacing: initial;
  459. }
  460. }
  461. }
  462. // ---------------------------------
  463. // TASK LISTS
  464. // ---------------------------------
  465. .task-list-item {
  466. position: relative;
  467. list-style-type: none;
  468. &-checkbox[disabled] {
  469. display: none;
  470. & + label {
  471. padding-left: 1.5rem;
  472. }
  473. & + label::before {
  474. position: absolute;
  475. left: 0;
  476. top: 2px;
  477. content: ' ';
  478. display: block;
  479. width: 1.1rem;
  480. height: 1.1rem;
  481. background-color: #FFF;
  482. border: 1px solid mc('grey', '400');
  483. border-radius: 2px;
  484. font-weight: bold;
  485. font-size: .8rem;
  486. line-height: 1rem;
  487. text-align: center;
  488. @at-root .theme--dark & {
  489. background-color: mc('grey', '900');
  490. border-color: mc('grey', '700');
  491. }
  492. }
  493. &[checked] + label::before {
  494. content: '✓';
  495. }
  496. }
  497. .contains-task-list {
  498. padding: .5rem 0 0 1.5rem;
  499. }
  500. }
  501. // ---------------------------------
  502. // TABLES
  503. // ---------------------------------
  504. table {
  505. margin: .5rem 1.75rem;
  506. border-spacing: 0;
  507. th {
  508. padding: .75rem;
  509. border-bottom: 2px solid mc('grey', '500');
  510. color: mc('grey', '600');
  511. }
  512. td {
  513. padding: .75rem;
  514. }
  515. tr {
  516. td {
  517. border-bottom: 1px solid mc('grey', '200');
  518. }
  519. }
  520. }
  521. // ---------------------------------
  522. // IMAGES
  523. // ---------------------------------
  524. img {
  525. max-width: 100%;
  526. &.align-left {
  527. float: left;
  528. margin: 0 1rem 1rem 0;
  529. }
  530. &.align-right {
  531. float: right;
  532. margin: 0 0 1rem 1rem;
  533. z-index: 1;
  534. position: relative;
  535. }
  536. &.align-center {
  537. display: block;
  538. max-width: 100%;
  539. margin: auto;
  540. }
  541. &.align-abstopright {
  542. position: absolute;
  543. top: -90px;
  544. right: 1rem;
  545. height: calc(90px - 32px);
  546. width: auto;
  547. @at-root .is-rtl & {
  548. left: 1rem;
  549. right: initial;
  550. }
  551. }
  552. &.decor-shadow {
  553. box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
  554. }
  555. &.decor-outline {
  556. border: 1px solid mc('grey', '400');
  557. }
  558. &.uml-diagram {
  559. margin: 1rem 0;
  560. }
  561. }
  562. figure.image {
  563. margin: 1rem 0 0 0;
  564. img {
  565. margin: 0 auto;
  566. }
  567. figcaption {
  568. padding: 4px 1rem;
  569. text-align: center;
  570. font-size: 12px;
  571. color: mc('grey', '700');
  572. background-color: mc('grey', '100');
  573. @at-root .theme--dark & {
  574. color: mc('grey', '400');
  575. background-color: mc('grey', '800');
  576. }
  577. }
  578. }
  579. // ---------------------------------
  580. // DETAILS
  581. // ---------------------------------
  582. details {
  583. background-color: mc('grey', '50');
  584. margin: 1rem 2rem;
  585. border: 1px solid mc('grey', '300');
  586. border-radius: 7px;
  587. > p {
  588. padding-left: 0;
  589. }
  590. summary {
  591. border-radius: 7px;
  592. background-color: mc('grey', '50');
  593. cursor: pointer;
  594. height: 40px;
  595. display: flex;
  596. align-items: center;
  597. padding: 0 1rem;
  598. transition: background-color .4s ease;
  599. &:focus {
  600. outline: none;
  601. background-color: mc('grey', '100');
  602. }
  603. }
  604. &[open] {
  605. padding: 1rem;
  606. summary {
  607. background-color: mc('grey', '100');
  608. border-bottom: 1px solid mc('grey', '300');
  609. border-bottom-left-radius: 0;
  610. border-bottom-right-radius: 0;
  611. margin: -1rem -1rem 1rem -1rem;
  612. }
  613. }
  614. @at-root .theme--dark & {
  615. background-color: mc('grey', '900');
  616. border-color: mc('grey', '700');
  617. summary {
  618. background-color: mc('grey', '900');
  619. border-color: mc('grey', '700');
  620. }
  621. &[open] summary {
  622. background-color: lighten(mc('grey', '900'), 5%);
  623. }
  624. }
  625. }
  626. // ---------------------------------
  627. // HIGHLIGHTING
  628. // ---------------------------------
  629. mark {
  630. &.pen-red {
  631. color: mc('red', '500');
  632. background-color: initial;
  633. }
  634. &.pen-green {
  635. color: mc('green', '500');
  636. background-color: initial;
  637. }
  638. &.marker-blue {
  639. background-color: mc('blue', '300');
  640. }
  641. &.marker-yellow {
  642. background-color: mc('yellow', '300');
  643. }
  644. &.marker-pink {
  645. background-color: mc('pink', '300');
  646. }
  647. &.marker-green {
  648. background-color: mc('green', '300');
  649. }
  650. }
  651. }
  652. // ---------------
  653. // RTL FIXES
  654. // Vuetify GH Issue: https://github.com/vuetifyjs/vuetify/issues/6317
  655. // ---------------
  656. .is-rtl {
  657. .page-col-content.is-page-header {
  658. @each $size, $width in $grid-breakpoints {
  659. @media (min-width: $width) {
  660. @for $n from 0 through 12 {
  661. &.offset-#{$size}-#{$n} {
  662. margin-left: 0;
  663. margin-right: ($n / 12 * 100) * 1%;
  664. }
  665. }
  666. }
  667. }
  668. }
  669. }
  670. // ---------------
  671. // PRINT OVERRIDES
  672. // ---------------
  673. @media print {
  674. .nav-header,
  675. .v-navigation-drawer,
  676. .v-footer,
  677. .v-btn--fab,
  678. .page-col-sd,
  679. .v-tooltip__content
  680. {
  681. display: none !important;
  682. }
  683. .page-col-content {
  684. flex-basis: 100% !important;
  685. flex-grow: 1 !important;
  686. max-width: 100% !important;
  687. margin-left: 0 !important;
  688. > .v-toolbar {
  689. border: 1px solid mc('grey', '300') !important;
  690. border-radius: 7px !important;
  691. & + .v-divider {
  692. display: none !important;
  693. }
  694. }
  695. }
  696. .v-content {
  697. padding: 0 !important;
  698. font-size: 14px;
  699. background-color: #FFF;
  700. }
  701. .v-content .contents {
  702. color: #000;
  703. background-color: #FFF;
  704. @at-root .theme--dark & {
  705. color: #000;
  706. }
  707. .prismjs{
  708. box-shadow: none;
  709. background-color: #FFF;
  710. @at-root .theme--dark & {
  711. background-color: #FFF;
  712. }
  713. > code {
  714. color: #000;
  715. box-shadow: none;
  716. text-shadow: none;
  717. }
  718. }
  719. }
  720. }