Preview-vs-save flow, interactive recreate checkbox, top status message
Browse files
app.py
CHANGED
|
@@ -299,9 +299,36 @@ CUSTOM_CSS = """
|
|
| 299 |
--paper:#f4eee1; --kraft:#e4d5b7; --kraft-deep:#d6c19a; --line:#cdbb95;
|
| 300 |
--ink:#33312b; --ink-soft:rgba(51,49,43,.62); --forest:#3d6a55; --forest-ink:#20392d; --amber:#e0913a;
|
| 301 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 302 |
.gradio-container{max-width:880px !important;margin:auto !important;
|
| 303 |
-
font-family:'Archivo',system-ui,sans-serif !important;background:var(--paper) !important;}
|
| 304 |
-
.gradio-container .prose, .gradio-container
|
|
|
|
|
|
|
| 305 |
.bs-hero{position:relative;overflow:hidden;background:var(--kraft);border:2px solid var(--ink);
|
| 306 |
box-shadow:6px 6px 0 var(--ink);padding:30px 34px;margin-bottom:22px;}
|
| 307 |
.bs-hero .kick{font-family:'Spline Sans Mono',monospace;font-size:12px;letter-spacing:.24em;
|
|
@@ -322,8 +349,10 @@ button.primary, .bs-generate button{background:var(--forest) !important;border:2
|
|
| 322 |
.bs-linkedin{display:inline-block;background:var(--ink);color:var(--paper) !important;text-decoration:none;
|
| 323 |
font-weight:800;padding:11px 20px;border:2px solid var(--ink);box-shadow:3px 3px 0 var(--amber);}
|
| 324 |
input:not([type='checkbox']):not([type='radio']), textarea{border-radius:0 !important;
|
| 325 |
-
border:2px solid var(--ink) !important;background:#fff !important;
|
|
|
|
| 326 |
font-family:'Spline Sans Mono',monospace !important;}
|
|
|
|
| 327 |
footer{display:none !important;}
|
| 328 |
"""
|
| 329 |
|
|
|
|
| 299 |
--paper:#f4eee1; --kraft:#e4d5b7; --kraft-deep:#d6c19a; --line:#cdbb95;
|
| 300 |
--ink:#33312b; --ink-soft:rgba(51,49,43,.62); --forest:#3d6a55; --forest-ink:#20392d; --amber:#e0913a;
|
| 301 |
}
|
| 302 |
+
/* Theme-proof: force the light "paper" look for ALL visitors, even on Gradio dark mode.
|
| 303 |
+
We override Gradio's theme CSS variables for both :root and .dark so blocks, inputs,
|
| 304 |
+
labels and text never go dark-on-dark or light-on-light. */
|
| 305 |
+
.gradio-container, .dark, body, body.dark{
|
| 306 |
+
color-scheme: light !important;
|
| 307 |
+
--body-background-fill:#f4eee1 !important;
|
| 308 |
+
--background-fill-primary:#ffffff !important;
|
| 309 |
+
--background-fill-secondary:#efe7d4 !important;
|
| 310 |
+
--block-background-fill:#ffffff !important;
|
| 311 |
+
--block-label-background-fill:#efe7d4 !important;
|
| 312 |
+
--panel-background-fill:#efe7d4 !important;
|
| 313 |
+
--block-label-text-color:#33312b !important;
|
| 314 |
+
--block-title-text-color:#33312b !important;
|
| 315 |
+
--block-info-text-color:rgba(51,49,43,.62) !important;
|
| 316 |
+
--body-text-color:#33312b !important;
|
| 317 |
+
--body-text-color-subdued:rgba(51,49,43,.60) !important;
|
| 318 |
+
--input-background-fill:#ffffff !important;
|
| 319 |
+
--input-text-color:#33312b !important;
|
| 320 |
+
--input-placeholder-color:rgba(51,49,43,.45) !important;
|
| 321 |
+
--border-color-primary:#33312b !important;
|
| 322 |
+
--checkbox-background-color:#ffffff !important;
|
| 323 |
+
--checkbox-background-color-selected:#3d6a55 !important;
|
| 324 |
+
--checkbox-border-color:#33312b !important;
|
| 325 |
+
--link-text-color:#3d6a55 !important;
|
| 326 |
+
}
|
| 327 |
.gradio-container{max-width:880px !important;margin:auto !important;
|
| 328 |
+
font-family:'Archivo',system-ui,sans-serif !important;background:var(--paper) !important;color:var(--ink) !important;}
|
| 329 |
+
.gradio-container .prose, .gradio-container .prose *, .gradio-container label,
|
| 330 |
+
.gradio-container p, .gradio-container span, .gradio-container .md{color:var(--ink) !important;}
|
| 331 |
+
.gradio-container .prose strong{color:var(--ink) !important;}
|
| 332 |
.bs-hero{position:relative;overflow:hidden;background:var(--kraft);border:2px solid var(--ink);
|
| 333 |
box-shadow:6px 6px 0 var(--ink);padding:30px 34px;margin-bottom:22px;}
|
| 334 |
.bs-hero .kick{font-family:'Spline Sans Mono',monospace;font-size:12px;letter-spacing:.24em;
|
|
|
|
| 349 |
.bs-linkedin{display:inline-block;background:var(--ink);color:var(--paper) !important;text-decoration:none;
|
| 350 |
font-weight:800;padding:11px 20px;border:2px solid var(--ink);box-shadow:3px 3px 0 var(--amber);}
|
| 351 |
input:not([type='checkbox']):not([type='radio']), textarea{border-radius:0 !important;
|
| 352 |
+
border:2px solid var(--ink) !important;background:#fff !important;color:var(--ink) !important;
|
| 353 |
+
-webkit-text-fill-color:var(--ink) !important;
|
| 354 |
font-family:'Spline Sans Mono',monospace !important;}
|
| 355 |
+
input::placeholder, textarea::placeholder{color:rgba(51,49,43,.45) !important;-webkit-text-fill-color:rgba(51,49,43,.45) !important;}
|
| 356 |
footer{display:none !important;}
|
| 357 |
"""
|
| 358 |
|