style.css 2.9 KB

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