-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
225 lines (190 loc) · 4.25 KB
/
Copy pathindex.css
File metadata and controls
225 lines (190 loc) · 4.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Base styles */
body {
font-family: 'Inter', system-ui, -apple-system, sans-serif;
-webkit-tap-highlight-color: transparent;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Touch optimization */
input, button, select, textarea {
touch-action: manipulation;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #f1f5f9;
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
/* Animations */
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slide-in-from-bottom {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slide-in-from-top-4 {
from {
opacity: 0;
transform: translateY(-16px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes zoom-in-95 {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
/* Utility classes for animations */
.animate-in {
animation-duration: 300ms;
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
animation-fill-mode: both;
}
.fade-in {
animation-name: fade-in;
}
.slide-in-from-bottom {
animation-name: slide-in-from-bottom;
}
.slide-in-from-top-4 {
animation-name: slide-in-from-top-4;
}
.zoom-in-95 {
animation-name: zoom-in-95;
}
.duration-200 {
animation-duration: 200ms;
}
.duration-300 {
animation-duration: 300ms;
}
/* Number input - hide spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type="number"] {
-moz-appearance: textfield;
}
/* Select dropdown arrow fix */
select {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
background-position: right 1rem center;
background-repeat: no-repeat;
background-size: 1.5rem;
padding-right: 3rem;
}
/* Focus ring styles */
.focus-ring {
@apply focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2;
}
/* Loading skeleton */
@keyframes shimmer {
0% {
background-position: -200% 0;
}
100% {
background-position: 200% 0;
}
}
.skeleton {
background: linear-gradient(
90deg,
#f1f5f9 25%,
#e2e8f0 50%,
#f1f5f9 75%
);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
}
/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
/* Performance optimizations for smooth scrolling */
.smooth-scroll {
-webkit-overflow-scrolling: touch;
scroll-behavior: smooth;
}
/* Hardware acceleration for scrollable containers */
[class*="overflow-y-auto"],
[class*="overflow-x-auto"],
[class*="overflow-auto"] {
-webkit-overflow-scrolling: touch;
transform: translateZ(0);
backface-visibility: hidden;
will-change: scroll-position;
}
/* Optimize list rendering */
.virtual-list-item {
contain: layout style paint;
}
/* Reduce paint on animated elements */
.transition-all {
will-change: transform, opacity;
}
/* Optimize fixed/sticky positioning */
nav, [class*="fixed"], [class*="sticky"] {
transform: translateZ(0);
backface-visibility: hidden;
}
/* Optimize cards and repeated elements */
[class*="rounded-xl"],
[class*="rounded-2xl"],
[class*="rounded-3xl"] {
contain: layout style;
}
/* Reduce layout thrashing on interactive elements */
button, input, select {
contain: layout;
}
/* Performance optimizations for mobile */
@media (max-width: 768px) {
* {
-webkit-tap-highlight-color: transparent;
}
/* Optimize touch scrolling on mobile */
body {
overscroll-behavior-y: none;
}
/* Prevent text selection lag on touch */
.disable-select {
-webkit-user-select: none;
user-select: none;
}
}