-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
234 lines (205 loc) · 4.47 KB
/
Copy pathindex.css
File metadata and controls
234 lines (205 loc) · 4.47 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
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Accessibility improvements */
@layer base {
body {
font-family: 'Noto Sans SC', ui-sans-serif, system-ui, Helvetica Neue, Arial, Noto Sans, sans-serif;
background-color: #f9fafb;
color: #1f2937;
line-height: 1.5;
}
/* 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;
}
}
/* Custom styles */
.chart-container {
position: relative;
height: 440px;
width: 100%;
}
/* Custom styles */
.chart-container {
position: relative;
height: 440px;
width: 100%;
}
.chart-panel {
position: relative;
background: white;
border-radius: 8px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.resizable-chart-container {
position: relative;
min-height: 200px;
max-height: 600px;
resize: vertical;
overflow: hidden;
border: 1px solid #e5e7eb;
border-radius: 8px;
}
.resize-handle {
position: absolute;
bottom: 0;
right: 0;
width: 24px;
height: 24px;
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;
}
.chart-panel {
position: relative;
background: white;
border-radius: 8px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.drag-area {
border: 2px dashed #e2e8f0;
}
.drag-area.dragover {
border-color: #3b82f6;
background-color: #dbeafe;
}
/* 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;
}
/* 全页面拖拽动画 */
@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;
}
/* 在减少动画偏好设置下禁用拖拽动画 */
@media (prefers-reduced-motion: reduce) {
.drag-overlay-fade-in,
.drag-modal-scale-in,
.drag-icon-bounce {
animation: none !important;
}
}