style.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. i.badge::before {
  70. display: inline-block;
  71. height: 1.5em;
  72. line-height: 1.5em;
  73. vertical-align: middle;
  74. border: 1px solid;
  75. font-size: .6em;
  76. font-weight: 700;
  77. font-style: normal;
  78. border-radius: 0.75em;
  79. padding: 0 .5em;
  80. }
  81. i.badge-pro::before {
  82. content: "pro";
  83. color: #177bd3;
  84. border-color: #177bd3;
  85. text-transform: uppercase;
  86. }
  87. i.badge-v3::before {
  88. content: "v3";
  89. color: #ff7401;
  90. border-color: #ff7401;
  91. }
  92. h1 i.badge, h2 i.badge, h3 i.badge, h4 i.badge, .sidebar-nav i.badge {
  93. margin-left: .5ch;
  94. }
  95. .github-edit-btn {
  96. display: block;
  97. position: fixed;
  98. bottom: 0;
  99. right: 10px;
  100. border-radius: 10px 10px 0 0;
  101. background-color: var(--link-color);
  102. color: var(--base-color) !important;
  103. text-decoration: none !important;
  104. font-size: .8em;
  105. padding: 0.2em 1em;
  106. opacity: 0.75;
  107. z-index: 999;
  108. }
  109. .github-edit-btn:hover {
  110. opacity: 1;
  111. }
  112. @media (max-width: 768px) {
  113. .github-edit-btn {
  114. display: none;
  115. }
  116. }
  117. .github-corner {
  118. position: fixed;
  119. }
  120. .gitter img {
  121. display: block;
  122. margin: 5px auto 0;
  123. }