Spaces:
Sleeping
Sleeping
changes to font color
Browse files- .gitattributes +17 -0
- app.py +78 -17
- styles.css +105 -54
.gitattributes
CHANGED
@@ -34,3 +34,20 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
*.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
*.json filter=lfs diff=lfs merge=lfs -text
|
37 |
+
|
38 |
+
# Set default behavior to automatically normalize line endings
|
39 |
+
* text=auto
|
40 |
+
|
41 |
+
# Explicitly declare text files you want to always be normalized and converted
|
42 |
+
# to native line endings on checkout
|
43 |
+
*.py text
|
44 |
+
*.js text
|
45 |
+
*.html text
|
46 |
+
*.css text
|
47 |
+
*.md text
|
48 |
+
|
49 |
+
# Denote all files that are truly binary and should not be modified
|
50 |
+
*.png binary
|
51 |
+
*.jpg binary
|
52 |
+
*.gif binary
|
53 |
+
*.ico binary
|
app.py
CHANGED
@@ -26,7 +26,7 @@ div.gradio-container [class*="block"] .search-panel {
|
|
26 |
"""
|
27 |
custom_css += additional_css
|
28 |
|
29 |
-
# Create a custom theme with
|
30 |
class CustomTheme(gr.themes.Base):
|
31 |
def __init__(self):
|
32 |
super().__init__(
|
@@ -44,7 +44,7 @@ custom_css += """
|
|
44 |
/* Only override specific panels by ID */
|
45 |
#checkbox-panel,
|
46 |
#search-panel {
|
47 |
-
background-color: #
|
48 |
}
|
49 |
/* Only affect immediate children of these specific panels */
|
50 |
#checkbox-panel > *,
|
@@ -254,13 +254,15 @@ def get_color_for_value(value, min_val, max_val):
|
|
254 |
norm = (value - min_val) / (max_val - min_val)
|
255 |
if norm < 0.5:
|
256 |
ratio = norm / 0.5
|
257 |
-
|
258 |
-
|
|
|
259 |
b = 0
|
260 |
else:
|
261 |
ratio = (norm - 0.5) / 0.5
|
262 |
-
|
263 |
-
|
|
|
264 |
b = 0
|
265 |
return f"#{r:02X}{g:02X}{b:02X}"
|
266 |
|
@@ -359,10 +361,23 @@ with gr.Blocks(css=custom_css, title="TD-EVAL Leaderboard", theme=custom_theme)
|
|
359 |
<script>
|
360 |
// Function to fix background colors
|
361 |
function fixBackgrounds() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
362 |
// Only fix specific panels by ID
|
363 |
var checkboxPanel = document.getElementById('checkbox-panel');
|
364 |
if (checkboxPanel) {
|
365 |
-
checkboxPanel.style.backgroundColor = '#
|
366 |
|
367 |
// Only make checkboxes and their direct containers transparent
|
368 |
var checkboxes = checkboxPanel.querySelectorAll('input[type="checkbox"]');
|
@@ -371,40 +386,85 @@ with gr.Blocks(css=custom_css, title="TD-EVAL Leaderboard", theme=custom_theme)
|
|
371 |
if (parent) parent.style.backgroundColor = 'transparent';
|
372 |
checkbox.style.backgroundColor = 'transparent';
|
373 |
|
374 |
-
// Find and style the associated label to be
|
375 |
var label = checkbox.nextElementSibling;
|
376 |
if (label && label.tagName === 'LABEL') {
|
377 |
-
label.style.color = '#
|
378 |
}
|
379 |
|
380 |
// Also find any span elements that might contain the label text
|
381 |
var spans = parent.querySelectorAll('span');
|
382 |
spans.forEach(function(span) {
|
383 |
-
span.style.color = '#
|
384 |
});
|
385 |
|
386 |
// Find label elements in the parent container
|
387 |
var labels = parent.querySelectorAll('label');
|
388 |
labels.forEach(function(label) {
|
389 |
-
label.style.color = '#
|
390 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
391 |
});
|
392 |
}
|
393 |
|
394 |
var searchPanel = document.getElementById('search-panel');
|
395 |
if (searchPanel) {
|
396 |
-
searchPanel.style.backgroundColor = '#
|
397 |
|
398 |
// Only make search input and its direct container transparent
|
399 |
var searchInput = searchPanel.querySelector('input[type="text"]');
|
400 |
if (searchInput) {
|
401 |
var parent = searchInput.parentElement;
|
402 |
if (parent) parent.style.backgroundColor = 'transparent';
|
403 |
-
searchInput.style.backgroundColor = '
|
404 |
// Ensure the border is visible and matches text color
|
405 |
-
searchInput.style.border = '2px solid #
|
406 |
-
searchInput.style.color = '#
|
407 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
408 |
}
|
409 |
}
|
410 |
|
@@ -436,7 +496,8 @@ with gr.Blocks(css=custom_css, title="TD-EVAL Leaderboard", theme=custom_theme)
|
|
436 |
search_input = gr.Textbox(
|
437 |
label="Search models",
|
438 |
placeholder="Type to filter…",
|
439 |
-
elem_classes="search-input"
|
|
|
440 |
)
|
441 |
|
442 |
hidden_sort_state = gr.State(value={"sort_by": "Average Score", "ascending": False})
|
@@ -520,4 +581,4 @@ with gr.Blocks(css=custom_css, title="TD-EVAL Leaderboard", theme=custom_theme)
|
|
520 |
demo.load(fn=update_leaderboard, inputs=[cb_mwoz, cb_tau_airline, cb_tau_retail, hidden_sort_state, search_input], outputs=leaderboard_display)
|
521 |
|
522 |
if __name__ == "__main__":
|
523 |
-
demo.launch()
|
|
|
26 |
"""
|
27 |
custom_css += additional_css
|
28 |
|
29 |
+
# Create a custom theme with light colors for our panels
|
30 |
class CustomTheme(gr.themes.Base):
|
31 |
def __init__(self):
|
32 |
super().__init__(
|
|
|
44 |
/* Only override specific panels by ID */
|
45 |
#checkbox-panel,
|
46 |
#search-panel {
|
47 |
+
background-color: #F0F0F0 !important;
|
48 |
}
|
49 |
/* Only affect immediate children of these specific panels */
|
50 |
#checkbox-panel > *,
|
|
|
254 |
norm = (value - min_val) / (max_val - min_val)
|
255 |
if norm < 0.5:
|
256 |
ratio = norm / 0.5
|
257 |
+
# Darker red for lower values
|
258 |
+
r = 180
|
259 |
+
g = int(140 * ratio)
|
260 |
b = 0
|
261 |
else:
|
262 |
ratio = (norm - 0.5) / 0.5
|
263 |
+
# Darker green for higher values
|
264 |
+
r = int(140 * (1 - ratio))
|
265 |
+
g = 140
|
266 |
b = 0
|
267 |
return f"#{r:02X}{g:02X}{b:02X}"
|
268 |
|
|
|
361 |
<script>
|
362 |
// Function to fix background colors
|
363 |
function fixBackgrounds() {
|
364 |
+
// Add a style tag to force all block-info spans to be black
|
365 |
+
var styleEl = document.createElement('style');
|
366 |
+
styleEl.textContent = `
|
367 |
+
span[data-testid="block-info"] { color: #000000 !important; }
|
368 |
+
.svelte-1gfkn6j { color: #000000 !important; }
|
369 |
+
.search-panel label,
|
370 |
+
.search-panel .label-wrap,
|
371 |
+
.search-panel span,
|
372 |
+
#search-panel span,
|
373 |
+
div[id="search-panel"] span { color: #000000 !important; }
|
374 |
+
`;
|
375 |
+
document.head.appendChild(styleEl);
|
376 |
+
|
377 |
// Only fix specific panels by ID
|
378 |
var checkboxPanel = document.getElementById('checkbox-panel');
|
379 |
if (checkboxPanel) {
|
380 |
+
checkboxPanel.style.backgroundColor = '#F0F0F0';
|
381 |
|
382 |
// Only make checkboxes and their direct containers transparent
|
383 |
var checkboxes = checkboxPanel.querySelectorAll('input[type="checkbox"]');
|
|
|
386 |
if (parent) parent.style.backgroundColor = 'transparent';
|
387 |
checkbox.style.backgroundColor = 'transparent';
|
388 |
|
389 |
+
// Find and style the associated label to be black
|
390 |
var label = checkbox.nextElementSibling;
|
391 |
if (label && label.tagName === 'LABEL') {
|
392 |
+
label.style.color = '#000000';
|
393 |
}
|
394 |
|
395 |
// Also find any span elements that might contain the label text
|
396 |
var spans = parent.querySelectorAll('span');
|
397 |
spans.forEach(function(span) {
|
398 |
+
span.style.color = '#000000';
|
399 |
});
|
400 |
|
401 |
// Find label elements in the parent container
|
402 |
var labels = parent.querySelectorAll('label');
|
403 |
labels.forEach(function(label) {
|
404 |
+
label.style.color = '#000000';
|
405 |
});
|
406 |
+
|
407 |
+
// Apply custom styling for the checkbox to show orange checkmark
|
408 |
+
if (checkbox.checked) {
|
409 |
+
checkbox.style.position = 'relative';
|
410 |
+
checkbox.style.appearance = 'none';
|
411 |
+
checkbox.style.backgroundColor = '#F0F0F0';
|
412 |
+
checkbox.style.border = '1px solid #CCCCCC';
|
413 |
+
checkbox.style.borderRadius = '3px';
|
414 |
+
|
415 |
+
// Create or update the checkmark element
|
416 |
+
var checkmark = checkbox.querySelector('.orange-checkmark');
|
417 |
+
if (!checkmark) {
|
418 |
+
checkmark = document.createElement('span');
|
419 |
+
checkmark.className = 'orange-checkmark';
|
420 |
+
checkmark.style.position = 'absolute';
|
421 |
+
checkmark.style.left = '50%';
|
422 |
+
checkmark.style.top = '50%';
|
423 |
+
checkmark.style.transform = 'translate(-50%, -50%)';
|
424 |
+
checkmark.style.color = '#c34700';
|
425 |
+
checkmark.style.fontSize = '14px';
|
426 |
+
checkmark.style.fontWeight = 'bold';
|
427 |
+
checkmark.innerText = '✓';
|
428 |
+
checkbox.appendChild(checkmark);
|
429 |
+
}
|
430 |
+
}
|
431 |
});
|
432 |
}
|
433 |
|
434 |
var searchPanel = document.getElementById('search-panel');
|
435 |
if (searchPanel) {
|
436 |
+
searchPanel.style.backgroundColor = '#F0F0F0';
|
437 |
|
438 |
// Only make search input and its direct container transparent
|
439 |
var searchInput = searchPanel.querySelector('input[type="text"]');
|
440 |
if (searchInput) {
|
441 |
var parent = searchInput.parentElement;
|
442 |
if (parent) parent.style.backgroundColor = 'transparent';
|
443 |
+
searchInput.style.backgroundColor = '#FFFFFF';
|
444 |
// Ensure the border is visible and matches text color
|
445 |
+
searchInput.style.border = '2px solid #000000';
|
446 |
+
searchInput.style.color = '#000000';
|
447 |
}
|
448 |
+
|
449 |
+
// Make sure the label is black
|
450 |
+
var searchLabels = searchPanel.querySelectorAll('label, .label-wrap, .label-wrap span');
|
451 |
+
searchLabels.forEach(function(label) {
|
452 |
+
label.style.color = '#000000';
|
453 |
+
});
|
454 |
+
|
455 |
+
// Target the specific span element that contains the label text
|
456 |
+
var blockInfoSpans = document.querySelectorAll('span[data-testid="block-info"]');
|
457 |
+
blockInfoSpans.forEach(function(span) {
|
458 |
+
span.style.color = '#000000';
|
459 |
+
});
|
460 |
+
|
461 |
+
// Also target elements with the svelte class
|
462 |
+
var svelteElements = document.querySelectorAll('.svelte-1gfkn6j');
|
463 |
+
svelteElements.forEach(function(element) {
|
464 |
+
if (element.textContent.includes('Search models')) {
|
465 |
+
element.style.color = '#000000';
|
466 |
+
}
|
467 |
+
});
|
468 |
}
|
469 |
}
|
470 |
|
|
|
496 |
search_input = gr.Textbox(
|
497 |
label="Search models",
|
498 |
placeholder="Type to filter…",
|
499 |
+
elem_classes="search-input",
|
500 |
+
elem_id="search-input"
|
501 |
)
|
502 |
|
503 |
hidden_sort_state = gr.State(value={"sort_by": "Average Score", "ascending": False})
|
|
|
581 |
demo.load(fn=update_leaderboard, inputs=[cb_mwoz, cb_tau_airline, cb_tau_retail, hidden_sort_state, search_input], outputs=leaderboard_display)
|
582 |
|
583 |
if __name__ == "__main__":
|
584 |
+
demo.launch()
|
styles.css
CHANGED
@@ -3,16 +3,16 @@
|
|
3 |
------------------------------------------------------------------ */
|
4 |
body {
|
5 |
font-family: Arial, sans-serif;
|
6 |
-
background-color: #
|
7 |
margin: 20px;
|
8 |
-
color: #
|
9 |
}
|
10 |
|
11 |
/* ------------------------------------------------------------------
|
12 |
Headings & Subtitle
|
13 |
------------------------------------------------------------------ */
|
14 |
h1, h2, h3, .subtitle, .variants_container {
|
15 |
-
color: #
|
16 |
display: flex;
|
17 |
text-align: center;
|
18 |
justify-content: center;
|
@@ -26,7 +26,7 @@ h1 {
|
|
26 |
|
27 |
.subtitle {
|
28 |
margin-bottom: 50px;
|
29 |
-
color: #
|
30 |
}
|
31 |
|
32 |
/* ------------------------------------------------------------------
|
@@ -40,20 +40,20 @@ h1 {
|
|
40 |
justify-content: center;
|
41 |
padding: 15px;
|
42 |
width: fit-content;
|
43 |
-
color: #
|
44 |
-
background-color:
|
45 |
}
|
46 |
|
47 |
.variants_title {
|
48 |
font-size: 20px;
|
49 |
font-weight: 500;
|
50 |
-
color: #
|
51 |
}
|
52 |
|
53 |
/* Force all descendants of the variants container to be dark */
|
54 |
.variants_container,
|
55 |
.variants_container * {
|
56 |
-
color: #
|
57 |
}
|
58 |
|
59 |
|
@@ -69,40 +69,36 @@ table {
|
|
69 |
}
|
70 |
|
71 |
table th {
|
72 |
-
background-color: #
|
73 |
-
color: #
|
74 |
font-weight: bold;
|
75 |
font-size: 18px;
|
76 |
border: 1px solid #CCCCCC;
|
77 |
}
|
78 |
|
79 |
table tr:not(:first-child):nth-child(odd) {
|
80 |
-
background-color: #
|
81 |
-
|
82 |
}
|
83 |
|
84 |
table tr:not(:first-child):nth-child(even) {
|
85 |
-
background-color: #
|
86 |
-
|
87 |
}
|
88 |
|
89 |
table tr:not(:first-child):nth-child(odd) td {
|
90 |
-
color: #
|
91 |
border: 1px solid #CCCCCC;
|
92 |
-
|
93 |
-
}
|
94 |
|
95 |
-
|
96 |
-
color: #
|
97 |
border: 1px solid #CCCCCC;
|
98 |
-
|
99 |
-
}
|
100 |
|
101 |
|
102 |
th, td {
|
103 |
padding: 8px;
|
104 |
text-align: center;
|
105 |
-
border: 1px solid
|
106 |
}
|
107 |
|
108 |
/* ------------------------------------------------------------------
|
@@ -110,7 +106,7 @@ th, td {
|
|
110 |
------------------------------------------------------------------ */
|
111 |
button {
|
112 |
background-color: #c34700b6;
|
113 |
-
color: #
|
114 |
border: none;
|
115 |
padding: 8px 12px;
|
116 |
border-radius: 4px;
|
@@ -122,7 +118,32 @@ button {
|
|
122 |
button:hover {
|
123 |
background-color: #c34800;
|
124 |
transform: translateY(-2px);
|
125 |
-
box-shadow: 0 4px 8px rgba(0,0,0,0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
}
|
127 |
|
128 |
/* ------------------------------------------------------------------
|
@@ -132,14 +153,14 @@ button:hover {
|
|
132 |
text-align: center;
|
133 |
margin: 10px 0;
|
134 |
padding: 5px;
|
135 |
-
background-color: #
|
136 |
border-radius: 5px;
|
137 |
font-size: 16px;
|
138 |
}
|
139 |
|
140 |
.sort-info,
|
141 |
.sort-info * {
|
142 |
-
color: #
|
143 |
}
|
144 |
|
145 |
|
@@ -148,7 +169,7 @@ button:hover {
|
|
148 |
------------------------------------------------------------------ */
|
149 |
.gradio-container .checkbox-container {
|
150 |
margin-right: 10px;
|
151 |
-
background-color: #
|
152 |
padding: 8px;
|
153 |
border-radius: 5px;
|
154 |
}
|
@@ -157,8 +178,8 @@ button:hover {
|
|
157 |
Search Input
|
158 |
------------------------------------------------------------------ */
|
159 |
input[type="text"] {
|
160 |
-
background-color: #
|
161 |
-
color: #
|
162 |
border: 1px solid #CCCCCC;
|
163 |
border-radius: 5px;
|
164 |
padding: 10px;
|
@@ -168,19 +189,19 @@ input[type="text"] {
|
|
168 |
}
|
169 |
|
170 |
input[type="text"]:focus {
|
171 |
-
border-color: #
|
172 |
outline: none;
|
173 |
-
box-shadow: 0 0 5px rgba(0, 0, 0, 0.
|
174 |
}
|
175 |
|
176 |
/* ------------------------------------------------------------------
|
177 |
No‐results Message
|
178 |
------------------------------------------------------------------ */
|
179 |
.no-results {
|
180 |
-
color: #
|
181 |
text-align: center;
|
182 |
padding: 30px;
|
183 |
-
background-color: #
|
184 |
border-radius: 10px;
|
185 |
font-size: 18px;
|
186 |
margin-top: 20px;
|
@@ -190,10 +211,6 @@ input[type="text"]:focus {
|
|
190 |
Checkbox Panel and Search Panel - High Specificity Rules
|
191 |
------------------------------------------------------------------ */
|
192 |
|
193 |
-
/* Reset the global styles to ensure we're only affecting what we want */
|
194 |
-
html body .gradio-container {
|
195 |
-
/* Default background stays as is */
|
196 |
-
}
|
197 |
|
198 |
/* Only target the specific checkbox and search panels */
|
199 |
#checkbox-panel,
|
@@ -201,7 +218,7 @@ div.checkbox-panel,
|
|
201 |
div[id="checkbox-panel"],
|
202 |
.gradio-container div[id="checkbox-panel"],
|
203 |
.gradio-container .checkbox-panel {
|
204 |
-
background-color: #
|
205 |
padding: 12px !important;
|
206 |
border-radius: 6px !important;
|
207 |
margin-bottom: 1rem !important;
|
@@ -212,7 +229,7 @@ div.search-panel,
|
|
212 |
div[id="search-panel"],
|
213 |
.gradio-container div[id="search-panel"],
|
214 |
.gradio-container .search-panel {
|
215 |
-
background-color: #
|
216 |
padding: 12px !important;
|
217 |
border-radius: 6px !important;
|
218 |
margin-bottom: 1rem !important;
|
@@ -244,39 +261,73 @@ div[class*="block"] {
|
|
244 |
background-color: transparent !important;
|
245 |
}
|
246 |
|
247 |
-
/* Remove overly broad selectors affecting too many elements */
|
248 |
-
|
249 |
-
/* Root level variable override */
|
250 |
-
:root {
|
251 |
-
--block-background-fill: transparent !important;
|
252 |
-
--panel-background-fill: green !important;
|
253 |
-
}
|
254 |
-
|
255 |
/* Make the textbox border visible with the same color as the text */
|
256 |
.search-panel input[type="text"] {
|
257 |
-
border: 2px solid #
|
258 |
-
background-color:
|
259 |
-
color: #
|
260 |
}
|
261 |
|
262 |
/* Ensure input text and placeholder have consistent styling */
|
263 |
.search-panel input[type="text"],
|
264 |
.search-panel input[type="text"]::placeholder {
|
265 |
-
color: rgba(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
266 |
}
|
267 |
|
268 |
-
/* Style the checkbox labels to ensure they have
|
269 |
.checkbox-panel label,
|
270 |
.checkbox-panel .label-wrap,
|
271 |
.checkbox-panel .label-wrap span {
|
272 |
-
color: #
|
273 |
}
|
274 |
|
275 |
/* Make the checkbox text fully opaque and sharp */
|
276 |
.checkbox-panel input[type="checkbox"] + label,
|
277 |
.checkbox-panel input[type="checkbox"] ~ label,
|
278 |
.checkbox-panel input[type="checkbox"] ~ div label {
|
279 |
-
color: #
|
280 |
opacity: 1 !important;
|
281 |
font-weight: normal;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
282 |
}
|
|
|
3 |
------------------------------------------------------------------ */
|
4 |
body {
|
5 |
font-family: Arial, sans-serif;
|
6 |
+
background-color: #FFFFFF;
|
7 |
margin: 20px;
|
8 |
+
color: #000000;
|
9 |
}
|
10 |
|
11 |
/* ------------------------------------------------------------------
|
12 |
Headings & Subtitle
|
13 |
------------------------------------------------------------------ */
|
14 |
h1, h2, h3, .subtitle, .variants_container {
|
15 |
+
color: #000000;
|
16 |
display: flex;
|
17 |
text-align: center;
|
18 |
justify-content: center;
|
|
|
26 |
|
27 |
.subtitle {
|
28 |
margin-bottom: 50px;
|
29 |
+
color: #000000 !important;
|
30 |
}
|
31 |
|
32 |
/* ------------------------------------------------------------------
|
|
|
40 |
justify-content: center;
|
41 |
padding: 15px;
|
42 |
width: fit-content;
|
43 |
+
color: #000000 !important;
|
44 |
+
background-color: #F5F5F5;
|
45 |
}
|
46 |
|
47 |
.variants_title {
|
48 |
font-size: 20px;
|
49 |
font-weight: 500;
|
50 |
+
color: #000000 !important;
|
51 |
}
|
52 |
|
53 |
/* Force all descendants of the variants container to be dark */
|
54 |
.variants_container,
|
55 |
.variants_container * {
|
56 |
+
color: #000000 !important;
|
57 |
}
|
58 |
|
59 |
|
|
|
69 |
}
|
70 |
|
71 |
table th {
|
72 |
+
background-color: #F0F0F0;
|
73 |
+
color: #000000;
|
74 |
font-weight: bold;
|
75 |
font-size: 18px;
|
76 |
border: 1px solid #CCCCCC;
|
77 |
}
|
78 |
|
79 |
table tr:not(:first-child):nth-child(odd) {
|
80 |
+
background-color: #F8F8F8;
|
|
|
81 |
}
|
82 |
|
83 |
table tr:not(:first-child):nth-child(even) {
|
84 |
+
background-color: #F0F0F0;
|
|
|
85 |
}
|
86 |
|
87 |
table tr:not(:first-child):nth-child(odd) td {
|
88 |
+
color: #000000;
|
89 |
border: 1px solid #CCCCCC;
|
90 |
+
}
|
|
|
91 |
|
92 |
+
table tr:not(:first-child):nth-child(even) td {
|
93 |
+
color: #000000;
|
94 |
border: 1px solid #CCCCCC;
|
95 |
+
}
|
|
|
96 |
|
97 |
|
98 |
th, td {
|
99 |
padding: 8px;
|
100 |
text-align: center;
|
101 |
+
border: 1px solid #DDDDDD;
|
102 |
}
|
103 |
|
104 |
/* ------------------------------------------------------------------
|
|
|
106 |
------------------------------------------------------------------ */
|
107 |
button {
|
108 |
background-color: #c34700b6;
|
109 |
+
color: #000000;
|
110 |
border: none;
|
111 |
padding: 8px 12px;
|
112 |
border-radius: 4px;
|
|
|
118 |
button:hover {
|
119 |
background-color: #c34800;
|
120 |
transform: translateY(-2px);
|
121 |
+
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
122 |
+
}
|
123 |
+
|
124 |
+
/* Style the checkbox to have an orange checkmark */
|
125 |
+
input[type="checkbox"] {
|
126 |
+
accent-color: #F0F0F0;
|
127 |
+
}
|
128 |
+
|
129 |
+
/* Create a custom appearance for checked checkboxes */
|
130 |
+
input[type="checkbox"]:checked {
|
131 |
+
position: relative;
|
132 |
+
appearance: none;
|
133 |
+
background-color: #F0F0F0;
|
134 |
+
border: 1px solid #CCCCCC;
|
135 |
+
border-radius: 3px;
|
136 |
+
}
|
137 |
+
|
138 |
+
input[type="checkbox"]:checked::before {
|
139 |
+
content: '✓';
|
140 |
+
position: absolute;
|
141 |
+
left: 50%;
|
142 |
+
top: 50%;
|
143 |
+
transform: translate(-50%, -50%);
|
144 |
+
color: #c34700; /* Orange color for the checkmark */
|
145 |
+
font-size: 14px;
|
146 |
+
font-weight: bold;
|
147 |
}
|
148 |
|
149 |
/* ------------------------------------------------------------------
|
|
|
153 |
text-align: center;
|
154 |
margin: 10px 0;
|
155 |
padding: 5px;
|
156 |
+
background-color: #F0F0F0;
|
157 |
border-radius: 5px;
|
158 |
font-size: 16px;
|
159 |
}
|
160 |
|
161 |
.sort-info,
|
162 |
.sort-info * {
|
163 |
+
color: #000000 !important;
|
164 |
}
|
165 |
|
166 |
|
|
|
169 |
------------------------------------------------------------------ */
|
170 |
.gradio-container .checkbox-container {
|
171 |
margin-right: 10px;
|
172 |
+
background-color: #F5F5F5;
|
173 |
padding: 8px;
|
174 |
border-radius: 5px;
|
175 |
}
|
|
|
178 |
Search Input
|
179 |
------------------------------------------------------------------ */
|
180 |
input[type="text"] {
|
181 |
+
background-color: #FFFFFF;
|
182 |
+
color: #000000;
|
183 |
border: 1px solid #CCCCCC;
|
184 |
border-radius: 5px;
|
185 |
padding: 10px;
|
|
|
189 |
}
|
190 |
|
191 |
input[type="text"]:focus {
|
192 |
+
border-color: #000000;
|
193 |
outline: none;
|
194 |
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
|
195 |
}
|
196 |
|
197 |
/* ------------------------------------------------------------------
|
198 |
No‐results Message
|
199 |
------------------------------------------------------------------ */
|
200 |
.no-results {
|
201 |
+
color: #000000;
|
202 |
text-align: center;
|
203 |
padding: 30px;
|
204 |
+
background-color: #F5F5F5;
|
205 |
border-radius: 10px;
|
206 |
font-size: 18px;
|
207 |
margin-top: 20px;
|
|
|
211 |
Checkbox Panel and Search Panel - High Specificity Rules
|
212 |
------------------------------------------------------------------ */
|
213 |
|
|
|
|
|
|
|
|
|
214 |
|
215 |
/* Only target the specific checkbox and search panels */
|
216 |
#checkbox-panel,
|
|
|
218 |
div[id="checkbox-panel"],
|
219 |
.gradio-container div[id="checkbox-panel"],
|
220 |
.gradio-container .checkbox-panel {
|
221 |
+
background-color: #F0F0F0 !important;
|
222 |
padding: 12px !important;
|
223 |
border-radius: 6px !important;
|
224 |
margin-bottom: 1rem !important;
|
|
|
229 |
div[id="search-panel"],
|
230 |
.gradio-container div[id="search-panel"],
|
231 |
.gradio-container .search-panel {
|
232 |
+
background-color: #F0F0F0 !important;
|
233 |
padding: 12px !important;
|
234 |
border-radius: 6px !important;
|
235 |
margin-bottom: 1rem !important;
|
|
|
261 |
background-color: transparent !important;
|
262 |
}
|
263 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
/* Make the textbox border visible with the same color as the text */
|
265 |
.search-panel input[type="text"] {
|
266 |
+
border: 2px solid #000000 !important;
|
267 |
+
background-color: #FFFFFF !important;
|
268 |
+
color: #000000 !important;
|
269 |
}
|
270 |
|
271 |
/* Ensure input text and placeholder have consistent styling */
|
272 |
.search-panel input[type="text"],
|
273 |
.search-panel input[type="text"]::placeholder {
|
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,
|
301 |
.checkbox-panel .label-wrap span {
|
302 |
+
color: #000000 !important;
|
303 |
}
|
304 |
|
305 |
/* Make the checkbox text fully opaque and sharp */
|
306 |
.checkbox-panel input[type="checkbox"] + label,
|
307 |
.checkbox-panel input[type="checkbox"] ~ label,
|
308 |
.checkbox-panel input[type="checkbox"] ~ div label {
|
309 |
+
color: #000000 !important;
|
310 |
opacity: 1 !important;
|
311 |
font-weight: normal;
|
312 |
+
}
|
313 |
+
|
314 |
+
/* Root level variable override */
|
315 |
+
:root {
|
316 |
+
--block-background-fill: transparent !important;
|
317 |
+
--panel-background-fill: #F0F0F0 !important;
|
318 |
+
}
|
319 |
+
|
320 |
+
/* Target the specific Gradio label element */
|
321 |
+
span[data-testid="block-info"],
|
322 |
+
.svelte-1gfkn6j,
|
323 |
+
span.svelte-1gfkn6j,
|
324 |
+
[data-testid="block-info"] {
|
325 |
+
color: #000000 !important;
|
326 |
+
}
|
327 |
+
|
328 |
+
/* Force all span elements in the search panel to be black */
|
329 |
+
.search-panel span,
|
330 |
+
#search-panel span,
|
331 |
+
div[id="search-panel"] span {
|
332 |
+
color: #000000 !important;
|
333 |
}
|