app.scss 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852
  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: '\F3CC';
  31. color: mc('grey', '500');
  32. text-decoration: none;
  33. }
  34. }
  35. @at-root .theme--dark & {
  36. color: mc('blue', '200');
  37. }
  38. }
  39. // ---------------------------------
  40. // HEADERS
  41. // ---------------------------------
  42. h1, h2, h3, h4, h5, h6 {
  43. position: relative;
  44. &:first-child {
  45. padding-top: 0;
  46. }
  47. &:hover {
  48. .toc-anchor {
  49. display: block;
  50. }
  51. }
  52. .toc-anchor {
  53. display: none;
  54. position: absolute;
  55. right: 1rem;
  56. bottom: .5rem;
  57. font-size: 1.25rem;
  58. text-decoration: none;
  59. color: mc('grey', '500');
  60. }
  61. & + h2, & + h3, & + h4, & + h5, & + h6 {
  62. margin-top: 8px;
  63. }
  64. }
  65. h1 {
  66. padding: 0;
  67. color: mc('blue', '800');
  68. margin-top: 2rem;
  69. position: relative;
  70. @at-root .theme--dark & {
  71. color: mc('grey', '300');
  72. }
  73. &::after {
  74. content: '';
  75. position: absolute;
  76. bottom: 0;
  77. left: 0;
  78. width: 100%;
  79. height: 2px;
  80. background: linear-gradient(to right, mc('theme', 'primary'), rgba(mc('theme', 'primary'), 0));
  81. border-radius: 3px;
  82. @at-root .theme--dark & {
  83. background: linear-gradient(to right, mc('blue', '300') 0%, mc('blue', '500') 10%, rgba(mc('blue', '900'), 0) 100%);
  84. }
  85. @at-root .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. text-align: justify;
  171. @at-root .contents > div > p:first-child {
  172. padding-top: 0;
  173. }
  174. @at-root .v-application & {
  175. margin-bottom: 0;
  176. }
  177. }
  178. hr {
  179. margin: 1rem 0;
  180. height: 1px;
  181. border: none;
  182. background-color: mc('grey', '400');
  183. @at-root .theme--dark & {
  184. background-color: mc('grey', '700');
  185. }
  186. }
  187. .emoji {
  188. height: 1.25em;
  189. margin: 0 1px -4px;
  190. }
  191. blockquote {
  192. padding: 0 1rem 1rem 1rem;
  193. border-left: 5px solid mc('blue', '500');
  194. border-radius: .5rem;
  195. margin: 1rem 0;
  196. > p:first-child .emoji {
  197. margin-right: .5rem;
  198. }
  199. &.valign-center > p {
  200. display: flex;
  201. align-items: center;
  202. }
  203. &.is-info {
  204. background-color: mc('blue', '50');
  205. border-color: mc('blue', '300');
  206. color: mc('blue', '900');
  207. code {
  208. background-color: mc('blue', '50');
  209. color: mc('blue', '800');
  210. }
  211. @at-root .theme--dark & {
  212. background-color: mc('blue', '900');
  213. color: mc('blue', '50');
  214. border-color: mc('blue', '500');
  215. }
  216. }
  217. &.is-warning {
  218. background-color: mc('orange', '50');
  219. border-color: mc('orange', '300');
  220. color: darken(mc('orange', '900'), 10%);
  221. code {
  222. background-color: mc('orange', '50');
  223. color: mc('orange', '800');
  224. }
  225. @at-root .theme--dark & {
  226. background-color: darken(mc('orange', '900'), 5%);
  227. color: mc('orange', '100');
  228. border-color: mc('orange', '500');
  229. box-shadow: 0 0 2px 0 mc('grey', '900');
  230. }
  231. }
  232. &.is-danger {
  233. background-color: mc('red', '50');
  234. border-color: mc('red', '300');
  235. color: mc('red', '900');
  236. code {
  237. background-color: mc('red', '50');
  238. color: mc('red', '800');
  239. }
  240. @at-root .theme--dark & {
  241. background-color: mc('red', '900');
  242. color: mc('red', '100');
  243. border-color: mc('red', '500');
  244. }
  245. }
  246. &.is-success {
  247. background-color: mc('green', '50');
  248. border-color: mc('green', '300');
  249. color: mc('green', '900');
  250. code {
  251. background-color: mc('green', '50');
  252. color: mc('green', '800');
  253. }
  254. @at-root .theme--dark & {
  255. background-color: mc('green', '900');
  256. color: mc('green', '50');
  257. border-color: mc('green', '500');
  258. }
  259. }
  260. }
  261. // ---------------------------------
  262. // LISTS
  263. // ---------------------------------
  264. ol, ul {
  265. padding: 1rem 0 0 0;
  266. list-style-position: inside;
  267. @at-root .is-rtl & {
  268. padding-left: 0;
  269. padding-right: 1rem;
  270. }
  271. li > ul, li > ol {
  272. padding-top: .5rem;
  273. padding-left: 1rem;
  274. @at-root .is-rtl & {
  275. padding-left: 0;
  276. padding-right: 1rem;
  277. }
  278. }
  279. li + li {
  280. margin-top: .5rem;
  281. }
  282. &.links-list {
  283. padding-left: 0;
  284. list-style-type: none;
  285. @at-root .is-rtl & {
  286. padding-right: 0;
  287. }
  288. li {
  289. background-color: mc('grey', '50');
  290. background-image: linear-gradient(to bottom, #FFF, mc('grey', '50'));
  291. border-right: 1px solid mc('grey', '200');
  292. border-bottom: 1px solid mc('grey', '200');
  293. border-left: 5px solid mc('grey', '300');
  294. box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
  295. padding: 1rem;
  296. border-radius: 5px;
  297. font-weight: 500;
  298. @at-root .is-rtl & {
  299. border-left-width: 1px;
  300. border-right-width: 5px;
  301. }
  302. &:hover {
  303. background-image: linear-gradient(to bottom, #FFF, lighten(mc('blue', '50'), 4%));
  304. border-left-color: mc('blue', '500');
  305. cursor: pointer;
  306. @at-root .is-rtl & {
  307. border-left-color: mc('grey', '200');
  308. border-right-width: mc('blue', '500');
  309. }
  310. }
  311. &::before {
  312. content: '';
  313. display: none;
  314. }
  315. > a {
  316. display: block;
  317. text-decoration: none;
  318. margin: -1rem;
  319. padding: 1rem;
  320. > em {
  321. font-weight: 400;
  322. font-style: normal;
  323. color: mc('grey', '700');
  324. display: inline-block;
  325. padding-left: .5rem;
  326. border-left: 1px solid mc('grey', '300');
  327. margin-left: .5rem;
  328. &.is-block {
  329. display: block;
  330. padding-left: 0;
  331. margin-left: 0;
  332. border-left: none;
  333. }
  334. }
  335. }
  336. > em {
  337. font-weight: 400;
  338. font-style: normal;
  339. }
  340. @at-root .theme--dark & {
  341. background-color: mc('grey', '50');
  342. background-image: linear-gradient(to bottom, lighten(mc('grey', '900'), 5%), mc('grey', '900'));
  343. border-right: 1px solid mc('grey', '900');
  344. border-bottom: 1px solid mc('grey', '900');
  345. border-left: 5px solid mc('grey', '700');
  346. box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.1);
  347. @at-root .theme--dark.is-rtl & {
  348. border-left-width: 1px;
  349. border-right-width: 5px;
  350. }
  351. &:hover {
  352. background-image: linear-gradient(to bottom, lighten(mc('grey', '900'), 2%), darken(mc('grey', '900'), 3%));
  353. border-left-color: mc('indigo', '300');
  354. cursor: pointer;
  355. @at-root .theme--dark.is-rtl & {
  356. border-left-color: mc('grey', '900');
  357. border-right-width: mc('indigo', '300');
  358. }
  359. }
  360. }
  361. }
  362. }
  363. &.grid-list {
  364. margin: 1rem 0 0 0;
  365. background-color: #FFF;
  366. border: 1px solid mc('grey', '200');
  367. padding: 1px;
  368. display: inline-block;
  369. list-style-type: none;
  370. @at-root .theme--dark & {
  371. background-color: #000;
  372. border: 1px solid mc('grey', '800');
  373. }
  374. li {
  375. background-color: mc('grey', '50');
  376. padding: .6rem 1rem;
  377. display: block;
  378. &:nth-child(odd) {
  379. background-color: mc('grey', '100');
  380. }
  381. & + li {
  382. margin-top: 0;
  383. }
  384. &::before {
  385. content: '';
  386. display: none;
  387. }
  388. @at-root .theme--dark & {
  389. background-color: mc('grey', '900');
  390. &:nth-child(odd) {
  391. background-color: darken(mc('grey', '900'), 5%);
  392. }
  393. }
  394. }
  395. }
  396. }
  397. ul {
  398. list-style: none;
  399. width: 100%;
  400. > li::before {
  401. content: '\25b8';
  402. color: mc('grey', '600');
  403. display: inline-block;
  404. width: 1.35rem;
  405. @at-root .is-rtl & {
  406. content: '\25C3' ;
  407. }
  408. }
  409. > li {
  410. display:flex;
  411. flex-wrap: wrap;
  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. }
  534. &.align-center {
  535. display: block;
  536. max-width: 100%;
  537. margin: auto;
  538. }
  539. &.align-abstopright {
  540. position: absolute;
  541. top: -90px;
  542. right: 1rem;
  543. height: calc(90px - 32px);
  544. width: auto;
  545. @at-root .is-rtl & {
  546. left: 1rem;
  547. right: initial;
  548. }
  549. }
  550. &.decor-shadow {
  551. box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
  552. }
  553. &.decor-outline {
  554. border: 1px solid mc('grey', '400');
  555. }
  556. &.uml-diagram {
  557. margin: 1rem 0;
  558. }
  559. }
  560. figure.image {
  561. margin: 1rem 0 0 0;
  562. img {
  563. margin: 0 auto;
  564. }
  565. figcaption {
  566. padding: 4px 1rem;
  567. text-align: center;
  568. font-size: 12px;
  569. color: mc('grey', '700');
  570. background-color: mc('grey', '100');
  571. @at-root .theme--dark & {
  572. color: mc('grey', '400');
  573. background-color: mc('grey', '800');
  574. }
  575. }
  576. }
  577. // ---------------------------------
  578. // DETAILS
  579. // ---------------------------------
  580. details {
  581. background-color: mc('grey', '50');
  582. margin: 1rem 2rem;
  583. border: 1px solid mc('grey', '300');
  584. border-radius: 7px;
  585. > p {
  586. padding-left: 0;
  587. }
  588. summary {
  589. border-radius: 7px;
  590. background-color: mc('grey', '50');
  591. cursor: pointer;
  592. height: 40px;
  593. display: flex;
  594. align-items: center;
  595. padding: 0 1rem;
  596. transition: background-color .4s ease;
  597. &:focus {
  598. outline: none;
  599. background-color: mc('grey', '100');
  600. }
  601. }
  602. &[open] {
  603. padding: 1rem;
  604. summary {
  605. background-color: mc('grey', '100');
  606. border-bottom: 1px solid mc('grey', '300');
  607. border-bottom-left-radius: 0;
  608. border-bottom-right-radius: 0;
  609. margin: -1rem -1rem 1rem -1rem;
  610. }
  611. }
  612. @at-root .theme--dark & {
  613. background-color: mc('grey', '900');
  614. border-color: mc('grey', '700');
  615. summary {
  616. background-color: mc('grey', '900');
  617. border-color: mc('grey', '700');
  618. }
  619. &[open] summary {
  620. background-color: lighten(mc('grey', '900'), 5%);
  621. }
  622. }
  623. }
  624. // ---------------------------------
  625. // HIGHLIGHTING
  626. // ---------------------------------
  627. mark {
  628. &.pen-red {
  629. color: mc('red', '500');
  630. background-color: initial;
  631. }
  632. &.pen-green {
  633. color: mc('green', '500');
  634. background-color: initial;
  635. }
  636. &.marker-blue {
  637. background-color: mc('blue', '300');
  638. }
  639. &.marker-yellow {
  640. background-color: mc('yellow', '300');
  641. }
  642. &.marker-pink {
  643. background-color: mc('pink', '300');
  644. }
  645. &.marker-green {
  646. background-color: mc('green', '300');
  647. }
  648. }
  649. }
  650. // ---------------
  651. // RTL FIXES
  652. // Vuetify GH Issue: https://github.com/vuetifyjs/vuetify/issues/6317
  653. // ---------------
  654. .is-rtl {
  655. .page-col-content.is-page-header {
  656. @each $size, $width in $grid-breakpoints {
  657. @media (min-width: $width) {
  658. @for $n from 0 through 12 {
  659. &.offset-#{$size}-#{$n} {
  660. margin-left: 0;
  661. margin-right: ($n / 12 * 100) * 1%;
  662. }
  663. }
  664. }
  665. }
  666. }
  667. }
  668. // ---------------
  669. // PRINT OVERRIDES
  670. // ---------------
  671. @media print {
  672. .nav-header,
  673. .v-navigation-drawer,
  674. .v-footer,
  675. .v-btn--fab,
  676. .page-col-sd,
  677. .v-tooltip__content
  678. {
  679. display: none !important;
  680. }
  681. .page-col-content {
  682. flex-basis: 100% !important;
  683. flex-grow: 1 !important;
  684. max-width: 100% !important;
  685. margin-left: 0 !important;
  686. > .v-toolbar {
  687. border: 1px solid mc('grey', '300') !important;
  688. border-radius: 7px !important;
  689. & + .v-divider {
  690. display: none !important;
  691. }
  692. }
  693. }
  694. .v-content {
  695. padding: 0 !important;
  696. font-size: 14px;
  697. background-color: #FFF;
  698. }
  699. .v-content .contents {
  700. color: #000;
  701. background-color: #FFF;
  702. @at-root .theme--dark & {
  703. color: #000;
  704. }
  705. .prismjs{
  706. box-shadow: none;
  707. background-color: #FFF;
  708. @at-root .theme--dark & {
  709. background-color: #FFF;
  710. }
  711. > code {
  712. color: #000;
  713. box-shadow: none;
  714. text-shadow: none;
  715. }
  716. }
  717. }
  718. }