Spaces:
Sleeping
Sleeping
changes to font color
Browse files- app.py +6 -0
- styles.css +21 -0
app.py
CHANGED
@@ -434,6 +434,12 @@ with gr.Blocks(css=custom_css, title="TD-EVAL Leaderboard", theme=custom_theme)
|
|
434 |
searchInput.style.border = '2px solid #000000';
|
435 |
searchInput.style.color = '#000000';
|
436 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
437 |
}
|
438 |
}
|
439 |
|
|
|
434 |
searchInput.style.border = '2px solid #000000';
|
435 |
searchInput.style.color = '#000000';
|
436 |
}
|
437 |
+
|
438 |
+
// Make sure the label is black
|
439 |
+
var searchLabels = searchPanel.querySelectorAll('label, .label-wrap, .label-wrap span');
|
440 |
+
searchLabels.forEach(function(label) {
|
441 |
+
label.style.color = '#000000';
|
442 |
+
});
|
443 |
}
|
444 |
}
|
445 |
|
styles.css
CHANGED
@@ -274,6 +274,27 @@ div[class*="block"] {
|
|
274 |
color: rgba(0,0,0,0.7) !important;
|
275 |
}
|
276 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
/* Style the checkbox labels to ensure they have black text */
|
278 |
.checkbox-panel label,
|
279 |
.checkbox-panel .label-wrap,
|
|
|
274 |
color: rgba(0,0,0,0.7) !important;
|
275 |
}
|
276 |
|
277 |
+
/* Ensure the search panel label is black */
|
278 |
+
.search-panel label,
|
279 |
+
.search-panel .label-wrap,
|
280 |
+
.search-panel .label-wrap span {
|
281 |
+
color: #000000 !important;
|
282 |
+
}
|
283 |
+
|
284 |
+
/* Override any Gradio specific label styling */
|
285 |
+
#search-panel label,
|
286 |
+
div[id="search-panel"] label,
|
287 |
+
.gradio-container #search-panel label {
|
288 |
+
color: #000000 !important;
|
289 |
+
}
|
290 |
+
|
291 |
+
/* Make sure the input text is black when user types */
|
292 |
+
#search-panel input[type="text"],
|
293 |
+
div[id="search-panel"] input[type="text"],
|
294 |
+
.search-panel input[type="text"] {
|
295 |
+
color: #000000 !important;
|
296 |
+
}
|
297 |
+
|
298 |
/* Style the checkbox labels to ensure they have black text */
|
299 |
.checkbox-panel label,
|
300 |
.checkbox-panel .label-wrap,
|