style.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. }
  19. .content {
  20. background: linear-gradient(
  21. 180deg,
  22. var(--base-background-color-trans),
  23. var(--base-background-color) 500px
  24. ), url('/assets/pattern.svg');
  25. background-attachment: fixed;
  26. }
  27. @media (min-width: 1200px) {
  28. .content {
  29. font-size: 111%;
  30. }
  31. }
  32. @media (min-width: 1400px) {
  33. :root {
  34. --base-font-size: 18px;
  35. }
  36. }
  37. .loading {
  38. margin: 150px auto 0;
  39. position: relative;
  40. text-align: center;
  41. }
  42. .loading__spinner {
  43. --spinner-size: 50px;
  44. box-sizing: border-box;
  45. width: var(--spinner-size);
  46. height: var(--spinner-size);
  47. margin: 0 auto;
  48. border: 1px solid rgba(255, 255, 255, 0.7);
  49. border-right-color: transparent;
  50. border-radius: 50%;
  51. animation: spinner 1s linear infinite;
  52. }
  53. @keyframes spinner {
  54. 0% {
  55. transform: rotate(0deg);
  56. }
  57. 100% {
  58. transform: rotate(360deg);
  59. }
  60. }
  61. .pro-badge {
  62. height: 1em;
  63. vertical-align: middle;
  64. }
  65. .github-edit-btn {
  66. display: block;
  67. position: fixed;
  68. bottom: 0;
  69. right: 10px;
  70. border-radius: 10px 10px 0 0;
  71. background-color: var(--link-color);
  72. color: var(--base-color) !important;
  73. text-decoration: none !important;
  74. font-size: .8em;
  75. padding: 0.2em 1em;
  76. opacity: 0.75;
  77. z-index: 999;
  78. }
  79. .github-edit-btn:hover {
  80. opacity: 1;
  81. }
  82. @media (max-width: 768px) {
  83. .github-edit-btn {
  84. display: none;
  85. }
  86. }
  87. .github-corner {
  88. position: fixed;
  89. }