index.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. @import 'tailwindcss';
  2. @import 'tw-animate-css';
  3. @import './theme.css';
  4. /* ===========================
  5. Custom Font
  6. =========================== */
  7. @font-face {
  8. font-family: 'sans';
  9. src: url('/src/assets/fonts/IRANSansXFaNum-Regular.woff2') format('woff2');
  10. font-weight: 400;
  11. font-style: normal;
  12. font-display: swap;
  13. }
  14. @font-face {
  15. font-family: 'sans';
  16. src: url('/src/assets/fonts/IRANSansXFaNum-Bold.woff2') format('woff2');
  17. font-weight: 700;
  18. font-style: normal;
  19. font-display: swap;
  20. }
  21. @custom-variant dark (&:is(.dark *));
  22. @layer base {
  23. * {
  24. @apply border-border outline-ring/50;
  25. scrollbar-width: thin;
  26. scrollbar-color: var(--border) transparent;
  27. }
  28. html {
  29. @apply overflow-x-hidden;
  30. }
  31. body {
  32. @apply min-h-svh w-full bg-background text-foreground has-[div[data-variant='inset']]:bg-sidebar;
  33. font-family: var(--font-primary);
  34. }
  35. /* Override Radix scroll locking for sticky headers */
  36. body[data-scroll-locked] {
  37. overflow: unset !important;
  38. }
  39. /* Cursor pointer for buttons */
  40. button:not(:disabled),
  41. [role='button']:not(:disabled) {
  42. cursor: pointer;
  43. }
  44. /* Prevent focus zoom on mobile devices */
  45. @media screen and (max-width: 767px) {
  46. input,
  47. select,
  48. textarea {
  49. font-size: 16px !important;
  50. }
  51. }
  52. }
  53. @utility container {
  54. margin-inline: auto;
  55. padding-inline: 2rem;
  56. }
  57. @utility no-scrollbar {
  58. /* Hide scrollbar for Chrome, Safari and Opera */
  59. &::-webkit-scrollbar {
  60. display: none;
  61. }
  62. /* Hide scrollbar for IE, Edge and Firefox */
  63. -ms-overflow-style: none; /* IE and Edge */
  64. scrollbar-width: none; /* Firefox */
  65. }
  66. @utility faded-bottom {
  67. @apply after:pointer-events-none after:absolute after:inset-s-0 after:bottom-0 after:hidden after:h-32 after:w-full after:rounded-b-2xl after:bg-[linear-gradient(180deg,transparent_10%,var(--background)_70%)] md:after:block;
  68. }
  69. /* styles.css */
  70. .CollapsibleContent {
  71. overflow: hidden;
  72. }
  73. .CollapsibleContent[data-state='open'] {
  74. animation: slideDown 300ms ease-out;
  75. }
  76. .CollapsibleContent[data-state='closed'] {
  77. animation: slideUp 300ms ease-out;
  78. }
  79. @keyframes slideDown {
  80. from {
  81. height: 0;
  82. }
  83. to {
  84. height: var(--radix-collapsible-content-height);
  85. }
  86. }
  87. @keyframes slideUp {
  88. from {
  89. height: var(--radix-collapsible-content-height);
  90. }
  91. to {
  92. height: 0;
  93. }
  94. }