You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

751 lines
16 KiB

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