Spaces:
Sleeping
Sleeping
changes to font color
Browse files- app.py +25 -0
- styles.css +27 -2
app.py
CHANGED
@@ -390,6 +390,31 @@ with gr.Blocks(css=custom_css, title="TD-EVAL Leaderboard", theme=custom_theme)
|
|
390 |
labels.forEach(function(label) {
|
391 |
label.style.color = '#000000';
|
392 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
393 |
});
|
394 |
}
|
395 |
|
|
|
390 |
labels.forEach(function(label) {
|
391 |
label.style.color = '#000000';
|
392 |
});
|
393 |
+
|
394 |
+
// Apply custom styling for the checkbox to show orange checkmark
|
395 |
+
if (checkbox.checked) {
|
396 |
+
checkbox.style.position = 'relative';
|
397 |
+
checkbox.style.appearance = 'none';
|
398 |
+
checkbox.style.backgroundColor = '#F0F0F0';
|
399 |
+
checkbox.style.border = '1px solid #CCCCCC';
|
400 |
+
checkbox.style.borderRadius = '3px';
|
401 |
+
|
402 |
+
// Create or update the checkmark element
|
403 |
+
var checkmark = checkbox.querySelector('.orange-checkmark');
|
404 |
+
if (!checkmark) {
|
405 |
+
checkmark = document.createElement('span');
|
406 |
+
checkmark.className = 'orange-checkmark';
|
407 |
+
checkmark.style.position = 'absolute';
|
408 |
+
checkmark.style.left = '50%';
|
409 |
+
checkmark.style.top = '50%';
|
410 |
+
checkmark.style.transform = 'translate(-50%, -50%)';
|
411 |
+
checkmark.style.color = '#c34700';
|
412 |
+
checkmark.style.fontSize = '14px';
|
413 |
+
checkmark.style.fontWeight = 'bold';
|
414 |
+
checkmark.innerText = '✓';
|
415 |
+
checkbox.appendChild(checkmark);
|
416 |
+
}
|
417 |
+
}
|
418 |
});
|
419 |
}
|
420 |
|
styles.css
CHANGED
@@ -105,7 +105,7 @@ th, td {
|
|
105 |
Buttons
|
106 |
------------------------------------------------------------------ */
|
107 |
button {
|
108 |
-
background-color: #
|
109 |
color: #000000;
|
110 |
border: none;
|
111 |
padding: 8px 12px;
|
@@ -116,11 +116,36 @@ button {
|
|
116 |
}
|
117 |
|
118 |
button:hover {
|
119 |
-
background-color: #
|
120 |
transform: translateY(-2px);
|
121 |
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
122 |
}
|
123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
/* ------------------------------------------------------------------
|
125 |
Sort‐info Banner
|
126 |
------------------------------------------------------------------ */
|
|
|
105 |
Buttons
|
106 |
------------------------------------------------------------------ */
|
107 |
button {
|
108 |
+
background-color: #c34700b6;
|
109 |
color: #000000;
|
110 |
border: none;
|
111 |
padding: 8px 12px;
|
|
|
116 |
}
|
117 |
|
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 |
/* ------------------------------------------------------------------
|
150 |
Sort‐info Banner
|
151 |
------------------------------------------------------------------ */
|