1
0

style.css 2.7 KB

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