|
1 | 1 | /* PreviewPanel.css */ |
2 | 2 |
|
| 3 | +:root { |
| 4 | + /* Light mode colors */ |
| 5 | + --bg-primary: #f9fafb; |
| 6 | + --bg-secondary: #f3f4f6; |
| 7 | + --bg-card: #ffffff; |
| 8 | + --bg-elevated: #f9fafb; |
| 9 | + --bg-overlay: rgba(59, 130, 246, 0.05); |
| 10 | + --bg-overlay-secondary: rgba(139, 92, 246, 0.05); |
| 11 | + --bg-debug: #111827; |
| 12 | + |
| 13 | + --border-primary: #e5e7eb; |
| 14 | + --border-secondary: #f3f4f6; |
| 15 | + --border-hover: #93c5fd; |
| 16 | + |
| 17 | + --text-primary: #111827; |
| 18 | + --text-secondary: #374151; |
| 19 | + --text-tertiary: #6b7280; |
| 20 | + --text-muted: #9ca3af; |
| 21 | + --text-accent: #2563eb; |
| 22 | + --text-debug: #10b981; |
| 23 | + |
| 24 | + --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1); |
| 25 | + --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1); |
| 26 | + --shadow-focus: 0 0 0 2px #3b82f6, 0 0 0 4px rgba(59, 130, 246, 0.1); |
| 27 | + |
| 28 | + --gradient-bg: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%); |
| 29 | + --gradient-icon: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%); |
| 30 | + --gradient-card: linear-gradient(135deg, white 0%, #f9fafb 100%); |
| 31 | + --gradient-preview-icon: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%); |
| 32 | + --gradient-preview-icon-hover: linear-gradient(135deg, #bfdbfe 0%, #c7d2fe 100%); |
| 33 | +} |
| 34 | + |
| 35 | +@media (prefers-color-scheme: dark) { |
| 36 | + :root { |
| 37 | + /* Dark mode colors */ |
| 38 | + --bg-primary: #0f172a; |
| 39 | + --bg-secondary: #1e293b; |
| 40 | + --bg-card: #1e293b; |
| 41 | + --bg-elevated: #334155; |
| 42 | + --bg-overlay: rgba(59, 130, 246, 0.1); |
| 43 | + --bg-overlay-secondary: rgba(139, 92, 246, 0.1); |
| 44 | + --bg-debug: #0f172a; |
| 45 | + |
| 46 | + --border-primary: #334155; |
| 47 | + --border-secondary: #475569; |
| 48 | + --border-hover: #60a5fa; |
| 49 | + |
| 50 | + --text-primary: #f8fafc; |
| 51 | + --text-secondary: #cbd5e1; |
| 52 | + --text-tertiary: #94a3b8; |
| 53 | + --text-muted: #64748b; |
| 54 | + --text-accent: #60a5fa; |
| 55 | + --text-debug: #34d399; |
| 56 | + |
| 57 | + --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3); |
| 58 | + --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.4); |
| 59 | + --shadow-focus: 0 0 0 2px #60a5fa, 0 0 0 4px rgba(96, 165, 250, 0.2); |
| 60 | + |
| 61 | + --gradient-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); |
| 62 | + --gradient-icon: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%); |
| 63 | + --gradient-card: linear-gradient(135deg, #1e293b 0%, #334155 100%); |
| 64 | + --gradient-preview-icon: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%); |
| 65 | + --gradient-preview-icon-hover: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%); |
| 66 | + } |
| 67 | +} |
| 68 | + |
3 | 69 | .preview-panel { |
4 | 70 | min-height: 100vh; |
5 | | - background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%); |
| 71 | + background: var(--gradient-bg); |
6 | 72 | padding: 24px; |
7 | 73 | } |
8 | 74 |
|
|
13 | 79 |
|
14 | 80 | /* Header Section */ |
15 | 81 | .header-card { |
16 | | - background: white; |
| 82 | + background: var(--bg-card); |
17 | 83 | border-radius: 16px; |
18 | | - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); |
19 | | - border: 1px solid #e5e7eb; |
| 84 | + box-shadow: var(--shadow-sm); |
| 85 | + border: 1px solid var(--border-primary); |
20 | 86 | padding: 32px; |
21 | 87 | margin-bottom: 32px; |
22 | 88 | } |
|
31 | 97 | .header-icon { |
32 | 98 | width: 48px; |
33 | 99 | height: 48px; |
34 | | - background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%); |
| 100 | + background: var(--gradient-icon); |
35 | 101 | border-radius: 12px; |
36 | 102 | display: flex; |
37 | 103 | align-items: center; |
38 | 104 | justify-content: center; |
39 | 105 | font-size: 20px; |
| 106 | + color: white; |
40 | 107 | } |
41 | 108 |
|
42 | 109 | .header-text h1 { |
43 | 110 | font-size: 30px; |
44 | 111 | font-weight: 700; |
45 | | - color: #111827; |
| 112 | + color: var(--text-primary); |
46 | 113 | margin: 0 0 4px 0; |
47 | 114 | } |
48 | 115 |
|
49 | 116 | .header-text p { |
50 | | - color: #6b7280; |
| 117 | + color: var(--text-tertiary); |
51 | 118 | margin: 0; |
52 | 119 | } |
53 | 120 |
|
|
56 | 123 | align-items: center; |
57 | 124 | gap: 12px; |
58 | 125 | padding: 16px; |
59 | | - background: #f9fafb; |
| 126 | + background: var(--bg-elevated); |
60 | 127 | border-radius: 12px; |
61 | | - border: 1px solid #e5e7eb; |
| 128 | + border: 1px solid var(--border-primary); |
62 | 129 | } |
63 | 130 |
|
64 | 131 | .status-icon { |
|
68 | 135 | .status-text { |
69 | 136 | font-size: 14px; |
70 | 137 | font-weight: 500; |
71 | | - color: #374151; |
| 138 | + color: var(--text-secondary); |
72 | 139 | } |
73 | 140 |
|
74 | 141 | .status-value { |
|
79 | 146 | .status-loading { color: #3b82f6; } |
80 | 147 | .status-error { color: #ef4444; } |
81 | 148 | .status-success { color: #10b981; } |
82 | | -.status-default { color: #6b7280; } |
| 149 | +.status-default { color: var(--text-tertiary); } |
83 | 150 |
|
84 | 151 | /* Previews Section */ |
85 | 152 | .previews-card { |
86 | | - background: white; |
| 153 | + background: var(--bg-card); |
87 | 154 | border-radius: 16px; |
88 | | - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); |
89 | | - border: 1px solid #e5e7eb; |
| 155 | + box-shadow: var(--shadow-sm); |
| 156 | + border: 1px solid var(--border-primary); |
90 | 157 | overflow: hidden; |
91 | 158 | } |
92 | 159 |
|
93 | 160 | .previews-header { |
94 | 161 | padding: 24px; |
95 | | - border-bottom: 1px solid #f3f4f6; |
| 162 | + border-bottom: 1px solid var(--border-secondary); |
96 | 163 | display: flex; |
97 | 164 | align-items: center; |
98 | 165 | justify-content: space-between; |
|
101 | 168 | .previews-title { |
102 | 169 | font-size: 20px; |
103 | 170 | font-weight: 600; |
104 | | - color: #111827; |
| 171 | + color: var(--text-primary); |
105 | 172 | margin: 0; |
106 | 173 | } |
107 | 174 |
|
|
110 | 177 | align-items: center; |
111 | 178 | gap: 8px; |
112 | 179 | padding: 4px 12px; |
113 | | - background: #eff6ff; |
| 180 | + background: rgba(59, 130, 246, 0.1); |
114 | 181 | border-radius: 9999px; |
115 | 182 | } |
116 | 183 |
|
|
124 | 191 | .count-text { |
125 | 192 | font-size: 14px; |
126 | 193 | font-weight: 500; |
127 | | - color: #1d4ed8; |
| 194 | + color: var(--text-accent); |
128 | 195 | } |
129 | 196 |
|
130 | 197 | .previews-content { |
|
140 | 207 | .empty-icon { |
141 | 208 | width: 64px; |
142 | 209 | height: 64px; |
143 | | - background: #f3f4f6; |
| 210 | + background: var(--bg-elevated); |
144 | 211 | border-radius: 50%; |
145 | 212 | display: flex; |
146 | 213 | align-items: center; |
147 | 214 | justify-content: center; |
148 | 215 | margin: 0 auto 16px; |
149 | 216 | font-size: 32px; |
150 | | - color: #9ca3af; |
| 217 | + color: var(--text-muted); |
151 | 218 | } |
152 | 219 |
|
153 | 220 | .empty-title { |
154 | 221 | font-size: 18px; |
155 | 222 | font-weight: 500; |
156 | | - color: #111827; |
| 223 | + color: var(--text-primary); |
157 | 224 | margin: 0 0 8px 0; |
158 | 225 | } |
159 | 226 |
|
160 | 227 | .empty-description { |
161 | | - color: #6b7280; |
| 228 | + color: var(--text-tertiary); |
162 | 229 | margin: 0; |
163 | 230 | } |
164 | 231 |
|
|
185 | 252 | .preview-card { |
186 | 253 | position: relative; |
187 | 254 | padding: 24px; |
188 | | - background: linear-gradient(135deg, white 0%, #f9fafb 100%); |
189 | | - border: 1px solid #e5e7eb; |
| 255 | + background: var(--gradient-card); |
| 256 | + border: 1px solid var(--border-primary); |
190 | 257 | border-radius: 12px; |
191 | 258 | text-align: left; |
192 | 259 | cursor: pointer; |
|
195 | 262 | } |
196 | 263 |
|
197 | 264 | .preview-card:hover { |
198 | | - box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1); |
199 | | - border-color: #93c5fd; |
| 265 | + box-shadow: var(--shadow-lg); |
| 266 | + border-color: var(--border-hover); |
200 | 267 | transform: translateY(-1px); |
201 | 268 | } |
202 | 269 |
|
203 | 270 | .preview-card:focus { |
204 | 271 | outline: none; |
205 | | - box-shadow: 0 0 0 2px #3b82f6, 0 0 0 4px rgba(59, 130, 246, 0.1); |
| 272 | + box-shadow: var(--shadow-focus); |
206 | 273 | } |
207 | 274 |
|
208 | 275 | .preview-card-header { |
|
215 | 282 | .preview-icon { |
216 | 283 | width: 40px; |
217 | 284 | height: 40px; |
218 | | - background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%); |
| 285 | + background: var(--gradient-preview-icon); |
219 | 286 | border-radius: 8px; |
220 | 287 | display: flex; |
221 | 288 | align-items: center; |
222 | 289 | justify-content: center; |
223 | | - color: #2563eb; |
| 290 | + color: var(--text-accent); |
224 | 291 | font-weight: 700; |
225 | 292 | transition: all 0.2s ease; |
226 | 293 | } |
227 | 294 |
|
228 | 295 | .preview-card:hover .preview-icon { |
229 | | - background: linear-gradient(135deg, #bfdbfe 0%, #c7d2fe 100%); |
| 296 | + background: var(--gradient-preview-icon-hover); |
230 | 297 | } |
231 | 298 |
|
232 | 299 | .preview-name { |
|
236 | 303 |
|
237 | 304 | .preview-title { |
238 | 305 | font-weight: 600; |
239 | | - color: #111827; |
| 306 | + color: var(--text-primary); |
240 | 307 | margin: 0; |
241 | 308 | white-space: nowrap; |
242 | 309 | overflow: hidden; |
|
245 | 312 | } |
246 | 313 |
|
247 | 314 | .preview-card:hover .preview-title { |
248 | | - color: #2563eb; |
| 315 | + color: var(--text-accent); |
249 | 316 | } |
250 | 317 |
|
251 | 318 | .preview-arrow { |
|
260 | 327 |
|
261 | 328 | .preview-description { |
262 | 329 | font-size: 14px; |
263 | | - color: #6b7280; |
| 330 | + color: var(--text-tertiary); |
264 | 331 | margin: 0; |
265 | 332 | } |
266 | 333 |
|
267 | 334 | .preview-overlay { |
268 | 335 | position: absolute; |
269 | 336 | inset: 0; |
270 | | - background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%); |
| 337 | + background: linear-gradient(90deg, var(--bg-overlay) 0%, var(--bg-overlay-secondary) 100%); |
271 | 338 | border-radius: 12px; |
272 | 339 | opacity: 0; |
273 | 340 | transition: opacity 0.2s ease; |
|
286 | 353 | .debug-summary { |
287 | 354 | cursor: pointer; |
288 | 355 | padding: 16px; |
289 | | - background: white; |
| 356 | + background: var(--bg-card); |
290 | 357 | border-radius: 12px; |
291 | | - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); |
292 | | - border: 1px solid #e5e7eb; |
| 358 | + box-shadow: var(--shadow-sm); |
| 359 | + border: 1px solid var(--border-primary); |
293 | 360 | transition: background-color 0.2s ease; |
294 | 361 | display: flex; |
295 | 362 | align-items: center; |
296 | 363 | justify-content: space-between; |
297 | 364 | } |
298 | 365 |
|
299 | 366 | .debug-summary:hover { |
300 | | - background: #f9fafb; |
| 367 | + background: var(--bg-elevated); |
301 | 368 | } |
302 | 369 |
|
303 | 370 | .debug-title { |
304 | 371 | font-weight: 500; |
305 | | - color: #374151; |
| 372 | + color: var(--text-secondary); |
306 | 373 | margin: 0; |
307 | 374 | } |
308 | 375 |
|
309 | 376 | .debug-arrow { |
310 | | - color: #9ca3af; |
| 377 | + color: var(--text-muted); |
311 | 378 | transition: transform 0.2s ease; |
312 | 379 | font-size: 12px; |
313 | 380 | } |
|
319 | 386 | .debug-content { |
320 | 387 | margin-top: 8px; |
321 | 388 | padding: 16px; |
322 | | - background: #111827; |
| 389 | + background: var(--bg-debug); |
323 | 390 | border-radius: 12px; |
324 | 391 | overflow: auto; |
| 392 | + border: 1px solid var(--border-primary); |
325 | 393 | } |
326 | 394 |
|
327 | 395 | .debug-pre { |
328 | | - color: #10b981; |
| 396 | + color: var(--text-debug); |
329 | 397 | font-size: 14px; |
330 | 398 | font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; |
331 | 399 | white-space: pre-wrap; |
|
0 commit comments