| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- @import 'tailwindcss';
- @import 'tw-animate-css';
- @import './theme.css';
- /* ===========================
- Custom Font
- =========================== */
- @font-face {
- font-family: 'sans';
- src: url('/src/assets/fonts/IRANSansXFaNum-Regular.woff2') format('woff2');
- font-weight: 400;
- font-style: normal;
- font-display: swap;
- }
- @font-face {
- font-family: 'sans';
- src: url('/src/assets/fonts/IRANSansXFaNum-Bold.woff2') format('woff2');
- font-weight: 700;
- font-style: normal;
- font-display: swap;
- }
- @custom-variant dark (&:is(.dark *));
- @layer base {
- * {
- @apply border-border outline-ring/50;
- scrollbar-width: thin;
- scrollbar-color: var(--border) transparent;
- }
- html {
- @apply overflow-x-hidden;
- }
- body {
- @apply min-h-svh w-full bg-background text-foreground has-[div[data-variant='inset']]:bg-sidebar;
- font-family: var(--font-primary);
- }
- /* Override Radix scroll locking for sticky headers */
- body[data-scroll-locked] {
- overflow: unset !important;
- }
- /* Cursor pointer for buttons */
- button:not(:disabled),
- [role='button']:not(:disabled) {
- cursor: pointer;
- }
- /* Prevent focus zoom on mobile devices */
- @media screen and (max-width: 767px) {
- input,
- select,
- textarea {
- font-size: 16px !important;
- }
- }
- }
- @utility container {
- margin-inline: auto;
- padding-inline: 2rem;
- }
- @utility no-scrollbar {
- /* Hide scrollbar for Chrome, Safari and Opera */
- &::-webkit-scrollbar {
- display: none;
- }
- /* Hide scrollbar for IE, Edge and Firefox */
- -ms-overflow-style: none; /* IE and Edge */
- scrollbar-width: none; /* Firefox */
- }
- @utility faded-bottom {
- @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;
- }
- /* styles.css */
- .CollapsibleContent {
- overflow: hidden;
- }
- .CollapsibleContent[data-state='open'] {
- animation: slideDown 300ms ease-out;
- }
- .CollapsibleContent[data-state='closed'] {
- animation: slideUp 300ms ease-out;
- }
- @keyframes slideDown {
- from {
- height: 0;
- }
- to {
- height: var(--radix-collapsible-content-height);
- }
- }
- @keyframes slideUp {
- from {
- height: var(--radix-collapsible-content-height);
- }
- to {
- height: 0;
- }
- }
|