extra.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. :root > * {
  2. --md-primary-fg-color: #338574;
  3. --md-primary-fg-color--light: #338574;
  4. --md-primary-fg-color--dark: #338574;
  5. --md-footer-bg-color: #353744;
  6. --md-text-font: "Roboto";
  7. --md-code-font: "Roboto Mono";
  8. }
  9. .md-header__button.md-logo :is(img, svg) {
  10. width: unset !important;
  11. }
  12. .md-header__topic:first-child {
  13. font-weight: 400;
  14. }
  15. .md-typeset h4 {
  16. font-weight: 500 !important;
  17. margin: 0 !important;
  18. font-size: 1.1em !important;
  19. }
  20. .admonition {
  21. font-size: .74rem !important;
  22. }
  23. article {
  24. padding-bottom: 50px;
  25. }
  26. figure img, figure video {
  27. border-radius: 7px;
  28. }
  29. header {
  30. background: linear-gradient(150deg, rgba(51,133,116,1) 0%, rgba(86,189,168,1) 100%);
  31. }
  32. body[data-md-color-scheme="default"] header {
  33. filter: drop-shadow(0 5px 10px #ccc);
  34. }
  35. body[data-md-color-scheme="slate"] header {
  36. filter: drop-shadow(0 5px 10px #333);
  37. }
  38. body[data-md-color-scheme="default"] figure img,
  39. body[data-md-color-scheme="default"] figure video,
  40. body[data-md-color-scheme="default"] .screenshots img,
  41. body[data-md-color-scheme="default"] .screenshots video {
  42. filter: drop-shadow(3px 3px 3px #ccc);
  43. }
  44. body[data-md-color-scheme="slate"] figure img,
  45. body[data-md-color-scheme="slate"] figure video,
  46. body[data-md-color-scheme="slate"] .screenshots img,
  47. body[data-md-color-scheme="slate"] .screenshots video {
  48. filter: drop-shadow(3px 3px 3px #353744);
  49. }
  50. figure video {
  51. width: 100%;
  52. max-height: 450px;
  53. }
  54. .remove-md-box {
  55. background: none;
  56. border: none;
  57. margin: 0 auto;
  58. }
  59. .remove-md-box td {
  60. padding: 0 10px
  61. }
  62. /* Lightbox; thanks to https://yossiabramov.com/blog/vanilla-js-lightbox */
  63. .screenshots {
  64. text-align: center;
  65. }
  66. .screenshots img {
  67. max-height: 230px;
  68. max-width: 300px;
  69. margin: 3px;
  70. border-radius: 5px;
  71. filter: drop-shadow(2px 2px 2px #ddd);
  72. }
  73. .screenshots .nowrap {
  74. white-space: nowrap;
  75. }
  76. .lightbox {
  77. opacity: 0;
  78. visibility: hidden;
  79. position: fixed;
  80. left:0;
  81. right: 0;
  82. top: 0;
  83. bottom: 0;
  84. z-index: -1;
  85. display: flex;
  86. align-items: center;
  87. justify-content: center;
  88. transition: all 0.15s ease-in;
  89. }
  90. .lightbox.show {
  91. background-color: rgba(0,0,0, 0.75);
  92. opacity: 1;
  93. visibility: visible;
  94. z-index: 1000;
  95. }
  96. .lightbox img {
  97. max-width: 90%;
  98. max-height: 90%;
  99. filter: drop-shadow(5px 5px 10px #222);
  100. border-radius: 5px;
  101. }
  102. .lightbox .close-lightbox {
  103. cursor: pointer;
  104. position: absolute;
  105. top: 30px;
  106. right: 30px;
  107. width: 20px;
  108. height: 20px;
  109. }
  110. .lightbox .close-lightbox::after,
  111. .lightbox .close-lightbox::before {
  112. content: '';
  113. width: 3px;
  114. height: 20px;
  115. background-color: #ddd;
  116. position: absolute;
  117. border-radius: 5px;
  118. transform: rotate(45deg);
  119. }
  120. .lightbox .close-lightbox::before {
  121. transform: rotate(-45deg);
  122. }
  123. .lightbox .close-lightbox:hover::after,
  124. .lightbox .close-lightbox:hover::before {
  125. background-color: #fff;
  126. }
  127. /* roboto-300 - latin */
  128. @font-face {
  129. font-display: swap;
  130. font-family: 'Roboto';
  131. font-style: normal;
  132. font-weight: 300;
  133. src: url('../fonts/roboto-v30-latin-300.woff2') format('woff2');
  134. }
  135. /* roboto-regular - latin */
  136. @font-face {
  137. font-display: swap;
  138. font-family: 'Roboto';
  139. font-style: normal;
  140. font-weight: 400;
  141. src: url('../fonts/roboto-v30-latin-regular.woff2') format('woff2');
  142. }
  143. /* roboto-italic - latin */
  144. @font-face {
  145. font-display: swap;
  146. font-family: 'Roboto';
  147. font-style: italic;
  148. font-weight: 400;
  149. src: url('../fonts/roboto-v30-latin-italic.woff2') format('woff2');
  150. }
  151. /* roboto-500 - latin */
  152. @font-face {
  153. font-display: swap;
  154. font-family: 'Roboto';
  155. font-style: normal;
  156. font-weight: 500;
  157. src: url('../fonts/roboto-v30-latin-500.woff2') format('woff2');
  158. }
  159. /* roboto-700 - latin */
  160. @font-face {
  161. font-display: swap;
  162. font-family: 'Roboto';
  163. font-style: normal;
  164. font-weight: 700;
  165. src: url('../fonts/roboto-v30-latin-700.woff2') format('woff2');
  166. }
  167. /* roboto-mono - latin */
  168. @font-face {
  169. font-display: swap;
  170. font-family: 'Roboto Mono';
  171. font-style: normal;
  172. font-weight: 400;
  173. src: url('../fonts/roboto-mono-v22-latin-regular.woff2') format('woff2');
  174. }