app.scss 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289
  1. /* THEME SPECIFIC STYLES */
  2. .v-main .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: '\F03CC';
  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. & + hr.footnotes-sep {
  65. display: none;
  66. }
  67. }
  68. h1 {
  69. padding: 0;
  70. color: mc('blue', '800');
  71. margin-top: 2rem;
  72. position: relative;
  73. @at-root .theme--dark & {
  74. color: mc('grey', '300');
  75. }
  76. &::after {
  77. content: '';
  78. position: absolute;
  79. bottom: 0;
  80. left: 0;
  81. width: 100%;
  82. height: 2px;
  83. background: linear-gradient(to right, mc('theme', 'primary'), rgba(mc('theme', 'primary'), 0));
  84. border-radius: 3px;
  85. @at-root .theme--dark & {
  86. background: linear-gradient(to right, mc('blue', '300') 0%, mc('blue', '500') 10%, rgba(mc('blue', '900'), 0) 100%);
  87. }
  88. @at-root .is-rtl & {
  89. background: linear-gradient(to left, mc('theme', 'primary'), rgba(mc('theme', 'primary'), 0));
  90. }
  91. @at-root .theme--dark.is-rtl & {
  92. background: linear-gradient(to left, mc('grey', '600'), rgba(mc('grey', '600'), 0));
  93. }
  94. }
  95. }
  96. h2 {
  97. margin: 1rem 0 0 0;
  98. color: mc('grey', '800');
  99. position: relative;
  100. @at-root .theme--dark & {
  101. color: mc('grey', '400');
  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', '700'), rgba(mc('grey', '700'), 0));
  111. @at-root .theme--dark & {
  112. background: linear-gradient(to right, mc('grey', '300'), rgba(mc('grey', '700'), 0));
  113. }
  114. @at-root .is-rtl & {
  115. background: linear-gradient(to left, mc('grey', '700'), rgba(mc('grey', '700'), 0));
  116. }
  117. @at-root .theme--dark.is-rtl & {
  118. background: linear-gradient(to left, mc('grey', '300'), rgba(mc('grey', '700'), 0));
  119. }
  120. }
  121. }
  122. h3 {
  123. margin: 8px 0 0 0;
  124. color: mc('grey', '700');
  125. position: relative;
  126. @at-root .theme--dark & {
  127. color: mc('grey', '600');
  128. }
  129. &::after {
  130. content: '';
  131. position: absolute;
  132. bottom: 0;
  133. left: 0;
  134. width: 100%;
  135. height: 1px;
  136. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 90%);
  137. }
  138. }
  139. h4, h5, h6 {
  140. font-size: 1rem;
  141. margin: 8px 0 0 0;
  142. color: mc('grey', '700');
  143. position: relative;
  144. @at-root .theme--dark & {
  145. color: mc('grey', '600');
  146. }
  147. &::after {
  148. content: '';
  149. position: absolute;
  150. bottom: 0;
  151. left: 0;
  152. width: 100%;
  153. height: 1px;
  154. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 70%);
  155. }
  156. }
  157. h5 {
  158. &::after {
  159. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 50%);
  160. }
  161. }
  162. h6 {
  163. &::after {
  164. background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 30%);
  165. }
  166. }
  167. // ---------------------------------
  168. // PARAGRAPHS
  169. // ---------------------------------
  170. p {
  171. padding: 1rem 0 0 0;
  172. margin: 0;
  173. @at-root .contents > div > p:first-child {
  174. padding-top: 0;
  175. }
  176. @at-root .v-application & {
  177. margin-bottom: 0;
  178. }
  179. }
  180. hr {
  181. margin: 1rem 0;
  182. height: 1px;
  183. border: none;
  184. background-color: mc('grey', '400');
  185. @at-root .theme--dark & {
  186. background-color: mc('grey', '700');
  187. }
  188. }
  189. .emoji {
  190. height: 1.25em;
  191. margin: 0 1px -4px;
  192. }
  193. .text-huge {
  194. font-size: 1.8em;
  195. }
  196. .text-big {
  197. font-size: 1.4em;
  198. }
  199. .text-small {
  200. font-size: .85em;
  201. }
  202. .text-tiny {
  203. font-size: .7em;
  204. }
  205. blockquote {
  206. padding: 0 1rem 1rem 1rem;
  207. background-color: mc('blue-grey', '50');
  208. border-left: 55px solid mc('blue-grey', '500');
  209. border-radius: .5rem;
  210. margin: 1rem 0;
  211. position: relative;
  212. @at-root .theme--dark & {
  213. background-color: mc('blue-grey', '900');
  214. }
  215. &::before {
  216. display: inline-block;
  217. font: normal normal normal 24px/1 "Material Design Icons", sans-serif;
  218. position: absolute;
  219. margin-top: -12px;
  220. top: 50%;
  221. left: -38px;
  222. color: rgba(255, 255, 255, .7);
  223. content: "\F0757";
  224. }
  225. > p:first-child .emoji {
  226. margin-right: .5rem;
  227. }
  228. &.valign-center > p {
  229. display: flex;
  230. align-items: center;
  231. }
  232. &.is-info {
  233. background-color: mc('blue', '50');
  234. border-color: mc('blue', '300');
  235. color: mc('blue', '900');
  236. &::before {
  237. content: "\F02FC";
  238. }
  239. code:not([class^="language-"]) {
  240. background-color: mc('blue', '50');
  241. color: mc('blue', '800');
  242. }
  243. @at-root .theme--dark & {
  244. background-color: mc('blue', '900');
  245. color: mc('blue', '50');
  246. border-color: mc('blue', '500');
  247. }
  248. }
  249. &.is-warning {
  250. background-color: mc('orange', '50');
  251. border-color: mc('orange', '300');
  252. color: darken(mc('orange', '900'), 10%);
  253. &::before {
  254. content: "\F0026";
  255. }
  256. code:not([class^="language-"]) {
  257. background-color: mc('orange', '50');
  258. color: mc('orange', '800');
  259. }
  260. @at-root .theme--dark & {
  261. background-color: darken(mc('orange', '900'), 5%);
  262. color: mc('orange', '100');
  263. border-color: mc('orange', '500');
  264. box-shadow: 0 0 2px 0 mc('grey', '900');
  265. }
  266. }
  267. &.is-danger {
  268. background-color: mc('red', '50');
  269. border-color: mc('red', '300');
  270. color: mc('red', '900');
  271. &::before {
  272. content: "\F0159";
  273. }
  274. code:not([class^="language-"]) {
  275. background-color: mc('red', '50');
  276. color: mc('red', '800');
  277. }
  278. @at-root .theme--dark & {
  279. background-color: mc('red', '900');
  280. color: mc('red', '100');
  281. border-color: mc('red', '500');
  282. }
  283. }
  284. &.is-success {
  285. background-color: mc('green', '50');
  286. border-color: mc('green', '300');
  287. color: mc('green', '900');
  288. &::before {
  289. content: "\F0E1E";
  290. }
  291. code:not([class^="language-"]) {
  292. background-color: mc('green', '50');
  293. color: mc('green', '800');
  294. }
  295. @at-root .theme--dark & {
  296. background-color: mc('green', '900');
  297. color: mc('green', '50');
  298. border-color: mc('green', '500');
  299. }
  300. }
  301. }
  302. // ---------------------------------
  303. // ASCIIDOC SPECIFIC
  304. // ---------------------------------
  305. .admonitionblock {
  306. margin: 1rem 0;
  307. position: relative;
  308. table {
  309. border: none;
  310. background-color: transparent;
  311. width: 100%;
  312. }
  313. td.icon {
  314. border-bottom-left-radius: 7px;
  315. border-top-left-radius: 7px;
  316. text-align: center;
  317. width: 56px;
  318. &::before {
  319. display: inline-block;
  320. font: normal normal normal 24px/1 "Material Design Icons", sans-serif !important;
  321. }
  322. }
  323. td.content {
  324. border-bottom-right-radius: 7px;
  325. border-top-right-radius: 7px;
  326. }
  327. &.note {
  328. td.icon {
  329. background-color: mc('blue', '300');
  330. color: mc('blue', '50');
  331. &::before {
  332. content: "\F02FC";
  333. }
  334. }
  335. td.content {
  336. color: darken(mc('blue', '900'), 10%);
  337. background-color: mc('blue', '50');
  338. @at-root .theme--dark & {
  339. background-color: mc('blue', '900');
  340. color: mc('blue', '50');
  341. }
  342. }
  343. }
  344. &.tip {
  345. td.icon {
  346. background-color: mc('green', '300');
  347. color: mc('green', '50');
  348. &::before {
  349. content: "\F0335";
  350. }
  351. }
  352. td.content {
  353. color: darken(mc('green', '900'), 10%);
  354. background-color: mc('green', '50');
  355. @at-root .theme--dark & {
  356. background-color: mc('green', '900');
  357. color: mc('green', '50');
  358. }
  359. }
  360. }
  361. &.warning {
  362. background-color: transparent !important;
  363. td.icon {
  364. background-color: mc('orange', '300');
  365. color: #FFF;
  366. &::before {
  367. content: "\F0026";
  368. }
  369. }
  370. td.content {
  371. color: darken(mc('orange', '900'), 10%);
  372. background-color: mc('orange', '50');
  373. @at-root .theme--dark & {
  374. background-color: darken(mc('orange', '900'), 5%);
  375. color: mc('orange', '100');
  376. }
  377. }
  378. }
  379. &.caution {
  380. td.icon {
  381. background-color: mc('purple', '300');
  382. color: mc('purple', '50');
  383. &::before {
  384. content: "\f0238";
  385. }
  386. }
  387. td.content {
  388. color: darken(mc('purple', '900'), 10%);
  389. background-color: mc('purple', '50');
  390. @at-root .theme--dark & {
  391. background-color: mc('purple', '900');
  392. color: mc('purple', '100');
  393. }
  394. }
  395. }
  396. &.important {
  397. td.icon {
  398. background-color: mc('red', '300');
  399. color: mc('red', '50');
  400. &::before {
  401. content: "\F0159";
  402. }
  403. }
  404. td.content {
  405. color: darken(mc('red', '900'), 10%);
  406. background-color: mc('red', '50');
  407. @at-root .theme--dark & {
  408. background-color: mc('red', '900');
  409. color: mc('red', '100');
  410. }
  411. }
  412. }
  413. }
  414. .exampleblock {
  415. > .title {
  416. font-style: italic;
  417. font-size: 1rem !important;
  418. color: #7a2717;
  419. @at-root .theme--dark & {
  420. color: mc('brown', '300');
  421. }
  422. }
  423. > .content {
  424. border: 1px solid mc('grey', '200');
  425. border-radius: 7px;
  426. margin-bottom: 12px;
  427. padding: 16px;
  428. }
  429. }
  430. // ---------------------------------
  431. // LISTS
  432. // ---------------------------------
  433. ol, ul:not(.tabset-tabs) {
  434. padding-top: 1rem;
  435. width: 100%;
  436. @at-root .is-rtl & {
  437. padding-left: 0;
  438. padding-right: 1rem;
  439. }
  440. li > ul, li > ol {
  441. padding-top: .5rem;
  442. padding-left: 1rem;
  443. @at-root .is-rtl & {
  444. padding-left: 0;
  445. padding-right: 1rem;
  446. }
  447. }
  448. li + li {
  449. margin-top: .5rem;
  450. }
  451. &.links-list {
  452. padding-left: 0;
  453. list-style-type: none;
  454. @at-root .is-rtl & {
  455. padding-right: 0;
  456. }
  457. li {
  458. background-color: mc('grey', '50');
  459. background-image: linear-gradient(to bottom, #FFF, mc('grey', '50'));
  460. border-right: 1px solid mc('grey', '200');
  461. border-bottom: 1px solid mc('grey', '200');
  462. border-left: 5px solid mc('grey', '300');
  463. box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
  464. padding: 1rem;
  465. border-radius: 5px;
  466. font-weight: 500;
  467. @at-root .is-rtl & {
  468. border-left-width: 1px;
  469. border-right-width: 5px;
  470. }
  471. &:hover {
  472. background-image: linear-gradient(to bottom, #FFF, lighten(mc('blue', '50'), 4%));
  473. border-left-color: mc('blue', '500');
  474. cursor: pointer;
  475. @at-root .is-rtl & {
  476. border-left-color: mc('grey', '200');
  477. border-right-width: mc('blue', '500');
  478. }
  479. }
  480. &::before {
  481. content: '';
  482. display: none;
  483. }
  484. > a {
  485. display: block;
  486. text-decoration: none;
  487. margin: -1rem;
  488. padding: 1rem;
  489. > em {
  490. font-weight: 400;
  491. font-style: normal;
  492. color: mc('grey', '700');
  493. display: inline-block;
  494. padding-left: .5rem;
  495. border-left: 1px solid mc('grey', '300');
  496. margin-left: .5rem;
  497. &.is-block {
  498. display: block;
  499. padding-left: 0;
  500. margin-left: 0;
  501. border-left: none;
  502. }
  503. }
  504. }
  505. > em {
  506. font-weight: 400;
  507. font-style: normal;
  508. }
  509. @at-root .theme--dark & {
  510. background-color: mc('grey', '50');
  511. background-image: linear-gradient(to bottom, lighten(mc('grey', '900'), 5%), mc('grey', '900'));
  512. border-right: 1px solid mc('grey', '900');
  513. border-bottom: 1px solid mc('grey', '900');
  514. border-left: 5px solid mc('grey', '700');
  515. box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.1);
  516. @at-root .theme--dark.is-rtl & {
  517. border-left-width: 1px;
  518. border-right-width: 5px;
  519. }
  520. &:hover {
  521. background-image: linear-gradient(to bottom, lighten(mc('grey', '900'), 2%), darken(mc('grey', '900'), 3%));
  522. border-left-color: mc('indigo', '300');
  523. cursor: pointer;
  524. @at-root .theme--dark.is-rtl & {
  525. border-left-color: mc('grey', '900');
  526. border-right-width: mc('indigo', '300');
  527. }
  528. }
  529. }
  530. }
  531. }
  532. &.grid-list {
  533. margin: 1rem 0 0 0;
  534. background-color: #FFF;
  535. border: 1px solid mc('grey', '200');
  536. padding: 1px;
  537. display: inline-block;
  538. list-style-type: none;
  539. @at-root .theme--dark & {
  540. background-color: #000;
  541. border: 1px solid mc('grey', '800');
  542. }
  543. li {
  544. background-color: mc('grey', '50');
  545. padding: .6rem 1rem;
  546. display: block;
  547. &:nth-child(odd) {
  548. background-color: mc('grey', '100');
  549. }
  550. & + li {
  551. margin-top: 0;
  552. }
  553. &::before {
  554. content: '';
  555. display: none;
  556. }
  557. @at-root .theme--dark & {
  558. background-color: mc('grey', '900');
  559. &:nth-child(odd) {
  560. background-color: darken(mc('grey', '900'), 5%);
  561. }
  562. }
  563. }
  564. }
  565. }
  566. ul:not(.tabset-tabs):not(.contains-task-list) {
  567. list-style: none;
  568. > li::before {
  569. position: absolute;
  570. left: -1.1rem;
  571. content: '\25b8';
  572. color: mc('grey', '600');
  573. width: 1.35rem;
  574. @at-root .is-rtl & {
  575. right: -1.1rem;
  576. content: '\25C3';
  577. }
  578. }
  579. }
  580. ol, ul:not(.tabset-tabs) {
  581. > li {
  582. position: relative;
  583. > p {
  584. display:inline-block;
  585. vertical-align:top;
  586. padding-top:0;
  587. &:first-child {
  588. width: 100%;
  589. }
  590. }
  591. }
  592. }
  593. dl {
  594. dt {
  595. margin-top: 0.3em;
  596. margin-bottom: 0.3em;
  597. font-weight: bold;
  598. }
  599. dd {
  600. margin-left: 1.125em;
  601. margin-bottom: 0.75em;
  602. > p {
  603. padding: 0;
  604. }
  605. }
  606. }
  607. // ---------------------------------
  608. // CODE
  609. // ---------------------------------
  610. code {
  611. background-color: mc('indigo', '50');
  612. padding: 0 5px;
  613. color: mc('indigo', '800');
  614. font-family: 'Roboto Mono', monospace;
  615. font-weight: normal;
  616. font-size: 1rem;
  617. box-shadow: none;
  618. &::before, &::after {
  619. display: none;
  620. }
  621. @at-root .theme--dark & {
  622. background-color: darken(mc('grey', '900'), 5%);
  623. color: mc('indigo', '100');
  624. }
  625. }
  626. .prismjs{
  627. border: none;
  628. border-radius: 5px;
  629. box-shadow: initial;
  630. background-color: mc('grey', '900');
  631. padding: 1rem 1rem 1rem 3rem;
  632. margin: 1rem 0;
  633. @at-root .theme--dark & {
  634. background-color: darken(mc('grey', '900'), 5%);
  635. }
  636. > code {
  637. background-color: transparent;
  638. padding: 0;
  639. color: #FFF;
  640. box-shadow: initial;
  641. display: block;
  642. font-size: .85rem;
  643. font-family: 'Roboto Mono', monospace;
  644. &:after, &:before {
  645. content: initial;
  646. letter-spacing: initial;
  647. }
  648. }
  649. }
  650. .diagram {
  651. margin-top: 1rem;
  652. overflow: auto;
  653. svg:first-child {
  654. direction: ltr;
  655. }
  656. }
  657. // ---------------------------------
  658. // TASK LISTS
  659. // ---------------------------------
  660. .contains-task-list {
  661. padding-left: 0;
  662. }
  663. .task-list-item {
  664. position: relative;
  665. list-style-type: none;
  666. &-checkbox[disabled] {
  667. width: 1.1rem;
  668. height: 1.1rem;
  669. top: 2px;
  670. position: relative;
  671. margin-right: 2px;
  672. &::after {
  673. position: absolute;
  674. left: 0;
  675. top: 0;
  676. content: ' ';
  677. display: block;
  678. width: 1.1rem;
  679. height: 1.1rem;
  680. background-color: #FFF;
  681. border: 1px solid mc('grey', '400');
  682. border-radius: 2px;
  683. font-weight: bold;
  684. font-size: .8rem;
  685. line-height: 1rem;
  686. text-align: center;
  687. @at-root .theme--dark & {
  688. background-color: mc('grey', '900');
  689. border-color: mc('grey', '700');
  690. }
  691. }
  692. &[checked]::after {
  693. content: '✓';
  694. }
  695. }
  696. .contains-task-list {
  697. padding: .5rem 0 0 1.5rem;
  698. }
  699. }
  700. // ---------------------------------
  701. // TABLES
  702. // ---------------------------------
  703. table {
  704. margin: .5rem 0;
  705. border-spacing: 0;
  706. border-radius: 5px;
  707. border: 1px solid mc('grey', '300');
  708. @at-root .theme--dark & {
  709. border-color: mc('grey', '600');
  710. }
  711. &.dense {
  712. td, th {
  713. font-size: .85rem;
  714. padding: .5rem;
  715. }
  716. }
  717. th {
  718. padding: .75rem;
  719. border-bottom: 2px solid mc('grey', '500');
  720. color: mc('grey', '600');
  721. background-color: mc('grey', '100');
  722. @at-root .theme--dark & {
  723. background-color: darken(mc('grey', '900'), 8%);
  724. border-bottom-color: mc('grey', '600');
  725. color: mc('grey', '500');
  726. }
  727. &:first-child {
  728. border-top-left-radius: 7px;
  729. }
  730. &:last-child {
  731. border-top-right-radius: 7px;
  732. }
  733. }
  734. td {
  735. padding: .75rem;
  736. }
  737. tr {
  738. td {
  739. border-bottom: 1px solid mc('grey', '300');
  740. border-right: 1px solid mc('grey', '100');
  741. @at-root .theme--dark & {
  742. border-bottom-color: mc('grey', '700');
  743. border-right-color: mc('grey', '800');
  744. }
  745. &:nth-child(even) {
  746. background-color: mc('grey', '50');
  747. @at-root .theme--dark & {
  748. background-color: darken(mc('grey', '900'), 4%);
  749. }
  750. }
  751. &:last-child {
  752. border-right: none;
  753. }
  754. }
  755. &:nth-child(even) {
  756. td {
  757. background-color: mc('grey', '50');
  758. @at-root .theme--dark & {
  759. background-color: darken(mc('grey', '800'), 8%);
  760. }
  761. &:nth-child(even) {
  762. background-color: mc('grey', '100');
  763. @at-root .theme--dark & {
  764. background-color: darken(mc('grey', '800'), 10%);
  765. }
  766. }
  767. }
  768. }
  769. &:last-child {
  770. td {
  771. border-bottom: none;
  772. &:first-child {
  773. border-bottom-left-radius: 7px;
  774. }
  775. &:last-child {
  776. border-bottom-right-radius: 7px;
  777. }
  778. }
  779. }
  780. }
  781. }
  782. figure.table {
  783. margin: 0;
  784. > table {
  785. background-color: #FFF;
  786. margin: 0;
  787. border-collapse: collapse;
  788. box-shadow: 0 0 5px 0 rgba(0, 0, 0, .07);
  789. @at-root .theme--dark & {
  790. background-color: darken(mc('grey', '900'), 3%);
  791. }
  792. td, th {
  793. border: 1px solid mc('blue-grey', '100');
  794. box-shadow: inset -1px -1px 0 0 #FFF, inset 1px 0 0 #FFF;
  795. padding: .5rem .75rem;
  796. border-radius: 0 !important;
  797. @at-root .theme--dark & {
  798. border-color: mc('grey', '700');
  799. box-shadow: inset -1px -1px 0 0 rgba(0,0,0, .5);
  800. }
  801. }
  802. th {
  803. background-color: lighten(mc('blue-grey', '50'), 1%);
  804. font-weight: 700;
  805. color: mc('blue-grey', '700');
  806. @at-root .theme--dark & {
  807. background-color: mc('grey', '800');
  808. color: mc('grey', '400');
  809. }
  810. }
  811. thead th {
  812. border-bottom: 2px solid mc('blue-grey', '100');
  813. @at-root .theme--dark & {
  814. border-bottom: none;
  815. }
  816. }
  817. tbody th {
  818. background-color: lighten(mc('blue-grey', '50'), 4%);
  819. @at-root .theme--dark & {
  820. background-color: darken(mc('grey', '800'), 8%);
  821. }
  822. }
  823. }
  824. }
  825. // -> Add horizontal scrollbar when table is too wide
  826. .table-container {
  827. width: 100%;
  828. overflow-x: auto;
  829. }
  830. // ---------------------------------
  831. // IMAGES
  832. // ---------------------------------
  833. img {
  834. max-width: 100%;
  835. &.align-left {
  836. float: left;
  837. margin: 0 1rem 1rem 0;
  838. }
  839. &.align-right {
  840. float: right;
  841. margin: 0 0 1rem 1rem;
  842. z-index: 1;
  843. position: relative;
  844. }
  845. &.align-center {
  846. display: block;
  847. max-width: 100%;
  848. margin: auto;
  849. }
  850. &.align-abstopright {
  851. position: absolute;
  852. top: -90px;
  853. right: 1rem;
  854. height: calc(90px - 32px);
  855. width: auto;
  856. @at-root .is-rtl & {
  857. left: 1rem;
  858. right: initial;
  859. }
  860. }
  861. &.decor-shadow {
  862. box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
  863. }
  864. &.decor-outline {
  865. border: 1px solid mc('grey', '400');
  866. }
  867. &.uml-diagram {
  868. margin: 1rem 0;
  869. }
  870. }
  871. figure.image {
  872. margin: 1rem 0 0 0;
  873. img {
  874. margin: 0 auto;
  875. }
  876. figcaption {
  877. padding: 4px 1rem;
  878. text-align: center;
  879. font-size: 12px;
  880. color: mc('grey', '700');
  881. background-color: mc('grey', '100');
  882. @at-root .theme--dark & {
  883. color: mc('grey', '400');
  884. background-color: mc('grey', '800');
  885. }
  886. }
  887. }
  888. figure.image-style-align-right {
  889. float: right;
  890. }
  891. figure.image-style-align-left {
  892. float: left;
  893. }
  894. // ---------------------------------
  895. // DETAILS
  896. // ---------------------------------
  897. details {
  898. background-color: mc('grey', '50');
  899. margin: 1rem 2rem;
  900. border: 1px solid mc('grey', '300');
  901. border-radius: 7px;
  902. > p {
  903. padding-left: 0;
  904. }
  905. > summary {
  906. border-radius: 7px;
  907. background-color: mc('grey', '50');
  908. cursor: pointer;
  909. display: list-item;
  910. align-items: center;
  911. padding: 0.4rem 1rem;
  912. transition: background-color .4s ease;
  913. &:focus {
  914. outline: none;
  915. background-color: mc('grey', '100');
  916. }
  917. > h1, h2, h3, h4, h5, h6 {
  918. width: 95%;
  919. display: inline-block;
  920. &:first-child {
  921. margin-top: 0;
  922. }
  923. &:only-child::after {
  924. display: none;
  925. }
  926. }
  927. }
  928. &[open] {
  929. padding: 1rem;
  930. > summary {
  931. background-color: mc('grey', '100');
  932. border-bottom: 1px solid mc('grey', '300');
  933. border-bottom-left-radius: 0;
  934. border-bottom-right-radius: 0;
  935. margin: -1rem -1rem 1rem -1rem;
  936. }
  937. }
  938. @at-root .theme--dark & {
  939. background-color: mc('grey', '900');
  940. border-color: mc('grey', '700');
  941. > summary {
  942. background-color: mc('grey', '900');
  943. border-color: mc('grey', '700');
  944. }
  945. &[open] > summary {
  946. background-color: lighten(mc('grey', '900'), 5%);
  947. }
  948. }
  949. }
  950. // ---------------------------------
  951. // HIGHLIGHTING
  952. // ---------------------------------
  953. mark {
  954. &.pen-red {
  955. color: mc('red', '500');
  956. background-color: initial;
  957. }
  958. &.pen-green {
  959. color: mc('green', '500');
  960. background-color: initial;
  961. }
  962. &.marker-blue {
  963. background-color: mc('blue', '300');
  964. }
  965. &.marker-yellow {
  966. background-color: mc('yellow', '300');
  967. }
  968. &.marker-pink {
  969. background-color: mc('pink', '300');
  970. }
  971. &.marker-green {
  972. background-color: mc('green', '300');
  973. }
  974. }
  975. .mention {
  976. background-color: rgba(153, 0, 48, .1);
  977. color: #990030;
  978. @at-root .theme--dark & {
  979. color: mc('pink', '500');
  980. }
  981. }
  982. }
  983. // ---------------------------------
  984. // COMMENTS
  985. // ---------------------------------
  986. .comments {
  987. &-container {
  988. border-radius: 7px;
  989. }
  990. &-header {
  991. color: #FFF;
  992. padding: 8px 20px;
  993. font-size: 16px;
  994. font-weight: 500;
  995. background-color: mc('blue-grey', '500');
  996. border-radius: 7px 7px 0 0;
  997. @at-root .theme--dark & {
  998. background-color: lighten(mc('blue-grey', '900'), 5%);
  999. }
  1000. }
  1001. &-main {
  1002. background-color: mc('blue-grey', '50');
  1003. border-radius: 0 0 7px 7px;
  1004. padding: 20px;
  1005. @at-root .theme--dark & {
  1006. background-color: darken(mc('grey', '900'), 5%);
  1007. }
  1008. }
  1009. }
  1010. // ---------------
  1011. // RTL FIXES
  1012. // Vuetify GH Issue: https://github.com/vuetifyjs/vuetify/issues/6317
  1013. // ---------------
  1014. .is-rtl {
  1015. .page-col-content.is-page-header {
  1016. @each $size, $width in $grid-breakpoints {
  1017. @media (min-width: $width) {
  1018. @for $n from 0 through 12 {
  1019. &.offset-#{$size}-#{$n} {
  1020. margin-left: 0;
  1021. margin-right: ($n / 12 * 100) * 1%;
  1022. }
  1023. }
  1024. }
  1025. }
  1026. }
  1027. }
  1028. // ---------------
  1029. // PRINT OVERRIDES
  1030. // ---------------
  1031. @media print {
  1032. .nav-header,
  1033. .v-navigation-drawer,
  1034. .v-btn--fab,
  1035. .page-col-sd,
  1036. .v-tooltip__content
  1037. {
  1038. display: none !important;
  1039. }
  1040. .layout {
  1041. display: block !important;
  1042. }
  1043. .page-col-content {
  1044. flex-basis: 100% !important;
  1045. flex-grow: 1 !important;
  1046. max-width: 100% !important;
  1047. margin-left: 0 !important;
  1048. > .v-toolbar {
  1049. border: 1px solid mc('grey', '300') !important;
  1050. border-radius: 7px !important;
  1051. & + .v-divider {
  1052. display: none !important;
  1053. }
  1054. }
  1055. }
  1056. .v-main {
  1057. padding: 0 !important;
  1058. font-size: 14px;
  1059. background-color: #FFF;
  1060. }
  1061. .v-main .contents {
  1062. color: #000;
  1063. background-color: #FFF;
  1064. @at-root .theme--dark & {
  1065. color: #000;
  1066. }
  1067. .prismjs{
  1068. box-shadow: none;
  1069. background-color: #FFF;
  1070. @at-root .theme--dark & {
  1071. background-color: #FFF;
  1072. }
  1073. > code {
  1074. color: #000;
  1075. box-shadow: none;
  1076. text-shadow: none;
  1077. }
  1078. }
  1079. }
  1080. .comments-container {
  1081. display: none;
  1082. }
  1083. .page-edit-shortcuts {
  1084. display: none;
  1085. }
  1086. }