Spaces:
Sleeping
Sleeping
Fix iOS input/radio surface and placeholder clipping
Browse filesOverride Gradio block/input background tokens so the textbox label and
radio info no longer sit on a dark gray surface. Add explicit
input/textarea rule (16px, line-height 1.4, regular weight) so the body
line-height stops cascading into inputs and Safari stops clipping the
placeholder mid-letter. Style placeholders italic gray for legibility.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
app.py
CHANGED
|
@@ -304,10 +304,36 @@ CSS = """
|
|
| 304 |
background: #fafaf8 !important;
|
| 305 |
color: #1a1a1a !important;
|
| 306 |
line-height: 1.55;
|
| 307 |
-
/* Override Gradio theme tokens so prose doesn't default to a faint gray
|
|
|
|
| 308 |
--body-text-color: #1a1a1a !important;
|
| 309 |
--body-text-color-subdued: #444 !important;
|
| 310 |
--block-info-text-color: #444 !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 311 |
}
|
| 312 |
.gradio-container p,
|
| 313 |
.gradio-container li,
|
|
|
|
| 304 |
background: #fafaf8 !important;
|
| 305 |
color: #1a1a1a !important;
|
| 306 |
line-height: 1.55;
|
| 307 |
+
/* Override Gradio theme tokens so prose doesn't default to a faint gray
|
| 308 |
+
and inputs/blocks don't sit on a dark surface */
|
| 309 |
--body-text-color: #1a1a1a !important;
|
| 310 |
--body-text-color-subdued: #444 !important;
|
| 311 |
--block-info-text-color: #444 !important;
|
| 312 |
+
--block-label-text-color: #1a1a1a !important;
|
| 313 |
+
--block-title-text-color: #1a1a1a !important;
|
| 314 |
+
--block-background-fill: #fafaf8 !important;
|
| 315 |
+
--block-label-background-fill: #fafaf8 !important;
|
| 316 |
+
--input-background-fill: #ffffff !important;
|
| 317 |
+
--background-fill-primary: #fafaf8 !important;
|
| 318 |
+
--background-fill-secondary: #ffffff !important;
|
| 319 |
+
}
|
| 320 |
+
|
| 321 |
+
/* Form inputs: white surface, sane line-height, 16px to avoid iOS zoom and
|
| 322 |
+
avoid Safari clipping the placeholder mid-letter */
|
| 323 |
+
.gradio-container input[type="text"],
|
| 324 |
+
.gradio-container input[type="search"],
|
| 325 |
+
.gradio-container textarea {
|
| 326 |
+
background: #ffffff !important;
|
| 327 |
+
color: #1a1a1a !important;
|
| 328 |
+
font-family: 'EB Garamond', Georgia, serif !important;
|
| 329 |
+
font-size: 16px !important;
|
| 330 |
+
font-weight: 400 !important;
|
| 331 |
+
line-height: 1.4 !important;
|
| 332 |
+
}
|
| 333 |
+
.gradio-container ::placeholder {
|
| 334 |
+
color: #888 !important;
|
| 335 |
+
opacity: 1 !important;
|
| 336 |
+
font-style: italic;
|
| 337 |
}
|
| 338 |
.gradio-container p,
|
| 339 |
.gradio-container li,
|