-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
329 lines (280 loc) · 6.01 KB
/
Copy pathindex.css
File metadata and controls
329 lines (280 loc) · 6.01 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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
@tailwind base;
@tailwind components;
@tailwind utilities;
/* High DPI scaling ------------------------------------------------------ */
:root {
--ui-scale: 1;
}
html {
font-size: calc(16px * var(--ui-scale));
}
:root.dpr-125 {
--ui-scale: 0.95;
}
:root.dpr-150 {
--ui-scale: 0.925;
}
:root.dpr-175 {
--ui-scale: 0.9;
}
:root.dpr-200 {
--ui-scale: 0.85;
}
:root.dpr-250 {
--ui-scale: 0.8;
}
@media (min-resolution: 1.25dppx) {
:root {
--ui-scale: 0.95;
}
}
@media (min-resolution: 1.5dppx) {
:root {
--ui-scale: 0.925;
}
}
@media (min-resolution: 1.75dppx) {
:root {
--ui-scale: 0.9;
}
}
@media (min-resolution: 2dppx) {
:root {
--ui-scale: 0.85;
}
}
@media (min-resolution: 2.5dppx) {
:root {
--ui-scale: 0.8;
}
}
/* Accessibility improvements */
@layer base {
body {
@apply bg-gray-50 text-gray-900 dark:bg-gray-900 dark:text-gray-100;
}
/* Screen reader only content */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Focus styles for better keyboard navigation */
:focus {
outline: 2px solid #3b82f6;
outline-offset: 2px;
}
/* High contrast mode support */
@media (prefers-contrast: high) {
.bg-gray-50 {
background-color: #ffffff;
}
.text-gray-500 {
color: #000000;
}
.border-gray-300 {
border-color: #000000;
}
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
* {
animation: none !important;
transition: none !important;
}
}
/* Skip link for keyboard navigation */
.skip-link {
position: absolute;
top: -40px;
left: 6px;
background: #000;
color: #fff;
padding: 8px;
text-decoration: none;
z-index: 1000;
border-radius: 4px;
}
.skip-link:focus {
top: 6px;
}
}
@layer components {
.card {
@apply bg-white dark:bg-gray-800 rounded-lg shadow-md p-3;
}
.card-title {
@apply text-base font-semibold text-gray-800 dark:text-gray-100;
}
.input-field {
@apply w-full px-2 py-1 text-xs border border-gray-300 dark:border-gray-600 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500 focus:outline-none dark:bg-gray-700 dark:text-gray-100;
}
.checkbox {
@apply rounded border-gray-300 dark:border-gray-600 text-blue-600 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2;
}
.radio {
@apply text-blue-600 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2;
}
.chart-panel {
@apply relative bg-white dark:bg-gray-800 rounded-lg shadow-md;
}
.drag-area {
@apply border-2 border-dashed border-gray-300 dark:border-gray-600;
}
.drag-area.dragover {
@apply border-blue-500 bg-blue-50 dark:bg-blue-900;
}
.resizable-chart-container {
@apply relative min-h-[200px] max-h-[600px] resize-y overflow-hidden border border-gray-200 dark:border-gray-700 rounded-lg;
}
}
/* Custom styles */
.chart-container {
position: relative;
height: 27.5rem;
width: 100%;
}
.resize-handle {
position: absolute;
bottom: 0;
right: 0;
width: 1.5rem;
height: 1.5rem;
cursor: nw-resize;
background: linear-gradient(-45deg, transparent 35%, #9ca3af 35%, #9ca3af 45%, transparent 45%, transparent 55%, #9ca3af 55%, #9ca3af 65%, transparent 65%);
opacity: 0.6;
border-bottom-right-radius: 8px;
border: none;
}
.resize-handle:hover,
.resize-handle:focus {
opacity: 1;
background: linear-gradient(-45deg, transparent 35%, #6b7280 35%, #6b7280 45%, transparent 45%, transparent 55%, #6b7280 55%, #6b7280 65%, transparent 65%);
outline: 2px solid #3b82f6;
outline-offset: 2px;
}
/* Enhanced focus indicators for interactive elements */
button:focus,
input:focus,
select:focus,
textarea:focus {
outline: 2px solid #3b82f6;
outline-offset: 2px;
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}
/* Enhanced hover effects for interactive elements */
label:hover input[type="checkbox"] + span,
label:hover input[type="radio"] + span {
color: #1f2937;
}
/* Improved contrast for links */
a {
text-decoration-skip-ink: auto;
}
a:hover {
text-decoration: underline;
}
/* Better button accessibility */
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Form improvements */
input[type="radio"]:focus,
input[type="checkbox"]:focus {
outline: 2px solid #3b82f6;
outline-offset: 2px;
}
/* Full-page drag animation */
@keyframes dragOverlayFadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes dragModalScaleIn {
from {
opacity: 0;
transform: scale(0.95) translateY(10px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
@keyframes dragIconBounce {
0%, 20%, 53%, 80%, 100% {
transform: translateY(0);
}
40%, 43% {
transform: translateY(-8px);
}
70% {
transform: translateY(-4px);
}
90% {
transform: translateY(-2px);
}
}
.drag-overlay-fade-in {
animation: dragOverlayFadeIn 0.1s ease-out;
}
.drag-modal-scale-in {
animation: dragModalScaleIn 0.15s ease-out;
}
.drag-icon-bounce {
animation: dragIconBounce 1s infinite;
}
/* Disable drag animation when prefers-reduced-motion is set */
@media (prefers-reduced-motion: reduce) {
.drag-overlay-fade-in,
.drag-modal-scale-in,
.drag-icon-bounce {
animation: none !important;
}
}
/* Page entrance animation */
@keyframes pageFadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.page-fade-in {
animation: pageFadeIn 0.5s ease-out;
}
@media (prefers-reduced-motion: reduce) {
.page-fade-in {
animation: none !important;
}
}
/* Gradient text animation */
@keyframes gradientShift {
0%, 100% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
}
.animate-gradient-slow {
background-size: 200% 200%;
animation: gradientShift 8s ease infinite;
}
@media (prefers-reduced-motion: reduce) {
.animate-gradient-slow {
animation: none !important;
}
}