style.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. :root {
  2. --mono-hue: var(--theme-hue);
  3. --mono-saturation: 10%;
  4. --mono-shade4: hsl(var(--mono-hue), var(--mono-saturation), 10%);
  5. --theme-hue : 208;
  6. --theme-saturation: 80.3%;
  7. --theme-lightness : 45.9%;
  8. --base-background-color: rgb(13, 15, 21);
  9. --base-background-color-trans: rgba(13, 15, 21, 0);
  10. --base-font-family: "Roboto",sans-serif;
  11. --code-font-family: "Fira Mono",monospace;
  12. --code-inline-background: var(--mono-tint1);
  13. --heading-h1-font-weight: 600;
  14. --heading-h2-font-weight: 600;
  15. --link-color: var(--theme-color);
  16. --sidebar-background: var(--mono-shade4);
  17. --sidebar-border-color: hsla(0,0%,100%,.4);
  18. --copycode-background: var(--link-color);
  19. --table-row-even-background: var(--base-background-color);
  20. }
  21. .app-name-link img {
  22. width: 90%
  23. }
  24. body::before {
  25. content: "";
  26. position: fixed;
  27. width: 100%;
  28. height: 500px;
  29. background: linear-gradient(
  30. 180deg,
  31. var(--base-background-color-trans),
  32. var(--base-background-color) 500px
  33. ), url('/assets/pattern.svg');
  34. }
  35. @media (min-width: 1200px) {
  36. .content {
  37. font-size: 111%;
  38. }
  39. }
  40. @media (min-width: 1400px) {
  41. :root {
  42. --base-font-size: 18px;
  43. }
  44. }
  45. .loading {
  46. margin: 150px auto 0;
  47. position: relative;
  48. text-align: center;
  49. }
  50. .loading__spinner {
  51. --spinner-size: 50px;
  52. box-sizing: border-box;
  53. width: var(--spinner-size);
  54. height: var(--spinner-size);
  55. margin: 0 auto;
  56. border: 1px solid rgba(255, 255, 255, 0.7);
  57. border-right-color: transparent;
  58. border-radius: 50%;
  59. animation: spinner 1s linear infinite;
  60. }
  61. @keyframes spinner {
  62. 0% {
  63. transform: rotate(0deg);
  64. }
  65. 100% {
  66. transform: rotate(360deg);
  67. }
  68. }
  69. .pro-badge {
  70. height: 1em;
  71. vertical-align: middle;
  72. }
  73. h1 .pro-badge, h2 .pro-badge, h3 .pro-badge, h4 .pro-badge {
  74. margin-left: .25ch;
  75. }
  76. .github-edit-btn {
  77. display: block;
  78. position: fixed;
  79. bottom: 0;
  80. right: 10px;
  81. border-radius: 10px 10px 0 0;
  82. background-color: var(--link-color);
  83. color: var(--base-color) !important;
  84. text-decoration: none !important;
  85. font-size: .8em;
  86. padding: 0.2em 1em;
  87. opacity: 0.75;
  88. z-index: 999;
  89. }
  90. .github-edit-btn:hover {
  91. opacity: 1;
  92. }
  93. @media (max-width: 768px) {
  94. .github-edit-btn {
  95. display: none;
  96. }
  97. }
  98. .github-corner {
  99. position: fixed;
  100. }
  101. .gitter img {
  102. display: block;
  103. margin: 5px auto 0;
  104. }