Spaces:
Sleeping
Sleeping
Force high-contrast answer styles
Browse filesOverride Gradio radio chip styles with stronger selectors so option text stays readable in both selected and unselected states.
app.py
CHANGED
|
@@ -238,36 +238,55 @@ body, .gradio-container {
|
|
| 238 |
gap: 8px;
|
| 239 |
}
|
| 240 |
|
|
|
|
|
|
|
| 241 |
.question-radio fieldset label {
|
| 242 |
-
|
|
|
|
| 243 |
border-radius: 12px !important;
|
| 244 |
-
|
| 245 |
-
background: #fffaf5 !important;
|
| 246 |
-
box-shadow: 0 4px 12px rgba(108, 69, 36, 0.05);
|
| 247 |
}
|
| 248 |
|
| 249 |
-
.question-radio
|
| 250 |
-
|
| 251 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 252 |
opacity: 1 !important;
|
| 253 |
}
|
| 254 |
|
|
|
|
| 255 |
.question-radio fieldset label input[type="radio"] {
|
| 256 |
-
accent-color: #
|
| 257 |
}
|
| 258 |
|
|
|
|
| 259 |
.question-radio fieldset label:has(input:checked) {
|
| 260 |
-
background:
|
| 261 |
-
border
|
| 262 |
-
box-shadow: 0 8px 18px rgba(
|
| 263 |
}
|
| 264 |
|
| 265 |
-
.question-radio
|
| 266 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 267 |
}
|
| 268 |
|
|
|
|
| 269 |
.question-radio fieldset label:has(input:checked) input[type="radio"] {
|
| 270 |
-
accent-color: #
|
| 271 |
}
|
| 272 |
|
| 273 |
.primary-btn button,
|
|
|
|
| 238 |
gap: 8px;
|
| 239 |
}
|
| 240 |
|
| 241 |
+
.question-radio .wrap,
|
| 242 |
+
.question-radio .wrap label,
|
| 243 |
.question-radio fieldset label {
|
| 244 |
+
background: #fffaf3 !important;
|
| 245 |
+
border: 1px solid #b98a6b !important;
|
| 246 |
border-radius: 12px !important;
|
| 247 |
+
box-shadow: 0 4px 12px rgba(108, 69, 36, 0.06) !important;
|
|
|
|
|
|
|
| 248 |
}
|
| 249 |
|
| 250 |
+
.question-radio .wrap label,
|
| 251 |
+
.question-radio fieldset label {
|
| 252 |
+
padding: 8px 14px !important;
|
| 253 |
+
}
|
| 254 |
+
|
| 255 |
+
.question-radio .wrap label span,
|
| 256 |
+
.question-radio .wrap label p,
|
| 257 |
+
.question-radio .wrap label div,
|
| 258 |
+
.question-radio fieldset label span,
|
| 259 |
+
.question-radio fieldset label p,
|
| 260 |
+
.question-radio fieldset label div {
|
| 261 |
+
color: #2f190f !important;
|
| 262 |
+
font-weight: 700 !important;
|
| 263 |
opacity: 1 !important;
|
| 264 |
}
|
| 265 |
|
| 266 |
+
.question-radio .wrap label input[type="radio"],
|
| 267 |
.question-radio fieldset label input[type="radio"] {
|
| 268 |
+
accent-color: #8a401b !important;
|
| 269 |
}
|
| 270 |
|
| 271 |
+
.question-radio .wrap label:has(input:checked),
|
| 272 |
.question-radio fieldset label:has(input:checked) {
|
| 273 |
+
background: #7a3416 !important;
|
| 274 |
+
border: 1px solid #7a3416 !important;
|
| 275 |
+
box-shadow: 0 8px 18px rgba(122, 52, 22, 0.28) !important;
|
| 276 |
}
|
| 277 |
|
| 278 |
+
.question-radio .wrap label:has(input:checked) span,
|
| 279 |
+
.question-radio .wrap label:has(input:checked) p,
|
| 280 |
+
.question-radio .wrap label:has(input:checked) div,
|
| 281 |
+
.question-radio fieldset label:has(input:checked) span,
|
| 282 |
+
.question-radio fieldset label:has(input:checked) p,
|
| 283 |
+
.question-radio fieldset label:has(input:checked) div {
|
| 284 |
+
color: #ffffff !important;
|
| 285 |
}
|
| 286 |
|
| 287 |
+
.question-radio .wrap label:has(input:checked) input[type="radio"],
|
| 288 |
.question-radio fieldset label:has(input:checked) input[type="radio"] {
|
| 289 |
+
accent-color: #ffffff !important;
|
| 290 |
}
|
| 291 |
|
| 292 |
.primary-btn button,
|