app.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748
  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 .application--is-rtl & {
  86. background: linear-gradient(to left, mc('theme', 'primary'), rgba(mc('theme', 'primary'), 0));
  87. }
  88. @at-root .theme--dark.application--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 .application--is-rtl & {
  112. background: linear-gradient(to left, mc('grey', '700'), rgba(mc('grey', '700'), 0));
  113. }
  114. @at-root .theme--dark.application--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 0 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. li > ul, li > ol {
  268. padding-left: 1rem;
  269. }
  270. li + li {
  271. margin-top: .5rem;
  272. }
  273. &.links-list {
  274. li {
  275. background-color: mc('grey', '50');
  276. background-image: linear-gradient(to bottom, #FFF, mc('grey', '50'));
  277. border-right: 1px solid mc('grey', '200');
  278. border-bottom: 1px solid mc('grey', '200');
  279. border-left: 5px solid mc('grey', '300');
  280. box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
  281. padding: 1rem;
  282. border-radius: 5px;
  283. font-weight: 500;
  284. &:hover {
  285. background-image: linear-gradient(to bottom, #FFF, lighten(mc('blue', '50'), 4%));
  286. border-left-color: mc('blue', '500');
  287. cursor: pointer;
  288. }
  289. &::before {
  290. content: '';
  291. display: none;
  292. }
  293. > a {
  294. display: block;
  295. text-decoration: none;
  296. margin: -1rem;
  297. padding: 1rem;
  298. > em {
  299. font-weight: 400;
  300. font-style: normal;
  301. color: mc('grey', '700');
  302. display: inline-block;
  303. padding-left: .5rem;
  304. border-left: 1px solid mc('grey', '300');
  305. margin-left: .5rem;
  306. &.is-block {
  307. display: block;
  308. padding-left: 0;
  309. margin-left: 0;
  310. border-left: none;
  311. }
  312. }
  313. }
  314. > em {
  315. font-weight: 400;
  316. font-style: normal;
  317. }
  318. @at-root .theme--dark & {
  319. background-color: mc('grey', '50');
  320. background-image: linear-gradient(to bottom, lighten(mc('grey', '900'), 5%), mc('grey', '900'));
  321. border-right: 1px solid mc('grey', '900');
  322. border-bottom: 1px solid mc('grey', '900');
  323. border-left: 5px solid mc('grey', '700');
  324. box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.1);
  325. &:hover {
  326. background-image: linear-gradient(to bottom, lighten(mc('grey', '900'), 2%), darken(mc('grey', '900'), 3%));
  327. border-left-color: mc('indigo', '300');
  328. cursor: pointer;
  329. }
  330. }
  331. }
  332. }
  333. &.grid-list {
  334. margin: 1rem 0 0 0;
  335. background-color: #FFF;
  336. border: 1px solid mc('grey', '200');
  337. padding: 1px;
  338. display: inline-block;
  339. @at-root .theme--dark & {
  340. background-color: #000;
  341. border: 1px solid mc('grey', '800');
  342. }
  343. li {
  344. background-color: mc('grey', '50');
  345. padding: .6rem 1rem;
  346. display: block;
  347. &:nth-child(odd) {
  348. background-color: mc('grey', '100');
  349. }
  350. & + li {
  351. margin-top: 0;
  352. }
  353. &::before {
  354. content: '';
  355. display: none;
  356. }
  357. @at-root .theme--dark & {
  358. background-color: mc('grey', '900');
  359. &:nth-child(odd) {
  360. background-color: darken(mc('grey', '900'), 5%);
  361. }
  362. }
  363. }
  364. }
  365. }
  366. ul {
  367. list-style: none;
  368. > li::before {
  369. content: '\25b8';
  370. color: mc('grey', '600');
  371. display: inline-block;
  372. width: 1.35rem;
  373. }
  374. }
  375. // ---------------------------------
  376. // CODE
  377. // ---------------------------------
  378. code {
  379. background-color: mc('indigo', '50');
  380. padding: 0 5px;
  381. color: mc('indigo', '800');
  382. font-family: 'Roboto Mono', monospace;
  383. font-weight: normal;
  384. font-size: 1rem;
  385. box-shadow: none;
  386. &::before, &::after {
  387. display: none;
  388. }
  389. @at-root .theme--dark & {
  390. background-color: darken(mc('grey', '900'), 5%);
  391. color: mc('indigo', '100');
  392. }
  393. }
  394. .prismjs{
  395. border: none;
  396. border-radius: 5px;
  397. box-shadow: initial;
  398. background-color: mc('grey', '900');
  399. padding: 1rem 1rem 1rem 3rem;
  400. margin: 1rem 0;
  401. @at-root .theme--dark & {
  402. background-color: darken(mc('grey', '900'), 5%);
  403. }
  404. > code {
  405. background-color: transparent;
  406. padding: 0;
  407. color: #FFF;
  408. box-shadow: initial;
  409. display: block;
  410. font-size: .85rem;
  411. font-family: 'Roboto Mono', monospace;
  412. &:after, &:before {
  413. content: initial;
  414. letter-spacing: initial;
  415. }
  416. }
  417. }
  418. // ---------------------------------
  419. // TASK LISTS
  420. // ---------------------------------
  421. .task-list-item {
  422. position: relative;
  423. list-style-type: none;
  424. &-checkbox[disabled] {
  425. display: none;
  426. & + label {
  427. padding-left: 1.5rem;
  428. }
  429. & + label::before {
  430. position: absolute;
  431. left: 0;
  432. top: 2px;
  433. content: ' ';
  434. display: block;
  435. width: 1.1rem;
  436. height: 1.1rem;
  437. background-color: #FFF;
  438. border: 1px solid mc('grey', '400');
  439. border-radius: 2px;
  440. font-weight: bold;
  441. font-size: .8rem;
  442. line-height: 1rem;
  443. text-align: center;
  444. @at-root .theme--dark & {
  445. background-color: mc('grey', '900');
  446. border-color: mc('grey', '700');
  447. }
  448. }
  449. &[checked] + label::before {
  450. content: '✓';
  451. }
  452. }
  453. .contains-task-list {
  454. padding: .5rem 0 0 1.5rem;
  455. }
  456. }
  457. // ---------------------------------
  458. // TABLES
  459. // ---------------------------------
  460. table {
  461. margin: .5rem 1.75rem;
  462. border-spacing: 0;
  463. th {
  464. padding: .75rem;
  465. border-bottom: 2px solid mc('grey', '500');
  466. color: mc('grey', '600');
  467. }
  468. td {
  469. padding: .75rem;
  470. }
  471. tr {
  472. td {
  473. border-bottom: 1px solid mc('grey', '200');
  474. }
  475. }
  476. }
  477. // ---------------------------------
  478. // IMAGES
  479. // ---------------------------------
  480. img {
  481. max-width: 100%;
  482. &.align-left {
  483. float: left;
  484. margin: 0 1rem 1rem 0;
  485. }
  486. &.align-right {
  487. float: right;
  488. margin: 0 0 1rem 1rem;
  489. }
  490. &.align-center {
  491. display: block;
  492. max-width: 100%;
  493. margin: auto;
  494. }
  495. &.align-abstopright {
  496. position: absolute;
  497. top: -90px;
  498. right: 1rem;
  499. height: calc(90px - 32px);
  500. width: auto;
  501. }
  502. &.decor-shadow {
  503. box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
  504. }
  505. &.decor-outline {
  506. border: 1px solid mc('grey', '400');
  507. }
  508. &.uml-diagram {
  509. margin: 1rem 0;
  510. }
  511. }
  512. figure.image {
  513. margin: 1rem 0 0 0;
  514. img {
  515. margin: 0 auto;
  516. }
  517. figcaption {
  518. padding: 4px 1rem;
  519. text-align: center;
  520. font-size: 12px;
  521. color: mc('grey', '700');
  522. background-color: mc('grey', '100');
  523. @at-root .theme--dark & {
  524. color: mc('grey', '400');
  525. background-color: mc('grey', '800');
  526. }
  527. }
  528. }
  529. // ---------------------------------
  530. // DETAILS
  531. // ---------------------------------
  532. details {
  533. background-color: mc('grey', '50');
  534. margin: 1rem 2rem;
  535. border: 1px solid mc('grey', '300');
  536. border-radius: 7px;
  537. > p {
  538. padding-left: 0;
  539. }
  540. summary {
  541. border-radius: 7px;
  542. background-color: mc('grey', '50');
  543. cursor: pointer;
  544. height: 40px;
  545. display: flex;
  546. align-items: center;
  547. padding: 0 1rem;
  548. transition: background-color .4s ease;
  549. &:focus {
  550. outline: none;
  551. background-color: mc('grey', '100');
  552. }
  553. }
  554. &[open] {
  555. padding: 1rem;
  556. summary {
  557. background-color: mc('grey', '100');
  558. border-bottom: 1px solid mc('grey', '300');
  559. border-bottom-left-radius: 0;
  560. border-bottom-right-radius: 0;
  561. margin: -1rem -1rem 1rem -1rem;
  562. }
  563. }
  564. @at-root .theme--dark & {
  565. background-color: mc('grey', '900');
  566. border-color: mc('grey', '700');
  567. summary {
  568. background-color: mc('grey', '900');
  569. border-color: mc('grey', '700');
  570. }
  571. &[open] summary {
  572. background-color: lighten(mc('grey', '900'), 5%);
  573. }
  574. }
  575. }
  576. }
  577. // ---------------
  578. // PRINT OVERRIDES
  579. // ---------------
  580. @media print {
  581. .nav-header,
  582. .v-navigation-drawer,
  583. .v-footer,
  584. .v-btn--fab,
  585. .page-col-sd,
  586. .v-tooltip__content
  587. {
  588. display: none !important;
  589. }
  590. .page-col-content {
  591. flex-basis: 100% !important;
  592. flex-grow: 1 !important;
  593. max-width: 100% !important;
  594. margin-left: 0 !important;
  595. > .v-toolbar {
  596. border: 1px solid mc('grey', '300') !important;
  597. border-radius: 7px !important;
  598. & + .v-divider {
  599. display: none !important;
  600. }
  601. }
  602. }
  603. .v-content {
  604. padding: 0 !important;
  605. font-size: 14px;
  606. background-color: #FFF;
  607. }
  608. .v-content .contents {
  609. color: #000;
  610. background-color: #FFF;
  611. @at-root .theme--dark & {
  612. color: #000;
  613. }
  614. .prismjs{
  615. box-shadow: none;
  616. background-color: #FFF;
  617. @at-root .theme--dark & {
  618. background-color: #FFF;
  619. }
  620. > code {
  621. color: #000;
  622. box-shadow: none;
  623. text-shadow: none;
  624. }
  625. }
  626. }
  627. }