globals.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. @import "preflight.css";
  2. @tailwind base;
  3. @tailwind components;
  4. @import '../../themes/light.css';
  5. @import '../../themes/dark.css';
  6. html[data-changing-theme] * {
  7. transition: none !important;
  8. }
  9. :root {
  10. --max-width: 1100px;
  11. --border-radius: 12px;
  12. --font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono",
  13. "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro",
  14. "Fira Mono", "Droid Sans Mono", "Courier New", monospace;
  15. --foreground-rgb: 0, 0, 0;
  16. --background-start-rgb: 214, 219, 220;
  17. --background-end-rgb: 255, 255, 255;
  18. --primary-glow: conic-gradient(from 180deg at 50% 50%,
  19. #16abff33 0deg,
  20. #0885ff33 55deg,
  21. #54d6ff33 120deg,
  22. #0071ff33 160deg,
  23. transparent 360deg);
  24. --secondary-glow: radial-gradient(rgba(255, 255, 255, 1),
  25. rgba(255, 255, 255, 0));
  26. --tile-start-rgb: 239, 245, 249;
  27. --tile-end-rgb: 228, 232, 233;
  28. --tile-border: conic-gradient(#00000080,
  29. #00000040,
  30. #00000030,
  31. #00000020,
  32. #00000010,
  33. #00000010,
  34. #00000080);
  35. --callout-rgb: 238, 240, 241;
  36. --callout-border-rgb: 172, 175, 176;
  37. --card-rgb: 180, 185, 188;
  38. --card-border-rgb: 131, 134, 135;
  39. }
  40. /* @media (prefers-color-scheme: dark) {
  41. :root {
  42. --foreground-rgb: 255, 255, 255;
  43. --background-start-rgb: 0, 0, 0;
  44. --background-end-rgb: 0, 0, 0;
  45. --primary-glow: radial-gradient(rgba(1, 65, 255, 0.4), rgba(1, 65, 255, 0));
  46. --secondary-glow: linear-gradient(to bottom right,
  47. rgba(1, 65, 255, 0),
  48. rgba(1, 65, 255, 0),
  49. rgba(1, 65, 255, 0.3));
  50. --tile-start-rgb: 2, 13, 46;
  51. --tile-end-rgb: 2, 5, 19;
  52. --tile-border: conic-gradient(#ffffff80,
  53. #ffffff40,
  54. #ffffff30,
  55. #ffffff20,
  56. #ffffff10,
  57. #ffffff10,
  58. #ffffff80);
  59. --callout-rgb: 20, 20, 20;
  60. --callout-border-rgb: 108, 108, 108;
  61. --card-rgb: 100, 100, 100;
  62. --card-border-rgb: 200, 200, 200;
  63. }
  64. } */
  65. * {
  66. box-sizing: border-box;
  67. padding: 0;
  68. margin: 0;
  69. }
  70. html,
  71. body {
  72. max-width: 100vw;
  73. overflow: hidden;
  74. }
  75. body {
  76. color: rgb(var(--foreground-rgb));
  77. user-select: none;
  78. /* background: linear-gradient(
  79. to bottom,
  80. transparent,
  81. rgb(var(--background-end-rgb))
  82. )
  83. rgb(var(--background-start-rgb)); */
  84. }
  85. a {
  86. color: inherit;
  87. text-decoration: none;
  88. outline: none;
  89. }
  90. button:focus-within {
  91. outline: none;
  92. }
  93. /* @media (prefers-color-scheme: dark) {
  94. html {
  95. color-scheme: dark;
  96. }
  97. } */
  98. /* CSS Utils */
  99. .h1 {
  100. padding-bottom: 1.5rem;
  101. line-height: 1.5;
  102. font-size: 1.125rem;
  103. color: #111928;
  104. }
  105. .h2 {
  106. font-size: 14px;
  107. font-weight: 500;
  108. color: #111928;
  109. line-height: 1.5;
  110. }
  111. .link {
  112. @apply text-blue-600 cursor-pointer hover:opacity-80 transition-opacity duration-200 ease-in-out;
  113. }
  114. .text-gradient {
  115. background: linear-gradient(91.58deg, #2250F2 -29.55%, #0EBCF3 75.22%);
  116. -webkit-background-clip: text;
  117. -webkit-text-fill-color: transparent;
  118. background-clip: text;
  119. text-fill-color: transparent;
  120. }
  121. /* overwrite paging active dark model style */
  122. [class*=style_paginatio] li .text-primary-600 {
  123. color: rgb(28 100 242);
  124. background-color: rgb(235 245 255);
  125. }
  126. /* support safari 14 and below */
  127. .inset-0 {
  128. left: 0;
  129. right: 0;
  130. top: 0;
  131. bottom: 0;
  132. }
  133. @import '../components/base/button/index.css';
  134. @import '../components/base/modal/index.css';
  135. @tailwind utilities;