style.css 2.1 KB

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