index.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. @tailwind base;
  2. @tailwind components;
  3. @tailwind utilities;
  4. @layer base {
  5. :root {
  6. --background: 0 0% 100%;
  7. --foreground: 222.2 84% 4.9%;
  8. --card: 0 0% 100%;
  9. --card-foreground: 222.2 84% 4.9%;
  10. --popover: 0 0% 100%;
  11. --popover-foreground: 222.2 84% 4.9%;
  12. --primary: 222.2 47.4% 11.2%;
  13. --primary-foreground: 210 40% 98%;
  14. --secondary: 210 40% 96.1%;
  15. --secondary-foreground: 222.2 47.4% 11.2%;
  16. --muted: 210 40% 96.1%;
  17. --muted-foreground: 215.4 16.3% 46.9%;
  18. --accent: 210 40% 96.1%;
  19. --accent-foreground: 222.2 47.4% 11.2%;
  20. --destructive: 0 84.2% 60.2%;
  21. --destructive-foreground: 210 40% 98%;
  22. --border: 214.3 31.8% 91.4%;
  23. --input: 214.3 31.8% 91.4%;
  24. --ring: 222.2 84% 4.9%;
  25. --chart-1: 12 76% 61%;
  26. --chart-2: 173 58% 39%;
  27. --chart-3: 197 37% 24%;
  28. --chart-4: 43 74% 66%;
  29. --chart-5: 27 87% 67%;
  30. --radius: 0.5rem;
  31. --sidebar-background: 0 0% 98%;
  32. --sidebar-foreground: 240 5.3% 26.1%;
  33. --sidebar-primary: 240 5.9% 10%;
  34. --sidebar-primary-foreground: 0 0% 98%;
  35. --sidebar-accent: 240 4.8% 95.9%;
  36. --sidebar-accent-foreground: 240 5.9% 10%;
  37. --sidebar-border: 220 13% 91%;
  38. --sidebar-ring: 217.2 91.2% 59.8%;
  39. }
  40. .dark {
  41. --background: 222.2 84% 4.9%;
  42. --foreground: 210 40% 98%;
  43. --card: 222.2 84% 4.9%;
  44. --card-foreground: 210 40% 98%;
  45. --popover: 222.2 84% 4.9%;
  46. --popover-foreground: 210 40% 98%;
  47. --primary: 210 40% 98%;
  48. --primary-foreground: 222.2 47.4% 11.2%;
  49. --secondary: 217.2 32.6% 17.5%;
  50. --secondary-foreground: 210 40% 98%;
  51. --muted: 217.2 32.6% 17.5%;
  52. --muted-foreground: 215 20.2% 65.1%;
  53. --accent: 217.2 32.6% 17.5%;
  54. --accent-foreground: 210 40% 98%;
  55. --destructive: 0 62.8% 30.6%;
  56. --destructive-foreground: 210 40% 98%;
  57. --border: 217.2 32.6% 17.5%;
  58. --input: 217.2 32.6% 17.5%;
  59. --ring: 212.7 26.8% 83.9%;
  60. --chart-1: 220 70% 50%;
  61. --chart-2: 160 60% 45%;
  62. --chart-3: 30 80% 55%;
  63. --chart-4: 280 65% 60%;
  64. --chart-5: 340 75% 55%;
  65. --sidebar-background: 240 5.9% 10%;
  66. --sidebar-foreground: 240 4.8% 95.9%;
  67. --sidebar-primary: 224.3 76.3% 48%;
  68. --sidebar-primary-foreground: 0 0% 100%;
  69. --sidebar-accent: 240 3.7% 15.9%;
  70. --sidebar-accent-foreground: 240 4.8% 95.9%;
  71. --sidebar-border: 240 3.7% 15.9%;
  72. --sidebar-ring: 217.2 91.2% 59.8%;
  73. }
  74. /* styles.css */
  75. .CollapsibleContent {
  76. overflow: hidden;
  77. }
  78. .CollapsibleContent[data-state='open'] {
  79. animation: slideDown 300ms ease-out;
  80. }
  81. .CollapsibleContent[data-state='closed'] {
  82. animation: slideUp 300ms ease-out;
  83. }
  84. @keyframes slideDown {
  85. from {
  86. height: 0;
  87. }
  88. to {
  89. height: var(--radix-collapsible-content-height);
  90. }
  91. }
  92. @keyframes slideUp {
  93. from {
  94. height: var(--radix-collapsible-content-height);
  95. }
  96. to {
  97. height: 0;
  98. }
  99. }
  100. * {
  101. @apply border-border;
  102. }
  103. body {
  104. @apply min-h-svh w-full bg-background text-foreground;
  105. }
  106. body > #root {
  107. @apply h-svh;
  108. }
  109. body > #root > div:first-child {
  110. @apply h-full;
  111. }
  112. /* Prevent focus zoom on mobile devices */
  113. @media screen and (max-width: 767px) {
  114. input,
  115. select,
  116. textarea {
  117. font-size: 16px !important;
  118. }
  119. }
  120. }
  121. @layer utilities {
  122. /* Hide scrollbar for Chrome, Safari and Opera */
  123. .no-scrollbar::-webkit-scrollbar {
  124. display: none;
  125. }
  126. /* Hide scrollbar for IE, Edge and Firefox */
  127. .no-scrollbar {
  128. -ms-overflow-style: none; /* IE and Edge */
  129. scrollbar-width: none; /* Firefox */
  130. }
  131. .faded-bottom {
  132. @apply after:pointer-events-none after:absolute after:bottom-0 after:left-0 after:hidden after:h-32 after:w-full after:bg-[linear-gradient(180deg,_transparent_10%,_hsl(var(--background))_70%)] after:md:block;
  133. }
  134. }