extra.css 4.4 KB

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