|
2219 | 2219 | color: var(--ifm-color-emphasis-900); |
2220 | 2220 | } |
2221 | 2221 |
|
| 2222 | +/* Light theme page title */ |
| 2223 | +[data-theme="light"] .leaderboard-page-title { |
| 2224 | + color: #1a202c !important; |
| 2225 | +} |
| 2226 | + |
| 2227 | +[data-theme="light"] .leaderboard-page-subtitle { |
| 2228 | + color: #4a5568 !important; |
| 2229 | +} |
| 2230 | + |
2222 | 2231 | .leaderboard-page-title .highlight { |
2223 | 2232 | background: linear-gradient(135deg, #ffd700, #ff8c00); |
2224 | 2233 | -webkit-background-clip: text; |
|
2298 | 2307 | color: var(--ifm-font-color-base); |
2299 | 2308 | } |
2300 | 2309 |
|
| 2310 | +/* Light theme loading and error states */ |
| 2311 | +[data-theme="light"] .loading-container { |
| 2312 | + background: #ffffff; |
| 2313 | + border: 1px solid #e2e8f0; |
| 2314 | + color: #1a202c; |
| 2315 | +} |
| 2316 | + |
| 2317 | +[data-theme="light"] .loading-text { |
| 2318 | + color: #4a5568 !important; |
| 2319 | +} |
| 2320 | + |
| 2321 | +[data-theme="light"] .error-container { |
| 2322 | + background: #fef2f2; |
| 2323 | + border: 1px solid #fecaca; |
| 2324 | + color: #1a202c; |
| 2325 | +} |
| 2326 | + |
| 2327 | +[data-theme="light"] .error-container h3 { |
| 2328 | + color: #dc2626 !important; |
| 2329 | +} |
| 2330 | + |
| 2331 | +[data-theme="light"] .error-container p, |
| 2332 | +[data-theme="light"] .error-help { |
| 2333 | + color: #374151 !important; |
| 2334 | +} |
| 2335 | + |
2301 | 2336 | .retry-button { |
2302 | 2337 | background: var(--ifm-color-danger); |
2303 | 2338 | color: white; |
|
2346 | 2381 | font-weight: 500; |
2347 | 2382 | } |
2348 | 2383 |
|
| 2384 | +/* Light theme leaderboard stats */ |
| 2385 | +[data-theme="light"] .leaderboard-stats { |
| 2386 | + background: #ffffff; |
| 2387 | + border: 1px solid #e2e8f0; |
| 2388 | + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); |
| 2389 | +} |
| 2390 | + |
| 2391 | +[data-theme="light"] .leaderboard-stats .stat-number { |
| 2392 | + color: var(--ifm-color-primary) !important; |
| 2393 | +} |
| 2394 | + |
| 2395 | +[data-theme="light"] .leaderboard-stats .stat-label { |
| 2396 | + color: #4a5568 !important; |
| 2397 | +} |
| 2398 | + |
2349 | 2399 | /* Leaderboard Grid */ |
2350 | 2400 | .leaderboard-grid { |
2351 | 2401 | display: grid; |
|
2362 | 2412 | transition: all 0.3s ease; |
2363 | 2413 | position: relative; |
2364 | 2414 | overflow: hidden; |
| 2415 | + color: var(--ifm-font-color-base); |
| 2416 | +} |
| 2417 | + |
| 2418 | +/* Light theme specific styles */ |
| 2419 | +[data-theme="light"] .leaderboard-item { |
| 2420 | + background: #ffffff; |
| 2421 | + border: 1px solid #e2e8f0; |
| 2422 | + color: #1a202c; |
| 2423 | + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); |
| 2424 | +} |
| 2425 | + |
| 2426 | +[data-theme="light"] .leaderboard-item:hover { |
| 2427 | + box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); |
| 2428 | + border-color: var(--ifm-color-primary); |
2365 | 2429 | } |
2366 | 2430 |
|
2367 | 2431 | .leaderboard-item::before { |
|
2462 | 2526 | font-style: italic; |
2463 | 2527 | } |
2464 | 2528 |
|
| 2529 | +/* Light theme text visibility fixes */ |
| 2530 | +[data-theme="light"] .user-name { |
| 2531 | + color: #1a202c !important; |
| 2532 | +} |
| 2533 | + |
| 2534 | +[data-theme="light"] .user-username { |
| 2535 | + color: #4a5568 !important; |
| 2536 | +} |
| 2537 | + |
| 2538 | +[data-theme="light"] .leaderboard-item .user-info { |
| 2539 | + color: #1a202c; |
| 2540 | +} |
| 2541 | + |
2465 | 2542 | /* Score Display */ |
2466 | 2543 | .score-display { |
2467 | 2544 | margin-bottom: 1.5rem; |
|
2481 | 2558 | letter-spacing: 0.5px; |
2482 | 2559 | } |
2483 | 2560 |
|
| 2561 | +/* Light theme score visibility */ |
| 2562 | +[data-theme="light"] .score-number { |
| 2563 | + color: var(--ifm-color-primary) !important; |
| 2564 | +} |
| 2565 | + |
| 2566 | +[data-theme="light"] .score-label { |
| 2567 | + color: #4a5568 !important; |
| 2568 | +} |
| 2569 | + |
2484 | 2570 | /* User Stats */ |
2485 | 2571 | .user-stats { |
2486 | 2572 | display: grid; |
|
2512 | 2598 | letter-spacing: 0.5px; |
2513 | 2599 | } |
2514 | 2600 |
|
| 2601 | +/* Light theme stats visibility */ |
| 2602 | +[data-theme="light"] .user-stats .stat { |
| 2603 | + background: #f7fafc; |
| 2604 | + border: 1px solid #e2e8f0; |
| 2605 | +} |
| 2606 | + |
| 2607 | +[data-theme="light"] .stat-value { |
| 2608 | + color: var(--ifm-color-primary) !important; |
| 2609 | +} |
| 2610 | + |
| 2611 | +[data-theme="light"] .stat-text { |
| 2612 | + color: #4a5568 !important; |
| 2613 | +} |
| 2614 | + |
2515 | 2615 | /* Achievements */ |
2516 | 2616 | .achievements { |
2517 | 2617 | display: flex; |
|
2532 | 2632 | white-space: nowrap; |
2533 | 2633 | } |
2534 | 2634 |
|
| 2635 | +/* Light theme achievement tags */ |
| 2636 | +[data-theme="light"] .achievement-tag { |
| 2637 | + background: #e6fffa; |
| 2638 | + color: #234e52; |
| 2639 | + border: 1px solid #81e6d9; |
| 2640 | +} |
| 2641 | + |
2535 | 2642 | /* Actions Section */ |
2536 | 2643 | .actions-section { |
2537 | 2644 | text-align: center; |
|
2579 | 2686 | margin-bottom: 0; |
2580 | 2687 | } |
2581 | 2688 |
|
| 2689 | +/* Light theme empty state */ |
| 2690 | +[data-theme="light"] .empty-state { |
| 2691 | + background: #ffffff; |
| 2692 | + border: 1px solid #e2e8f0; |
| 2693 | + color: #4a5568; |
| 2694 | +} |
| 2695 | + |
| 2696 | +[data-theme="light"] .empty-state h3 { |
| 2697 | + color: #1a202c !important; |
| 2698 | +} |
| 2699 | + |
| 2700 | +[data-theme="light"] .empty-state p { |
| 2701 | + color: #4a5568 !important; |
| 2702 | +} |
| 2703 | + |
2582 | 2704 | /* Responsive Design */ |
2583 | 2705 | @media (max-width: 768px) { |
2584 | 2706 | .leaderboard-page-title { |
|
3230 | 3352 | margin: 1rem 0; |
3231 | 3353 | } |
3232 | 3354 |
|
| 3355 | +/* Light theme rate limit warning */ |
| 3356 | +[data-theme="light"] .rate-limit-warning { |
| 3357 | + background: #fef3c7; |
| 3358 | + border: 1px solid #f59e0b; |
| 3359 | +} |
| 3360 | + |
| 3361 | +[data-theme="light"] .rate-limit-warning h4, |
| 3362 | +[data-theme="light"] .rate-limit-warning p { |
| 3363 | + color: #92400e !important; |
| 3364 | +} |
| 3365 | + |
| 3366 | +[data-theme="light"] .rate-limit-timer { |
| 3367 | + color: #dc2626 !important; |
| 3368 | +} |
| 3369 | + |
3233 | 3370 | @media (max-width: 768px) { |
3234 | 3371 | .leaderboard-header-controls { |
3235 | 3372 | flex-direction: column; |
|
3251 | 3388 | opacity: 0.6; |
3252 | 3389 | pointer-events: none; |
3253 | 3390 | } |
| 3391 | + |
| 3392 | +/* Light theme comprehensive fixes */ |
| 3393 | +[data-theme="light"] .leaderboard-page-container { |
| 3394 | + color: #1a202c; |
| 3395 | +} |
| 3396 | + |
| 3397 | +[data-theme="light"] .leaderboard-content { |
| 3398 | + color: #1a202c; |
| 3399 | +} |
| 3400 | + |
| 3401 | +[data-theme="light"] .leaderboard-item * { |
| 3402 | + color: inherit; |
| 3403 | +} |
| 3404 | + |
| 3405 | +[data-theme="light"] .leaderboard-item .user-info * { |
| 3406 | + color: inherit; |
| 3407 | +} |
| 3408 | + |
| 3409 | +/* Ensure all text in leaderboard is visible in light theme */ |
| 3410 | +[data-theme="light"] .leaderboard-item, |
| 3411 | +[data-theme="light"] .leaderboard-item .user-info, |
| 3412 | +[data-theme="light"] .leaderboard-item .user-stats, |
| 3413 | +[data-theme="light"] .leaderboard-item .achievements { |
| 3414 | + color: #1a202c !important; |
| 3415 | +} |
| 3416 | + |
| 3417 | +[data-theme="light"] .leaderboard-item .user-name, |
| 3418 | +[data-theme="light"] .leaderboard-item .user-username, |
| 3419 | +[data-theme="light"] .leaderboard-item .stat-text { |
| 3420 | + color: inherit !important; |
| 3421 | +} |
| 3422 | + |
| 3423 | +/* Force visibility for all leaderboard text elements */ |
| 3424 | +[data-theme="light"] .leaderboard-page-container * { |
| 3425 | + color: inherit; |
| 3426 | +} |
| 3427 | + |
| 3428 | +[data-theme="light"] .leaderboard-page-container h1, |
| 3429 | +[data-theme="light"] .leaderboard-page-container h2, |
| 3430 | +[data-theme="light"] .leaderboard-page-container h3, |
| 3431 | +[data-theme="light"] .leaderboard-page-container h4, |
| 3432 | +[data-theme="light"] .leaderboard-page-container p { |
| 3433 | + color: #1a202c !important; |
| 3434 | +} |
| 3435 | + |
| 3436 | +/* Keep giveaway page text white in light theme, but table text black */ |
| 3437 | +[data-theme="light"] |
| 3438 | + .min-h-screen.bg-gradient-to-br |
| 3439 | + *:not(table):not(th):not(td) { |
| 3440 | + color: white !important; |
| 3441 | +} |
| 3442 | +[data-theme="light"] .min-h-screen.bg-gradient-to-br table th, |
| 3443 | +[data-theme="light"] .min-h-screen.bg-gradient-to-br table td { |
| 3444 | + color: black !important; |
| 3445 | +} |
| 3446 | + |
| 3447 | +/* Light theme github buttons */ |
| 3448 | +[data-theme="light"] .github-profile-btn, |
| 3449 | +[data-theme="light"] .github-link { |
| 3450 | + background: var(--ifm-color-primary); |
| 3451 | + color: white !important; |
| 3452 | +} |
| 3453 | + |
| 3454 | +[data-theme="light"] .github-profile-btn:hover, |
| 3455 | +[data-theme="light"] .github-link:hover { |
| 3456 | + background: var(--ifm-color-primary-darker); |
| 3457 | + color: white !important; |
| 3458 | + text-decoration: none; |
| 3459 | +} |
| 3460 | + |
| 3461 | +/* Light theme refresh button */ |
| 3462 | +[data-theme="light"] .refresh-button { |
| 3463 | + background: var(--ifm-color-primary); |
| 3464 | + color: white !important; |
| 3465 | +} |
| 3466 | + |
| 3467 | +[data-theme="light"] .refresh-button:hover:not(:disabled) { |
| 3468 | + background: var(--ifm-color-primary-darker); |
| 3469 | + color: white !important; |
| 3470 | +} |
| 3471 | + |
| 3472 | +/* Light theme rate limit status */ |
| 3473 | +[data-theme="light"] .rate-limit-status { |
| 3474 | + color: #4a5568 !important; |
| 3475 | +} |
| 3476 | + |
| 3477 | +/* ===== COMPREHENSIVE LIGHT THEME LEADERBOARD FIXES ===== */ |
| 3478 | + |
| 3479 | +/* Force all leaderboard text to be visible in light theme */ |
| 3480 | +[data-theme="light"] .leaderboard-page-container, |
| 3481 | +[data-theme="light"] .leaderboard-page-container *, |
| 3482 | +[data-theme="light"] .leaderboard-content, |
| 3483 | +[data-theme="light"] .leaderboard-content *, |
| 3484 | +[data-theme="light"] .leaderboard-grid, |
| 3485 | +[data-theme="light"] .leaderboard-grid *, |
| 3486 | +[data-theme="light"] .leaderboard-item, |
| 3487 | +[data-theme="light"] .leaderboard-item * { |
| 3488 | + color: #1a202c !important; |
| 3489 | +} |
| 3490 | + |
| 3491 | +/* Override specific elements that need different colors */ |
| 3492 | +[data-theme="light"] .score-display, |
| 3493 | +[data-theme="light"] .score-display * { |
| 3494 | + color: white !important; |
| 3495 | +} |
| 3496 | + |
| 3497 | +[data-theme="light"] .rank-badge, |
| 3498 | +[data-theme="light"] .rank-badge * { |
| 3499 | + color: white !important; |
| 3500 | +} |
| 3501 | + |
| 3502 | +[data-theme="light"] .github-profile-btn, |
| 3503 | +[data-theme="light"] .github-profile-btn *, |
| 3504 | +[data-theme="light"] .github-link, |
| 3505 | +[data-theme="light"] .github-link * { |
| 3506 | + color: white !important; |
| 3507 | +} |
| 3508 | + |
| 3509 | +[data-theme="light"] .refresh-button, |
| 3510 | +[data-theme="light"] .refresh-button * { |
| 3511 | + color: white !important; |
| 3512 | +} |
| 3513 | + |
| 3514 | +/* Ensure primary colored elements remain visible */ |
| 3515 | +[data-theme="light"] .stat-value, |
| 3516 | +[data-theme="light"] .score-number { |
| 3517 | + color: var(--ifm-color-primary) !important; |
| 3518 | +} |
| 3519 | + |
| 3520 | +/* Fix any remaining invisible text */ |
| 3521 | +[data-theme="light"] .leaderboard-page-header *, |
| 3522 | +[data-theme="light"] .leaderboard-stats *, |
| 3523 | +[data-theme="light"] .user-info *, |
| 3524 | +[data-theme="light"] .user-stats *, |
| 3525 | +[data-theme="light"] .achievements * { |
| 3526 | + color: inherit !important; |
| 3527 | +} |
| 3528 | + |
| 3529 | +/* Ensure proper contrast for all interactive elements */ |
| 3530 | +[data-theme="light"] .filter-button { |
| 3531 | + color: var(--ifm-color-primary) !important; |
| 3532 | + border-color: var(--ifm-color-primary) !important; |
| 3533 | +} |
| 3534 | + |
| 3535 | +[data-theme="light"] .filter-button.active { |
| 3536 | + background: var(--ifm-color-primary) !important; |
| 3537 | + color: white !important; |
| 3538 | +} |
| 3539 | + |
| 3540 | +/* Final fallback for any missed elements */ |
| 3541 | +[data-theme="light"] .dashboard-main * { |
| 3542 | + color: inherit; |
| 3543 | +} |
| 3544 | + |
| 3545 | +[data-theme="light"] .dashboard-main { |
| 3546 | + color: #1a202c; |
| 3547 | +} |
0 commit comments