app.scss 15 KB

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