style.css 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. :root {
  2. --white-5: #ffffff0d;
  3. --white-20: #fff3;
  4. --base-color: rgb(255, 255, 255);
  5. --mono-hue: var(--theme-hue);
  6. --mono-saturation: 10%;
  7. --mono-shade4: hsl(var(--mono-hue), var(--mono-saturation), 10%);
  8. --theme-hue : 208;
  9. --theme-saturation: 100%;
  10. --theme-lightness : 63%;
  11. --base-background-color: rgb(13, 15, 21);
  12. --base-background-color-trans: rgba(13, 15, 21, 0);
  13. --base-font-family: 'Roboto',sans-serif;
  14. --code-font-family: 'Martian Mono',monospace;
  15. --code-font-weight: 300;
  16. --code-block-border-radius: 0;
  17. --code-theme-background: var(--white-5);
  18. --code-inline-background: var(--white-20);
  19. --blockquote-background: var(--white-5);
  20. --blockquote-border-width: 0 0 0 2px;
  21. --heading-font-family: 'Roboto Condensed',sans-serif;
  22. --heading-h1-font-weight: 700;
  23. --heading-h2-font-weight: 700;
  24. --heading-h3-font-weight: 700;
  25. --heading-h4-font-weight: 700;
  26. --heading-h5-font-weight: 700;
  27. --heading-h2-border-color: var(--white-20);
  28. --heading-h2-border-width: 0 0 2px;
  29. --link-color: var(--theme-color);
  30. --sidebar-background: var(--white-5);
  31. --sidebar-border-color: var(--white-20);
  32. --sidebar-border-width: 0 2px 0 0;
  33. --sidebar-width: 20rem;
  34. --sidebar-nav-link-before-content-l3: "";
  35. --table-row-even-background: var(--base-background-color);
  36. --selection-color: rgba(255, 255, 255, 0.3);
  37. --search-input-background-color: var(--white-5);
  38. --search-input-border-color: var(--white-20);
  39. --search-input-border-width: 2px 0;
  40. }
  41. .app-name-link img {
  42. width: 90%
  43. }
  44. .content::before {
  45. content: "";
  46. position: absolute;
  47. top: 0;
  48. right: 0;
  49. width: 390px;
  50. height: 300px;
  51. background: url('/assets/pattern.svg');
  52. }
  53. @media (max-width: 768px) {
  54. .content::before {
  55. display: none;
  56. }
  57. }
  58. @media (min-width: 1200px) {
  59. :root {
  60. --base-font-size: 18px;
  61. --code-font-size: 14px;
  62. }
  63. }
  64. @media (min-width: 1400px) {
  65. :root {
  66. --base-font-size: 20px;
  67. --code-font-size: 16px;
  68. }
  69. }
  70. .markdown-section p {
  71. overflow-wrap: break-word;
  72. }
  73. .markdown-section pre[data-lang] {
  74. border: 2px solid var(--white-20);
  75. }
  76. .markdown-section pre[data-lang]::after {
  77. display: none;
  78. }
  79. .copy-code {
  80. appearance: none;
  81. cursor: pointer;
  82. position: absolute;
  83. top: 10px;
  84. right: 10px;
  85. width: 20px;
  86. height: 20px;
  87. border: none;
  88. padding: 0;
  89. background: none;
  90. background-image: url(/assets/copy.svg);
  91. background-position: center;
  92. background-size: contain;
  93. background-repeat: no-repeat;
  94. opacity: 0.8;
  95. }
  96. .copy-code:hover {
  97. opacity: 1;
  98. }
  99. .copy-code::before {
  100. content: "";
  101. position: absolute;
  102. display: block;
  103. font-size: 16px;
  104. font-weight: bold;
  105. line-height: 16px;
  106. height: 16px;
  107. left: 0;
  108. top: 50%;
  109. transform: translate3d(0, -50%, 0);
  110. }
  111. .copy-code-success {
  112. background-image: url(/assets/check.svg);
  113. opacity: 1;
  114. }
  115. .copy-code-success::before {
  116. content: "Copied!";
  117. color: #77b33a;
  118. }
  119. .copy-code-error {
  120. background-image: url(/assets/cross.svg);
  121. opacity: 1;
  122. }
  123. .copy-code-error::before {
  124. content: "Can't copy";
  125. color: #e65855;
  126. }
  127. .copy-code-success::before,
  128. .copy-code-error::before {
  129. padding-right: 8px;
  130. transform: translate3d(-100%, -50%, 0);
  131. transition: transform .2s;
  132. }
  133. .loading {
  134. margin: 150px auto 0;
  135. position: relative;
  136. text-align: center;
  137. }
  138. .loading__spinner {
  139. --spinner-size: 50px;
  140. box-sizing: border-box;
  141. width: var(--spinner-size);
  142. height: var(--spinner-size);
  143. margin: 0 auto;
  144. border: 1px solid rgba(255, 255, 255, 0.7);
  145. border-right-color: transparent;
  146. border-radius: 50%;
  147. animation: spinner 1s linear infinite;
  148. }
  149. @keyframes spinner {
  150. 0% {
  151. transform: rotate(0deg);
  152. }
  153. 100% {
  154. transform: rotate(360deg);
  155. }
  156. }
  157. .sidebar-nav li {
  158. font-weight: bold;
  159. }
  160. .sidebar-nav li>a:only-child {
  161. padding: var(--sidebar-nav-pagelink-padding, var(--sidebar-nav-link-padding));
  162. }
  163. .badge img,
  164. .sidebar-nav li > a > img {
  165. display: inline-block;
  166. position: relative;
  167. height: 1em;
  168. top: .125em;
  169. }
  170. .badge img:hover {
  171. filter: brightness(1.2);
  172. }
  173. h1 .badge img, h3 .badge img, h3 .badge img {
  174. height: .8em;
  175. }
  176. h1 .badge img, h3 .badge img, h3 .badge img, h4 .badge img, h5 .badge img {
  177. margin-left: .1em;
  178. }
  179. i.icon::after {
  180. content: "";
  181. display: inline-block;
  182. position: relative;
  183. top: .125em;
  184. width: 1em;
  185. height: 1em;
  186. background-position: center;
  187. background-size: contain;
  188. background-repeat: no-repeat;
  189. }
  190. i.icon-note::after {
  191. background-image: url(/assets/note.svg);
  192. }
  193. i.icon-warn::after {
  194. background-image: url(/assets/warning.svg);
  195. }
  196. i.icon-check::after {
  197. background-image: url(/assets/check.svg);
  198. }
  199. i.icon-cross::after {
  200. background-image: url(/assets/cross.svg);
  201. }
  202. .github-edit-btn {
  203. display: block;
  204. position: fixed;
  205. bottom: 0;
  206. right: 1em;
  207. background: linear-gradient(0deg, #1d40b2, #1680d6);
  208. color: var(--base-color) !important;
  209. text-decoration: none !important;
  210. font-size: .8em;
  211. padding: 0.3em 1em;
  212. opacity: 0.75;
  213. z-index: 999;
  214. }
  215. .github-edit-btn:hover {
  216. opacity: 1;
  217. }
  218. @media (max-width: 768px) {
  219. .github-edit-btn {
  220. display: none;
  221. }
  222. }
  223. .links-menu {
  224. width: 100%;
  225. text-align: center;
  226. }
  227. .links-menu a {
  228. margin: 0 .5em;
  229. }
  230. .links-menu a img {
  231. height: 1em;
  232. }
  233. .sidebar-version-select {
  234. position: relative;
  235. margin: var(--sidebar-nav-margin);
  236. width: 100%;
  237. }
  238. .sidebar-version-select > select {
  239. appearance: none;
  240. cursor: pointer;
  241. margin: 0;
  242. width: 100%;
  243. background: var(--white-5);
  244. border: 2px solid var(--white-20);
  245. border-radius: 0;
  246. padding: 0.35em 0.7em;
  247. color: var(--base-color);
  248. font-family: var(--base-font-family);
  249. }
  250. .sidebar-version-select>select:hover {
  251. border: 2px solid var(--theme-color);
  252. }
  253. .sidebar-version-select::after {
  254. content: "▼";
  255. color: var(--base-color);
  256. position: absolute;
  257. top: 50%;
  258. right: 1em;
  259. font-size: 16px;
  260. line-height: 16px;
  261. height: 16px;
  262. transform: translateY(-8px);
  263. pointer-events: none;
  264. }