Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Harheem Kim commited on
Commit ·
db58c35
1
Parent(s): ea87118
change the dropdown
Browse files- styles/leaderboard_styles.py +23 -1
styles/leaderboard_styles.py
CHANGED
|
@@ -466,8 +466,30 @@ def get_leaderboard_css():
|
|
| 466 |
}
|
| 467 |
|
| 468 |
/* Force dropdown text color */
|
| 469 |
-
.gradio-dropdown *, .model-dropdown * {
|
| 470 |
color: white !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 471 |
}
|
| 472 |
|
| 473 |
</style>
|
|
|
|
| 466 |
}
|
| 467 |
|
| 468 |
/* Force dropdown text color */
|
| 469 |
+
/* .gradio-dropdown *, .model-dropdown * {
|
| 470 |
color: white !important;
|
| 471 |
+
} */
|
| 472 |
+
|
| 473 |
+
/* Gradio 5.x compatible dropdown styling */
|
| 474 |
+
.gradio-container .gradio-dropdown,
|
| 475 |
+
.gradio-container [data-testid="dropdown"],
|
| 476 |
+
.gradio-container select {
|
| 477 |
+
background-color: rgba(1, 9, 26, 0.95) !important;
|
| 478 |
+
color: white !important;
|
| 479 |
+
border: 1px solid rgba(245, 246, 247, 0.12) !important;
|
| 480 |
+
}
|
| 481 |
+
|
| 482 |
+
.gradio-container .gradio-dropdown option,
|
| 483 |
+
.gradio-container select option {
|
| 484 |
+
background-color: rgba(1, 9, 26, 0.95) !important;
|
| 485 |
+
color: white !important;
|
| 486 |
+
}
|
| 487 |
+
|
| 488 |
+
/* Target the actual visible text in dropdown */
|
| 489 |
+
.gradio-container [role="combobox"],
|
| 490 |
+
.gradio-container .gradio-dropdown .wrap > div {
|
| 491 |
+
color: white !important;
|
| 492 |
+
background-color: rgba(1, 9, 26, 0.95) !important;
|
| 493 |
}
|
| 494 |
|
| 495 |
</style>
|