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.

675 lines
15 KiB

  1. /* THEME SPECIFIC STYLES */
  2. .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. // background-color: darken(mc('grey', '900'), 4%);
  11. color: mc('grey', '300');
  12. a {
  13. color: mc('blue', '100');
  14. }
  15. }
  16. // ---------------------------------
  17. // HEADERS
  18. // ---------------------------------
  19. h1, h2, h3, h4, h5, h6 {
  20. position: relative;
  21. &:first-child {
  22. padding-top: 0;
  23. }
  24. &:hover {
  25. .toc-anchor {
  26. display: block;
  27. }
  28. }
  29. .toc-anchor {
  30. display: none;
  31. position: absolute;
  32. right: 1rem;
  33. bottom: .5rem;
  34. font-size: 1.25rem;
  35. text-decoration: none;
  36. color: mc('grey', '500');
  37. }
  38. & + h2, & + h3, & + h4, & + h5, & + h6 {
  39. margin-top: 8px;
  40. }
  41. }
  42. h1 {
  43. padding: 0;
  44. color: mc('blue', '800');
  45. margin-top: 2rem;
  46. position: relative;
  47. @at-root .theme--dark & {
  48. color: mc('grey', '300');
  49. }
  50. &::after {
  51. content: '';
  52. position: absolute;
  53. bottom: 0;
  54. left: 0;
  55. width: 100%;
  56. height: 2px;
  57. background: linear-gradient(to right, mc('theme', 'primary'), rgba(mc('theme', 'primary'), 0));
  58. border-radius: 3px;
  59. @at-root .theme--dark & {
  60. background: linear-gradient(to right, mc('blue', '300') 0%, mc('blue', '500') 10%, rgba(mc('blue', '900'), 0) 100%);
  61. }
  62. @at-root .application--is-rtl & {
  63. background: linear-gradient(to left, mc('theme', 'primary'), rgba(mc('theme', 'primary'), 0));
  64. }
  65. @at-root .theme--dark.application--is-rtl & {
  66. background: linear-gradient(to left, mc('grey', '600'), rgba(mc('grey', '600'), 0));
  67. }
  68. }
  69. }
  70. h2 {
  71. margin: 1rem 0 0 0;
  72. color: mc('grey', '800');
  73. position: relative;
  74. @at-root .theme--dark & {
  75. color: mc('grey', '400');
  76. }
  77. &::after {
  78. content: '';
  79. position: absolute;
  80. bottom: 0;
  81. left: 0;
  82. width: 100%;
  83. height: 1px;
  84. background: linear-gradient(to right, mc('grey', '700'), rgba(mc('grey', '700'), 0));
  85. @at-root .theme--dark & {
  86. background: linear-gradient(to right, mc('grey', '300'), rgba(mc('grey', '700'), 0));
  87. }
  88. @at-root .application--is-rtl & {
  89. background: linear-gradient(to left, mc('grey', '700'), rgba(mc('grey', '700'), 0));
  90. }
  91. @at-root .theme--dark.application--is-rtl & {
  92. background: linear-gradient(to left, mc('grey', '300'), rgba(mc('grey', '700'), 0));
  93. }
  94. }
  95. }
  96. h3 {
  97. margin: 8px 0 0 0;
  98. color: mc('grey', '700');
  99. position: relative;
  100. @at-root .theme--dark & {
  101. color: mc('grey', '600');
  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', '500'), rgba(mc('grey', '500'), 0) 90%);
  111. }
  112. }
  113. h4, h5, h6 {
  114. font-size: 1rem;
  115. margin: 8px 0 0 0;
  116. color: mc('grey', '700');
  117. position: relative;
  118. @at-root .theme--dark & {
  119. color: mc('grey', '600');
  120. }
  121. &::after {
  122. content: '';
  123. position: absolute;
  124. bottom: 0;
  125. left: 0;
  126. width: 100%;
  127. height: 1px;
  128. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 70%);
  129. }
  130. }
  131. h5 {
  132. &::after {
  133. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 50%);
  134. }
  135. }
  136. h6 {
  137. &::after {
  138. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 30%);
  139. }
  140. }
  141. // ---------------------------------
  142. // PARAGRAPHS
  143. // ---------------------------------
  144. p {
  145. padding: 1rem 24px 0 24px;
  146. margin: 0;
  147. text-align: justify;
  148. @at-root .contents > div > p:first-child {
  149. padding-top: 0;
  150. }
  151. @at-root .v-application & {
  152. margin-bottom: 0;
  153. }
  154. }
  155. hr {
  156. margin: 1rem 0;
  157. height: 1px;
  158. border: none;
  159. background-color: mc('grey', '400');
  160. @at-root .theme--dark & {
  161. background-color: mc('grey', '700');
  162. }
  163. }
  164. .emoji {
  165. height: 1.25em;
  166. margin: 0 1px -4px;
  167. }
  168. blockquote {
  169. padding: 0 0 1rem 0;
  170. border-left: 5px solid mc('blue', '500');
  171. border-radius: .5rem;
  172. margin: 1rem 0;
  173. > p:first-child .emoji {
  174. margin-right: .5rem;
  175. }
  176. &.valign-center > p {
  177. display: flex;
  178. align-items: center;
  179. }
  180. &.is-info {
  181. background-color: mc('blue', '50');
  182. background-image: radial-gradient(ellipse at top, mc('blue', '50'), lighten(mc('blue', '50'), 5%));
  183. border-color: mc('blue', '100');
  184. box-shadow: 0 0 2px 0 mc('blue', '100');
  185. code {
  186. background-color: mc('blue', '50');
  187. color: mc('blue', '800');
  188. }
  189. @at-root .theme--dark & {
  190. background-color: mc('grey', '900');
  191. background-image: radial-gradient(ellipse at top, rgba(mc('blue', '900'), .25), rgba(darken(mc('blue', '900'), 5%), .2));
  192. border-color: mc('blue', '500');
  193. box-shadow: 0 0 2px 0 mc('grey', '900');
  194. }
  195. }
  196. &.is-warning {
  197. background-color: mc('orange', '50');
  198. background-image: radial-gradient(ellipse at top, mc('orange', '50'), lighten(mc('orange', '50'), 5%));
  199. border-color: mc('orange', '100');
  200. box-shadow: 0 0 2px 0 mc('orange', '100');
  201. code {
  202. background-color: mc('orange', '50');
  203. color: mc('orange', '800');
  204. }
  205. @at-root .theme--dark & {
  206. background-color: mc('grey', '900');
  207. background-image: radial-gradient(ellipse at top, rgba(mc('orange', '900'), .25), rgba(darken(mc('orange', '900'), 5%), .2));
  208. border-color: mc('orange', '500');
  209. box-shadow: 0 0 2px 0 mc('grey', '900');
  210. }
  211. }
  212. &.is-danger {
  213. background-color: mc('red', '50');
  214. background-image: radial-gradient(ellipse at top, mc('red', '50'), lighten(mc('red', '50'), 5%));
  215. border-color: mc('red', '100');
  216. box-shadow: 0 0 2px 0 mc('red', '100');
  217. code {
  218. background-color: mc('red', '50');
  219. color: mc('red', '800');
  220. }
  221. @at-root .theme--dark & {
  222. background-color: mc('grey', '900');
  223. background-image: radial-gradient(ellipse at top, rgba(mc('red', '900'), .1), rgba(darken(mc('red', '900'), 5%), .2));
  224. border-color: mc('red', '500');
  225. box-shadow: 0 0 2px 0 mc('grey', '900');
  226. }
  227. }
  228. &.is-success {
  229. background-color: mc('green', '50');
  230. background-image: radial-gradient(ellipse at top, mc('green', '50'), lighten(mc('green', '50'), 5%));
  231. border-color: mc('green', '100');
  232. box-shadow: 0 0 2px 0 mc('green', '100');
  233. code {
  234. background-color: mc('green', '50');
  235. color: mc('green', '800');
  236. }
  237. @at-root .theme--dark & {
  238. background-color: mc('grey', '900');
  239. background-image: radial-gradient(ellipse at top, rgba(mc('green', '900'), .4), rgba(darken(mc('green', '900'), 5%), .2));
  240. border-color: mc('green', '500');
  241. box-shadow: 0 0 2px 0 mc('grey', '900');
  242. }
  243. }
  244. }
  245. // ---------------------------------
  246. // LISTS
  247. // ---------------------------------
  248. ol, ul {
  249. padding: 1rem 24px 0 24px;
  250. list-style-position: inside;
  251. li + li {
  252. margin-top: .5rem;
  253. }
  254. &.links-list {
  255. li {
  256. background-color: mc('grey', '50');
  257. background-image: linear-gradient(to bottom, #FFF, mc('grey', '50'));
  258. border-right: 1px solid mc('grey', '200');
  259. border-bottom: 1px solid mc('grey', '200');
  260. border-left: 5px solid mc('grey', '300');
  261. box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
  262. padding: 1rem;
  263. border-radius: 5px;
  264. font-weight: 500;
  265. &:hover {
  266. background-image: linear-gradient(to bottom, #FFF, lighten(mc('blue', '50'), 4%));
  267. border-left-color: mc('blue', '500');
  268. cursor: pointer;
  269. }
  270. &::before {
  271. content: '';
  272. display: none;
  273. }
  274. > a {
  275. display: block;
  276. text-decoration: none;
  277. margin: -1rem;
  278. padding: 1rem;
  279. > em {
  280. font-weight: 400;
  281. font-style: normal;
  282. color: mc('grey', '700');
  283. display: inline-block;
  284. padding-left: .5rem;
  285. border-left: 1px solid mc('grey', '300');
  286. margin-left: .5rem;
  287. &.is-block {
  288. display: block;
  289. padding-left: 0;
  290. margin-left: 0;
  291. border-left: none;
  292. }
  293. }
  294. }
  295. > em {
  296. font-weight: 400;
  297. font-style: normal;
  298. }
  299. @at-root .theme--dark & {
  300. background-color: mc('grey', '50');
  301. background-image: linear-gradient(to bottom, lighten(mc('grey', '900'), 5%), mc('grey', '900'));
  302. border-right: 1px solid mc('grey', '900');
  303. border-bottom: 1px solid mc('grey', '900');
  304. border-left: 5px solid mc('grey', '700');
  305. box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.1);
  306. &:hover {
  307. background-image: linear-gradient(to bottom, lighten(mc('grey', '900'), 2%), darken(mc('grey', '900'), 3%));
  308. border-left-color: mc('indigo', '300');
  309. cursor: pointer;
  310. }
  311. }
  312. }
  313. }
  314. &.grid-list {
  315. margin: 1rem 24px 0 24px;
  316. background-color: #FFF;
  317. border: 1px solid mc('grey', '200');
  318. padding: 1px;
  319. display: inline-block;
  320. @at-root .theme--dark & {
  321. background-color: #000;
  322. border: 1px solid mc('grey', '800');
  323. }
  324. li {
  325. background-color: mc('grey', '50');
  326. padding: .6rem 1rem;
  327. display: block;
  328. &:nth-child(odd) {
  329. background-color: mc('grey', '100');
  330. }
  331. & + li {
  332. margin-top: 0;
  333. }
  334. &::before {
  335. content: '';
  336. display: none;
  337. }
  338. @at-root .theme--dark & {
  339. background-color: mc('grey', '900');
  340. &:nth-child(odd) {
  341. background-color: darken(mc('grey', '900'), 5%);
  342. }
  343. }
  344. }
  345. }
  346. }
  347. ul {
  348. list-style: none;
  349. > li::before {
  350. content: '\25b8';
  351. color: mc('grey', '600');
  352. display: inline-block;
  353. width: 1.35rem;
  354. }
  355. }
  356. // ---------------------------------
  357. // CODE
  358. // ---------------------------------
  359. code {
  360. background-color: mc('indigo', '50');
  361. padding: 0 5px;
  362. color: mc('indigo', '800');
  363. font-family: 'Roboto Mono', monospace;
  364. font-weight: normal;
  365. font-size: 1rem;
  366. box-shadow: none;
  367. &::before, &::after {
  368. display: none;
  369. }
  370. @at-root .theme--dark & {
  371. background-color: darken(mc('grey', '900'), 5%);
  372. color: mc('indigo', '100');
  373. }
  374. }
  375. .prismjs{
  376. border: none;
  377. border-radius: 5px;
  378. box-shadow: initial;
  379. background-color: mc('grey', '900');
  380. padding: 1rem 1rem 1rem 3rem;
  381. margin: 1rem 24px;
  382. @at-root .theme--dark & {
  383. background-color: darken(mc('grey', '900'), 5%);
  384. }
  385. > code {
  386. background-color: transparent;
  387. padding: 0;
  388. color: #FFF;
  389. box-shadow: initial;
  390. display: block;
  391. font-size: .85rem;
  392. font-family: 'Roboto Mono', monospace;
  393. &:after, &:before {
  394. content: initial;
  395. letter-spacing: initial;
  396. }
  397. }
  398. }
  399. // ---------------------------------
  400. // TASK LISTS
  401. // ---------------------------------
  402. .task-list-item {
  403. position: relative;
  404. list-style-type: none;
  405. &-checkbox[disabled] {
  406. display: none;
  407. & + label {
  408. padding-left: 1.5rem;
  409. }
  410. & + label::before {
  411. position: absolute;
  412. left: 0;
  413. top: 2px;
  414. content: ' ';
  415. display: block;
  416. width: 1.1rem;
  417. height: 1.1rem;
  418. background-color: #FFF;
  419. border: 1px solid mc('grey', '400');
  420. border-radius: 2px;
  421. font-weight: bold;
  422. font-size: .8rem;
  423. line-height: 1rem;
  424. text-align: center;
  425. @at-root .theme--dark & {
  426. background-color: mc('grey', '900');
  427. border-color: mc('grey', '700');
  428. }
  429. }
  430. &[checked] + label::before {
  431. content: '';
  432. }
  433. }
  434. .contains-task-list {
  435. padding: .5rem 0 0 1.5rem;
  436. }
  437. }
  438. // ---------------------------------
  439. // TABLES
  440. // ---------------------------------
  441. table {
  442. margin: .5rem 1.75rem;
  443. border-spacing: 0;
  444. th {
  445. padding: .75rem;
  446. border-bottom: 2px solid mc('grey', '500');
  447. color: mc('grey', '600');
  448. }
  449. td {
  450. padding: .75rem;
  451. }
  452. tr {
  453. td {
  454. border-bottom: 1px solid mc('grey', '200');
  455. }
  456. }
  457. }
  458. // ---------------------------------
  459. // IMAGES
  460. // ---------------------------------
  461. img {
  462. max-width: 100%;
  463. &.align-left {
  464. float: left;
  465. margin: 0 1rem 1rem 0;
  466. }
  467. &.align-right {
  468. float: right;
  469. margin: 0 0 1rem 1rem;
  470. }
  471. &.align-center {
  472. display: block;
  473. max-width: 100%;
  474. margin: auto;
  475. }
  476. &.align-abstopright {
  477. position: absolute;
  478. top: -90px;
  479. right: 1rem;
  480. height: calc(90px - 32px);
  481. width: auto;
  482. }
  483. &.decor-shadow {
  484. box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
  485. }
  486. &.decor-outline {
  487. border: 1px solid mc('grey', '400');
  488. }
  489. }
  490. // ---------------------------------
  491. // DETAILS
  492. // ---------------------------------
  493. details {
  494. background-color: mc('grey', '50');
  495. margin: 1rem 2rem;
  496. border: 1px solid mc('grey', '300');
  497. border-radius: 7px;
  498. > p {
  499. padding-left: 0;
  500. }
  501. summary {
  502. border-radius: 7px;
  503. background-color: mc('grey', '50');
  504. cursor: pointer;
  505. height: 40px;
  506. display: flex;
  507. align-items: center;
  508. padding: 0 1rem;
  509. transition: background-color .4s ease;
  510. &:focus {
  511. outline: none;
  512. background-color: mc('grey', '100');
  513. }
  514. }
  515. &[open] {
  516. padding: 1rem;
  517. summary {
  518. background-color: mc('grey', '100');
  519. border-bottom: 1px solid mc('grey', '300');
  520. border-bottom-left-radius: 0;
  521. border-bottom-right-radius: 0;
  522. margin: -1rem -1rem 1rem -1rem;
  523. }
  524. }
  525. @at-root .theme--dark & {
  526. background-color: mc('grey', '900');
  527. border-color: mc('grey', '700');
  528. summary {
  529. background-color: mc('grey', '900');
  530. border-color: mc('grey', '700');
  531. }
  532. &[open] summary {
  533. background-color: lighten(mc('grey', '900'), 5%);
  534. }
  535. }
  536. }
  537. }
  538. // ---------------
  539. // PRINT OVERRIDES
  540. // ---------------
  541. @media print {
  542. .nav-header,
  543. .v-navigation-drawer,
  544. .v-footer,
  545. .v-btn--fab,
  546. .page-col-sd
  547. {
  548. display: none !important;
  549. }
  550. .page-col-content {
  551. flex-basis: 100% !important;
  552. flex-grow: 1 !important;
  553. max-width: 100% !important;
  554. margin-left: 0 !important;
  555. > .v-toolbar {
  556. border: 1px solid mc('grey', '300') !important;
  557. border-radius: 7px !important;
  558. & + .v-divider {
  559. display: none !important;
  560. }
  561. }
  562. }
  563. .v-content {
  564. padding: 0 !important;
  565. font-size: 14px;
  566. }
  567. }