extra.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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. .emoji-table td {
  63. vertical-align: middle !important;
  64. }
  65. .emoji-table .e {
  66. font-size: 2.5em;
  67. padding: 0 2px !important;
  68. text-align: center !important;
  69. }
  70. /* Lightbox; thanks to https://yossiabramov.com/blog/vanilla-js-lightbox */
  71. .screenshots {
  72. text-align: center;
  73. }
  74. .screenshots img {
  75. max-height: 230px;
  76. max-width: 300px;
  77. margin: 3px;
  78. border-radius: 5px;
  79. filter: drop-shadow(2px 2px 2px #ddd);
  80. }
  81. .screenshots .nowrap {
  82. white-space: nowrap;
  83. }
  84. .lightbox {
  85. opacity: 0;
  86. visibility: hidden;
  87. position: fixed;
  88. left:0;
  89. right: 0;
  90. top: 0;
  91. bottom: 0;
  92. z-index: -1;
  93. display: flex;
  94. align-items: center;
  95. justify-content: center;
  96. transition: all 0.15s ease-in;
  97. }
  98. .lightbox.show {
  99. background-color: rgba(0,0,0, 0.75);
  100. opacity: 1;
  101. visibility: visible;
  102. z-index: 1000;
  103. }
  104. .lightbox img {
  105. max-width: 90%;
  106. max-height: 90%;
  107. filter: drop-shadow(5px 5px 10px #222);
  108. border-radius: 5px;
  109. }
  110. .lightbox .close-lightbox {
  111. cursor: pointer;
  112. position: absolute;
  113. top: 30px;
  114. right: 30px;
  115. width: 20px;
  116. height: 20px;
  117. }
  118. .lightbox .close-lightbox::after,
  119. .lightbox .close-lightbox::before {
  120. content: '';
  121. width: 3px;
  122. height: 20px;
  123. background-color: #ddd;
  124. position: absolute;
  125. border-radius: 5px;
  126. transform: rotate(45deg);
  127. }
  128. .lightbox .close-lightbox::before {
  129. transform: rotate(-45deg);
  130. }
  131. .lightbox .close-lightbox:hover::after,
  132. .lightbox .close-lightbox:hover::before {
  133. background-color: #fff;
  134. }
  135. /* roboto-300 - latin */
  136. @font-face {
  137. font-display: swap;
  138. font-family: 'Roboto';
  139. font-style: normal;
  140. font-weight: 300;
  141. src: url('../fonts/roboto-v30-latin-300.woff2') format('woff2');
  142. }
  143. /* roboto-regular - latin */
  144. @font-face {
  145. font-display: swap;
  146. font-family: 'Roboto';
  147. font-style: normal;
  148. font-weight: 400;
  149. src: url('../fonts/roboto-v30-latin-regular.woff2') format('woff2');
  150. }
  151. /* roboto-italic - latin */
  152. @font-face {
  153. font-display: swap;
  154. font-family: 'Roboto';
  155. font-style: italic;
  156. font-weight: 400;
  157. src: url('../fonts/roboto-v30-latin-italic.woff2') format('woff2');
  158. }
  159. /* roboto-500 - latin */
  160. @font-face {
  161. font-display: swap;
  162. font-family: 'Roboto';
  163. font-style: normal;
  164. font-weight: 500;
  165. src: url('../fonts/roboto-v30-latin-500.woff2') format('woff2');
  166. }
  167. /* roboto-700 - latin */
  168. @font-face {
  169. font-display: swap;
  170. font-family: 'Roboto';
  171. font-style: normal;
  172. font-weight: 700;
  173. src: url('../fonts/roboto-v30-latin-700.woff2') format('woff2');
  174. }
  175. /* roboto-mono - latin */
  176. @font-face {
  177. font-display: swap;
  178. font-family: 'Roboto Mono';
  179. font-style: normal;
  180. font-weight: 400;
  181. src: url('../fonts/roboto-mono-v22-latin-regular.woff2') format('woff2');
  182. }