style.css 2.0 KB

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