|
| 1 | +/* Base animation utilities */ |
| 2 | +@utility animate-in { |
| 3 | + animation-duration: var(--duration-normal); |
| 4 | + animation-timing-function: var(--ease-out); |
| 5 | + animation-fill-mode: forwards; |
| 6 | +} |
| 7 | + |
| 8 | +@utility animate-out { |
| 9 | + animation-duration: var(--duration-normal); |
| 10 | + animation-timing-function: var(--ease-in); |
| 11 | + animation-fill-mode: forwards; |
| 12 | +} |
| 13 | + |
| 14 | +/* Fade animations */ |
| 15 | +@keyframes fade-in-0 { |
| 16 | + from { |
| 17 | + opacity: 0; |
| 18 | + } |
| 19 | + |
| 20 | + to { |
| 21 | + opacity: 1; |
| 22 | + } |
| 23 | +} |
| 24 | + |
| 25 | +@keyframes fade-out-0 { |
| 26 | + from { |
| 27 | + opacity: 1; |
| 28 | + } |
| 29 | + |
| 30 | + to { |
| 31 | + opacity: 0; |
| 32 | + } |
| 33 | +} |
| 34 | + |
| 35 | +@utility fade-in-0 { |
| 36 | + animation-name: fade-in-0; |
| 37 | +} |
| 38 | + |
| 39 | +@utility fade-out-0 { |
| 40 | + animation-name: fade-out-0; |
| 41 | +} |
| 42 | + |
| 43 | +/* Zoom animations */ |
| 44 | +@keyframes zoom-in-95 { |
| 45 | + from { |
| 46 | + transform: scale(0.95); |
| 47 | + opacity: 0; |
| 48 | + } |
| 49 | + |
| 50 | + to { |
| 51 | + transform: scale(1); |
| 52 | + opacity: 1; |
| 53 | + } |
| 54 | +} |
| 55 | + |
| 56 | +@keyframes zoom-out-95 { |
| 57 | + from { |
| 58 | + transform: scale(1); |
| 59 | + opacity: 1; |
| 60 | + } |
| 61 | + |
| 62 | + to { |
| 63 | + transform: scale(0.95); |
| 64 | + opacity: 0; |
| 65 | + } |
| 66 | +} |
| 67 | + |
| 68 | +@utility zoom-in-95 { |
| 69 | + animation-name: zoom-in-95; |
| 70 | +} |
| 71 | + |
| 72 | +@utility zoom-out-95 { |
| 73 | + animation-name: zoom-out-95; |
| 74 | +} |
| 75 | + |
| 76 | +/* Slide animations with specific measurements */ |
| 77 | +@keyframes slide-in-from-top-2 { |
| 78 | + from { |
| 79 | + transform: translateY(-0.5rem); |
| 80 | + opacity: 0; |
| 81 | + } |
| 82 | + |
| 83 | + to { |
| 84 | + transform: translateY(0); |
| 85 | + opacity: 1; |
| 86 | + } |
| 87 | +} |
| 88 | + |
| 89 | +@keyframes slide-in-from-bottom-2 { |
| 90 | + from { |
| 91 | + transform: translateY(0.5rem); |
| 92 | + opacity: 0; |
| 93 | + } |
| 94 | + |
| 95 | + to { |
| 96 | + transform: translateY(0); |
| 97 | + opacity: 1; |
| 98 | + } |
| 99 | +} |
| 100 | + |
| 101 | +@keyframes slide-in-from-left-2 { |
| 102 | + from { |
| 103 | + transform: translateX(-0.5rem); |
| 104 | + opacity: 0; |
| 105 | + } |
| 106 | + |
| 107 | + to { |
| 108 | + transform: translateX(0); |
| 109 | + opacity: 1; |
| 110 | + } |
| 111 | +} |
| 112 | + |
| 113 | +@keyframes slide-in-from-right-2 { |
| 114 | + from { |
| 115 | + transform: translateX(0.5rem); |
| 116 | + opacity: 0; |
| 117 | + } |
| 118 | + |
| 119 | + to { |
| 120 | + transform: translateX(0); |
| 121 | + opacity: 1; |
| 122 | + } |
| 123 | +} |
| 124 | + |
| 125 | +@utility slide-in-from-top-2 { |
| 126 | + animation-name: slide-in-from-top-2; |
| 127 | +} |
| 128 | + |
| 129 | +@utility slide-in-from-bottom-2 { |
| 130 | + animation-name: slide-in-from-bottom-2; |
| 131 | +} |
| 132 | + |
| 133 | +@utility slide-in-from-left-2 { |
| 134 | + animation-name: slide-in-from-left-2; |
| 135 | +} |
| 136 | + |
| 137 | +@utility slide-in-from-right-2 { |
| 138 | + animation-name: slide-in-from-right-2; |
| 139 | +} |
| 140 | + |
| 141 | +/* Duration modifiers */ |
| 142 | +@utility duration-fast { |
| 143 | + animation-duration: var(--duration-fast); |
| 144 | +} |
| 145 | + |
| 146 | +@utility duration-normal { |
| 147 | + animation-duration: var(--duration-normal); |
| 148 | +} |
| 149 | + |
| 150 | +@utility duration-slow { |
| 151 | + animation-duration: var(--duration-slow); |
| 152 | +} |
| 153 | + |
1 | 154 | @utility button-base { |
2 | 155 | display: inline-flex; |
3 | 156 | align-items: center; |
|
97 | 250 | .button-destructive { |
98 | 251 | @apply button-base bg-destructive text-destructive shadow-sm hover:bg-destructive/90; |
99 | 252 | } |
| 253 | + |
| 254 | +.separator { |
| 255 | + @apply -mx-1 my-1 h-px bg-muted; |
| 256 | +} |
| 257 | + |
| 258 | +.dropdown-menu-item { |
| 259 | + @apply relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0; |
| 260 | +} |
0 commit comments