style.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. :root {
  2. --base-color: rgb(255, 255, 255);
  3. --mono-hue: var(--theme-hue);
  4. --mono-saturation: 10%;
  5. --mono-shade4: hsl(var(--mono-hue), var(--mono-saturation), 10%);
  6. --theme-hue : 208;
  7. --theme-saturation: 80.3%;
  8. --theme-lightness : 45.9%;
  9. --base-background-color: rgb(13, 15, 21);
  10. --base-background-color-trans: rgba(13, 15, 21, 0);
  11. --base-font-family: 'Roboto',sans-serif;
  12. --code-font-family: 'Martian Mono',monospace;
  13. --code-font-weight: 300;
  14. --code-inline-background: var(--mono-tint1);
  15. --heading-font-family: 'Roboto Condensed',sans-serif;
  16. --heading-h1-font-weight: 700;
  17. --heading-h2-font-weight: 700;
  18. --heading-h3-font-weight: 700;
  19. --heading-h4-font-weight: 700;
  20. --heading-h5-font-weight: 700;
  21. --link-color: var(--theme-color);
  22. --sidebar-background: var(--mono-shade4);
  23. --sidebar-border-color: hsla(0,0%,100%,.4);
  24. --copycode-background: var(--link-color);
  25. --table-row-even-background: var(--base-background-color);
  26. --selection-color: rgba(255, 255, 255, 0.3);
  27. --sidebar-width: 20rem;
  28. --sidebar-nav-link-before-content-l3: "";
  29. }
  30. .app-name-link img {
  31. width: 90%
  32. }
  33. body::before {
  34. content: "";
  35. position: fixed;
  36. width: 100%;
  37. height: 500px;
  38. background: linear-gradient(
  39. 180deg,
  40. var(--base-background-color-trans),
  41. var(--base-background-color) 500px
  42. ), url('/assets/pattern.svg');
  43. }
  44. @media (min-width: 1200px) {
  45. :root {
  46. --base-font-size: 18px;
  47. --code-font-size: 14px;
  48. }
  49. }
  50. @media (min-width: 1400px) {
  51. :root {
  52. --base-font-size: 20px;
  53. --code-font-size: 16px;
  54. }
  55. }
  56. .markdown-section p {
  57. overflow-wrap: break-word;
  58. }
  59. .loading {
  60. margin: 150px auto 0;
  61. position: relative;
  62. text-align: center;
  63. }
  64. .loading__spinner {
  65. --spinner-size: 50px;
  66. box-sizing: border-box;
  67. width: var(--spinner-size);
  68. height: var(--spinner-size);
  69. margin: 0 auto;
  70. border: 1px solid rgba(255, 255, 255, 0.7);
  71. border-right-color: transparent;
  72. border-radius: 50%;
  73. animation: spinner 1s linear infinite;
  74. }
  75. @keyframes spinner {
  76. 0% {
  77. transform: rotate(0deg);
  78. }
  79. 100% {
  80. transform: rotate(360deg);
  81. }
  82. }
  83. .sidebar-nav li {
  84. font-weight: bold;
  85. }
  86. .sidebar-nav li>a:only-child {
  87. padding: var(--sidebar-nav-pagelink-padding, var(--sidebar-nav-link-padding));
  88. }
  89. .sidebar-nav li > a > img {
  90. height: 1em;
  91. }
  92. .badge img {
  93. height: 1em;
  94. vertical-align: middle;
  95. margin-top: -0.25em;
  96. }
  97. .badge img:hover {
  98. filter: brightness(1.5);
  99. }
  100. h1 .badge img, h3 .badge img, h3 .badge img, h4 .badge img, h5 .badge img {
  101. height: 0.8em;
  102. margin-top: -0.20em;
  103. margin-left: .1em;
  104. }
  105. .github-edit-btn {
  106. display: block;
  107. position: fixed;
  108. bottom: 0;
  109. right: 10px;
  110. border-radius: 10px 10px 0 0;
  111. background-color: var(--link-color);
  112. color: var(--base-color) !important;
  113. text-decoration: none !important;
  114. font-size: .8em;
  115. padding: 0.2em 1em;
  116. opacity: 0.75;
  117. z-index: 999;
  118. }
  119. .github-edit-btn:hover {
  120. opacity: 1;
  121. }
  122. @media (max-width: 768px) {
  123. .github-edit-btn {
  124. display: none;
  125. }
  126. }
  127. .github-corner {
  128. position: fixed;
  129. }
  130. .links-menu {
  131. width: 100%;
  132. text-align: center;
  133. }
  134. .links-menu a {
  135. margin: 0 .5em;
  136. }
  137. .links-menu a img {
  138. height: 1em;
  139. }
  140. .sidebar-version-select {
  141. width: 100%;
  142. margin: var(--sidebar-nav-margin);
  143. }