Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- demo/ui.py +66 -6
demo/ui.py
CHANGED
|
@@ -109,6 +109,43 @@ html, body, .gradio-container {
|
|
| 109 |
--button-primary-background-fill-hover: var(--lf-accent-dk) !important;
|
| 110 |
--button-primary-text-color: #ffffff !important;
|
| 111 |
--button-primary-border-color: var(--lf-accent) !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
}
|
| 113 |
|
| 114 |
/* Typography β serif for headings to match Claude's Tiempos-style hero */
|
|
@@ -264,27 +301,50 @@ html, body, .gradio-container {
|
|
| 264 |
border-radius: 8px !important;
|
| 265 |
}
|
| 266 |
|
| 267 |
-
/* Inputs + selects + textareas */
|
| 268 |
.gradio-container input[type="text"],
|
| 269 |
.gradio-container input[type="number"],
|
| 270 |
.gradio-container input[type="password"],
|
| 271 |
.gradio-container select,
|
| 272 |
-
.gradio-container textarea
|
|
|
|
|
|
|
|
|
|
|
|
|
| 273 |
border: 1px solid var(--lf-border) !important;
|
| 274 |
-
background: var(--lf-surface) !important;
|
| 275 |
color: var(--lf-text) !important;
|
| 276 |
border-radius: 8px !important;
|
| 277 |
font-family: "Inter", sans-serif !important;
|
| 278 |
font-size: 0.92rem !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 279 |
padding: 0.55rem 0.75rem !important;
|
| 280 |
-
transition: border-color 0.15s !important;
|
| 281 |
}
|
| 282 |
.gradio-container input:focus,
|
| 283 |
.gradio-container textarea:focus,
|
| 284 |
-
.gradio-container select:focus
|
|
|
|
| 285 |
border-color: var(--lf-accent) !important;
|
| 286 |
outline: none !important;
|
| 287 |
-
box-shadow: 0 0 0 3px rgba(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 288 |
}
|
| 289 |
|
| 290 |
/* Labels β kill the accent-coloured "chip" treatment Gradio 5 applies,
|
|
|
|
| 109 |
--button-primary-background-fill-hover: var(--lf-accent-dk) !important;
|
| 110 |
--button-primary-text-color: #ffffff !important;
|
| 111 |
--button-primary-border-color: var(--lf-accent) !important;
|
| 112 |
+
|
| 113 |
+
/* Kill the `<span data-testid="block-info">` pill that Gradio 5 uses
|
| 114 |
+
for every component label β it was defaulting to the primary accent.
|
| 115 |
+
We want labels to be plain muted text above the input. */
|
| 116 |
+
--block-title-background-fill: transparent !important;
|
| 117 |
+
--block-title-border-color: transparent !important;
|
| 118 |
+
--block-title-border-width: 0 !important;
|
| 119 |
+
--block-title-radius: 0 !important;
|
| 120 |
+
--block-title-padding: 0 0 0.3rem 0 !important;
|
| 121 |
+
--block-title-text-color: var(--lf-text-muted) !important;
|
| 122 |
+
--block-title-text-weight: 500 !important;
|
| 123 |
+
--block-title-text-size: 0.8rem !important;
|
| 124 |
+
|
| 125 |
+
/* Input outlines β dropdowns/text/number all need obvious borders */
|
| 126 |
+
--input-shadow: none !important;
|
| 127 |
+
--input-shadow-focus: 0 0 0 3px rgba(226,135,99,0.18) !important;
|
| 128 |
+
--input-border-color-focus: var(--lf-accent) !important;
|
| 129 |
+
--input-background-fill-focus:var(--lf-surface) !important;
|
| 130 |
+
|
| 131 |
+
/* Checkbox / radio variables */
|
| 132 |
+
--checkbox-background-color: var(--lf-surface) !important;
|
| 133 |
+
--checkbox-background-color-hover: var(--lf-surface-alt) !important;
|
| 134 |
+
--checkbox-background-color-focus: var(--lf-surface-alt) !important;
|
| 135 |
+
--checkbox-background-color-selected: var(--lf-accent) !important;
|
| 136 |
+
--checkbox-border-color: var(--lf-border) !important;
|
| 137 |
+
--checkbox-border-color-hover: var(--lf-accent) !important;
|
| 138 |
+
--checkbox-border-color-focus: var(--lf-accent) !important;
|
| 139 |
+
--checkbox-border-color-selected: var(--lf-accent) !important;
|
| 140 |
+
--checkbox-label-background-fill: transparent !important;
|
| 141 |
+
--checkbox-label-background-fill-hover: var(--lf-surface-alt) !important;
|
| 142 |
+
--checkbox-label-background-fill-selected:var(--lf-accent-soft) !important;
|
| 143 |
+
--checkbox-label-text-color: var(--lf-text) !important;
|
| 144 |
+
--checkbox-label-text-color-selected: var(--lf-accent) !important;
|
| 145 |
+
--checkbox-label-border-color: var(--lf-border) !important;
|
| 146 |
+
--checkbox-label-border-color-hover: var(--lf-accent) !important;
|
| 147 |
+
--checkbox-label-border-color-selected:var(--lf-accent) !important;
|
| 148 |
+
--checkbox-check: var(--lf-accent) !important;
|
| 149 |
}
|
| 150 |
|
| 151 |
/* Typography β serif for headings to match Claude's Tiempos-style hero */
|
|
|
|
| 301 |
border-radius: 8px !important;
|
| 302 |
}
|
| 303 |
|
| 304 |
+
/* Inputs + selects + textareas + dropdowns β clearly bordered */
|
| 305 |
.gradio-container input[type="text"],
|
| 306 |
.gradio-container input[type="number"],
|
| 307 |
.gradio-container input[type="password"],
|
| 308 |
.gradio-container select,
|
| 309 |
+
.gradio-container textarea,
|
| 310 |
+
.gradio-container .wrap-inner,
|
| 311 |
+
.gradio-container [role="combobox"],
|
| 312 |
+
.gradio-container .dropdown > div,
|
| 313 |
+
.gradio-container [data-testid="dropdown"] > div {
|
| 314 |
border: 1px solid var(--lf-border) !important;
|
| 315 |
+
background: var(--lf-surface-alt) !important;
|
| 316 |
color: var(--lf-text) !important;
|
| 317 |
border-radius: 8px !important;
|
| 318 |
font-family: "Inter", sans-serif !important;
|
| 319 |
font-size: 0.92rem !important;
|
| 320 |
+
min-height: 38px !important;
|
| 321 |
+
box-sizing: border-box !important;
|
| 322 |
+
transition: border-color 0.15s, box-shadow 0.15s !important;
|
| 323 |
+
}
|
| 324 |
+
.gradio-container input[type="text"],
|
| 325 |
+
.gradio-container input[type="number"],
|
| 326 |
+
.gradio-container input[type="password"],
|
| 327 |
+
.gradio-container textarea {
|
| 328 |
padding: 0.55rem 0.75rem !important;
|
|
|
|
| 329 |
}
|
| 330 |
.gradio-container input:focus,
|
| 331 |
.gradio-container textarea:focus,
|
| 332 |
+
.gradio-container select:focus,
|
| 333 |
+
.gradio-container [role="combobox"]:focus-within {
|
| 334 |
border-color: var(--lf-accent) !important;
|
| 335 |
outline: none !important;
|
| 336 |
+
box-shadow: 0 0 0 3px rgba(226,135,99,0.18) !important;
|
| 337 |
+
}
|
| 338 |
+
|
| 339 |
+
/* Number input wrapper (Gradio renders a wrapper around input+reset) β
|
| 340 |
+
give it enough room so "0.7" doesn't clip */
|
| 341 |
+
.gradio-container .number-input-container,
|
| 342 |
+
.gradio-container input[type="number"] {
|
| 343 |
+
min-width: 72px !important;
|
| 344 |
+
text-align: left !important;
|
| 345 |
+
}
|
| 346 |
+
.gradio-container input[type="number"] {
|
| 347 |
+
padding-right: 0.4rem !important;
|
| 348 |
}
|
| 349 |
|
| 350 |
/* Labels β kill the accent-coloured "chip" treatment Gradio 5 applies,
|