Spaces:
Sleeping
Sleeping
Update static/styles.css
Browse files- static/styles.css +177 -0
static/styles.css
CHANGED
|
@@ -396,4 +396,181 @@ body, .gradio-container {
|
|
| 396 |
color: #1d4ed8 !important; /* آبی پررنگتر برای انتخاب */
|
| 397 |
font-weight: 600 !important;
|
| 398 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 399 |
"""
|
|
|
|
| 396 |
color: #1d4ed8 !important; /* آبی پررنگتر برای انتخاب */
|
| 397 |
font-weight: 600 !important;
|
| 398 |
}
|
| 399 |
+
/* === NEW === */
|
| 400 |
+
/* ===== Dark Mode Overrides (place at the very end) ===== */
|
| 401 |
+
:root { color-scheme: light dark; }
|
| 402 |
+
|
| 403 |
+
/* پوشش همه حالتهای تم تیره در Gradio/HF */
|
| 404 |
+
html[data-theme="dark"],
|
| 405 |
+
body[data-theme="dark"],
|
| 406 |
+
[data-theme="dark"],
|
| 407 |
+
.dark,
|
| 408 |
+
.dark .gradio-container {
|
| 409 |
+
/* رنگهای پایه */
|
| 410 |
+
--tb-bg: #0b1220; /* پسزمینه صفحه */
|
| 411 |
+
--tb-panel: #0f172a; /* پنل/کارت/جدول */
|
| 412 |
+
--tb-text: #e5e7eb; /* متن اصلی */
|
| 413 |
+
--tb-muted: #94a3b8; /* متن کمرنگ */
|
| 414 |
+
--tb-border: #263244; /* مرزها */
|
| 415 |
+
--tb-border-soft: #1b2533; /* مرز ملایمتر */
|
| 416 |
+
--tb-chip: #1f2937; /* چیپ غیرفعال */
|
| 417 |
+
--tb-chip-border: #334155;
|
| 418 |
+
--tb-chip-text: #e2e8f0;
|
| 419 |
+
--tb-chip-active: #4f46e5; /* چیپ فعال */
|
| 420 |
+
--tb-link: #93c5fd;
|
| 421 |
+
}
|
| 422 |
+
|
| 423 |
+
/* پسزمینه و متن کلی */
|
| 424 |
+
html[data-theme="dark"] body,
|
| 425 |
+
body[data-theme="dark"],
|
| 426 |
+
[data-theme="dark"] .gradio-container,
|
| 427 |
+
.dark .gradio-container {
|
| 428 |
+
background: var(--tb-bg) !important;
|
| 429 |
+
color: var(--tb-text) !important;
|
| 430 |
+
}
|
| 431 |
+
|
| 432 |
+
/* هدرها و تیترها */
|
| 433 |
+
[data-theme="dark"] .main-title,
|
| 434 |
+
.dark .main-title,
|
| 435 |
+
[data-theme="dark"] .hero .main-title,
|
| 436 |
+
.dark .hero .main-title {
|
| 437 |
+
color: #f8fafc !important;
|
| 438 |
+
background: none !important;
|
| 439 |
+
-webkit-text-fill-color: initial !important;
|
| 440 |
+
}
|
| 441 |
+
|
| 442 |
+
/* زیرتیتر */
|
| 443 |
+
[data-theme="dark"] .hero .subtitle,
|
| 444 |
+
.dark .hero .subtitle {
|
| 445 |
+
color: var(--tb-muted) !important;
|
| 446 |
+
}
|
| 447 |
+
|
| 448 |
+
/* نوار بالا (اگر نمایش داده شود) */
|
| 449 |
+
[data-theme="dark"] .navbar,
|
| 450 |
+
.dark .navbar {
|
| 451 |
+
background: linear-gradient(90deg, #0f172a, #111827) !important;
|
| 452 |
+
border-bottom-color: var(--tb-border) !important;
|
| 453 |
+
}
|
| 454 |
+
|
| 455 |
+
/* جعبه جستجو */
|
| 456 |
+
[data-theme="dark"] .search-box input,
|
| 457 |
+
.dark .search-box input {
|
| 458 |
+
background: #0b1220 !important;
|
| 459 |
+
color: var(--tb-text) !important;
|
| 460 |
+
border-color: #334155 !important;
|
| 461 |
+
}
|
| 462 |
+
[data-theme="dark"] .search-box input::placeholder,
|
| 463 |
+
.dark .search-box input::placeholder {
|
| 464 |
+
color: var(--tb-muted) !important;
|
| 465 |
+
}
|
| 466 |
+
[data-theme="dark"] .search-box input:focus,
|
| 467 |
+
.dark .search-box input:focus {
|
| 468 |
+
border-color: #475569 !important;
|
| 469 |
+
box-shadow: 0 0 8px rgba(30,58,138,0.25) !important;
|
| 470 |
+
}
|
| 471 |
+
|
| 472 |
+
/* باکس کلی فیلترها */
|
| 473 |
+
[data-theme="dark"] .filters-box,
|
| 474 |
+
.dark .filters-box,
|
| 475 |
+
[data-theme="dark"] .all-filters-box,
|
| 476 |
+
.dark .all-filters-box {
|
| 477 |
+
background: var(--tb-panel) !important;
|
| 478 |
+
border-color: var(--tb-border) !important;
|
| 479 |
+
box-shadow: 0 1px 3px rgba(0,0,0,0.35) !important;
|
| 480 |
+
}
|
| 481 |
+
|
| 482 |
+
/* چیپهای چکباکسی (Quick + Brand) – حالت عادی */
|
| 483 |
+
[data-theme="dark"] .gr-checkbox-group label,
|
| 484 |
+
.dark .gr-checkbox-group label {
|
| 485 |
+
background: var(--tb-chip) !important;
|
| 486 |
+
color: var(--tb-chip-text) !important;
|
| 487 |
+
border-color: var(--tb-chip-border) !important;
|
| 488 |
+
}
|
| 489 |
+
[data-theme="dark"] .gr-checkbox-group label:hover,
|
| 490 |
+
.dark .gr-checkbox-group label:hover {
|
| 491 |
+
background: #293241 !important;
|
| 492 |
+
border-color: #3b4a5e !important;
|
| 493 |
+
}
|
| 494 |
+
/* چیپهای فعال */
|
| 495 |
+
[data-theme="dark"] .gr-checkbox-group input:checked + label,
|
| 496 |
+
.dark .gr-checkbox-group input:checked + label,
|
| 497 |
+
[data-theme="dark"] [id^="brand_"] input:checked + label,
|
| 498 |
+
.dark [id^="brand_"] input:checked + label {
|
| 499 |
+
background: var(--tb-chip-active) !important;
|
| 500 |
+
border-color: var(--tb-chip-active) !important;
|
| 501 |
+
color: #fff !important;
|
| 502 |
+
box-shadow: 0 0 0 2px rgba(79,70,229,.25) inset !important;
|
| 503 |
+
}
|
| 504 |
+
|
| 505 |
+
/* دراپدان کانتکست */
|
| 506 |
+
[data-theme="dark"] .ctx-dd select,
|
| 507 |
+
[data-theme="dark"] .ctx-dd button,
|
| 508 |
+
[data-theme="dark"] .ctx-dd .wrap-inner,
|
| 509 |
+
.dark .ctx-dd select,
|
| 510 |
+
.dark .ctx-dd button,
|
| 511 |
+
.dark .ctx-dd .wrap-inner {
|
| 512 |
+
background: #0b1220 !important;
|
| 513 |
+
color: var(--tb-text) !important;
|
| 514 |
+
border-color: var(--tb-border) !important;
|
| 515 |
+
}
|
| 516 |
+
|
| 517 |
+
/* جدولها و رپپر */
|
| 518 |
+
[data-theme="dark"] .table-wrapper,
|
| 519 |
+
.dark .table-wrapper {
|
| 520 |
+
background: var(--tb-panel) !important;
|
| 521 |
+
border-color: var(--tb-border) !important;
|
| 522 |
+
box-shadow: 0 1px 3px rgba(0,0,0,0.35) !important;
|
| 523 |
+
}
|
| 524 |
+
[data-theme="dark"] .table-wrapper th,
|
| 525 |
+
[data-theme="dark"] #leaderboard_sbu th,
|
| 526 |
+
[data-theme="dark"] #leaderboard_uq th,
|
| 527 |
+
[data-theme="dark"] #leaderboard_aut th,
|
| 528 |
+
.dark .table-wrapper th,
|
| 529 |
+
.dark #leaderboard_sbu th,
|
| 530 |
+
.dark #leaderboard_uq th,
|
| 531 |
+
.dark #leaderboard_aut th {
|
| 532 |
+
color: var(--tb-text) !important;
|
| 533 |
+
border-bottom: 1px solid var(--tb-border) !important;
|
| 534 |
+
background: transparent !important;
|
| 535 |
+
}
|
| 536 |
+
[data-theme="dark"] .table-wrapper td,
|
| 537 |
+
[data-theme="dark"] #leaderboard_sbu td,
|
| 538 |
+
[data-theme="dark"] #leaderboard_uq td,
|
| 539 |
+
[data-theme="dark"] #leaderboard_aut td,
|
| 540 |
+
.dark .table-wrapper td,
|
| 541 |
+
.dark #leaderboard_sbu td,
|
| 542 |
+
.dark #leaderboard_uq td,
|
| 543 |
+
.dark #leaderboard_aut td {
|
| 544 |
+
color: var(--tb-text) !important;
|
| 545 |
+
border-bottom: 1px solid var(--tb-border-soft) !important;
|
| 546 |
+
}
|
| 547 |
+
|
| 548 |
+
/* ستون مدل */
|
| 549 |
+
[data-theme="dark"] .model-col,
|
| 550 |
+
.dark .model-col {
|
| 551 |
+
color: #93c5fd !important;
|
| 552 |
+
font-weight: 700 !important;
|
| 553 |
+
}
|
| 554 |
+
|
| 555 |
+
/* تبها */
|
| 556 |
+
[data-theme="dark"] .tabs.svelte-1tcem6n button[role="tab"],
|
| 557 |
+
.dark .tabs.svelte-1tcem6n button[role="tab"] {
|
| 558 |
+
color: var(--tb-muted) !important;
|
| 559 |
+
}
|
| 560 |
+
[data-theme="dark"] .tabs.svelte-1tcem6n button[role="tab"]:hover,
|
| 561 |
+
.dark .tabs.svelte-1tcem6n button[role="tab"]:hover {
|
| 562 |
+
color: #93c5fd !important;
|
| 563 |
+
}
|
| 564 |
+
[data-theme="dark"] .tabs.svelte-1tcem6n button[role="tab"].selected,
|
| 565 |
+
.dark .tabs.svelte-1tcem6n button[role="tab"].selected {
|
| 566 |
+
color: #bfdbfe !important;
|
| 567 |
+
font-weight: 700 !important;
|
| 568 |
+
}
|
| 569 |
+
|
| 570 |
+
/* اسکرولبار – در حالت تیره هم مخفی بماند (اختیاری) */
|
| 571 |
+
[data-theme="dark"] ::-webkit-scrollbar,
|
| 572 |
+
.dark ::-webkit-scrollbar { display: none !important; }
|
| 573 |
+
|
| 574 |
+
|
| 575 |
+
|
| 576 |
"""
|