Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -409,6 +409,73 @@ footer {
|
|
| 409 |
-webkit-text-fill-color: #4d6272 !important;
|
| 410 |
opacity: 1 !important;
|
| 411 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 412 |
"""
|
| 413 |
|
| 414 |
def guess_title(notes):
|
|
|
|
| 409 |
-webkit-text-fill-color: #4d6272 !important;
|
| 410 |
opacity: 1 !important;
|
| 411 |
}
|
| 412 |
+
|
| 413 |
+
/* =========================================================
|
| 414 |
+
GRADIO 6 LIGHT-THEME ENFORCEMENT
|
| 415 |
+
In Gradio 6 + Svelte 5, the .block and .form wrappers
|
| 416 |
+
around components (Textbox, Markdown, etc.) default to a
|
| 417 |
+
dark fill when the browser is in dark mode or when CSS
|
| 418 |
+
variables resolve to dark values. This makes the area
|
| 419 |
+
AROUND the textbox look black on light pages. We pin all
|
| 420 |
+
the relevant CSS variables to light values and force the
|
| 421 |
+
wrapper backgrounds explicitly. */
|
| 422 |
+
.gradio-container,
|
| 423 |
+
.gradio-container * {
|
| 424 |
+
--block-background-fill: #ffffff !important;
|
| 425 |
+
--block-border-color: #d7dde5 !important;
|
| 426 |
+
--block-label-background-fill: transparent !important;
|
| 427 |
+
--block-label-text-color: #173a59 !important;
|
| 428 |
+
--block-title-text-color: #173a59 !important;
|
| 429 |
+
--body-background-fill: transparent !important;
|
| 430 |
+
--background-fill-primary: #ffffff !important;
|
| 431 |
+
--background-fill-secondary: #f5f8fb !important;
|
| 432 |
+
--panel-background-fill: #ffffff !important;
|
| 433 |
+
--input-background-fill: #ffffff !important;
|
| 434 |
+
--input-border-color: #ccd5de !important;
|
| 435 |
+
--color-accent-soft: #eef4f8 !important;
|
| 436 |
+
--neutral-50: #f8fafc !important;
|
| 437 |
+
--neutral-100: #f1f5f9 !important;
|
| 438 |
+
--neutral-200: #e2e8f0 !important;
|
| 439 |
+
}
|
| 440 |
+
|
| 441 |
+
/* Force every block/form/wrap to render light */
|
| 442 |
+
.gradio-container .block,
|
| 443 |
+
.gradio-container .form,
|
| 444 |
+
.gradio-container .wrap,
|
| 445 |
+
.gradio-container [class*="block-"],
|
| 446 |
+
.gradio-container [data-testid="block-info"] {
|
| 447 |
+
background: #ffffff !important;
|
| 448 |
+
background-color: #ffffff !important;
|
| 449 |
+
border-color: #d7dde5 !important;
|
| 450 |
+
color: #173a59 !important;
|
| 451 |
+
}
|
| 452 |
+
|
| 453 |
+
/* The column/row containers themselves stay transparent so the
|
| 454 |
+
page background shows through (matching the surrounding panels). */
|
| 455 |
+
.gradio-container .gr-column,
|
| 456 |
+
.gradio-container .gr-row,
|
| 457 |
+
.gradio-container > .main,
|
| 458 |
+
.gradio-container > .main > .wrap {
|
| 459 |
+
background: transparent !important;
|
| 460 |
+
background-color: transparent !important;
|
| 461 |
+
}
|
| 462 |
+
|
| 463 |
+
/* Labels (the "Raw Stakeholder Notes" text) — dark on light */
|
| 464 |
+
.gradio-container label,
|
| 465 |
+
.gradio-container label *,
|
| 466 |
+
.gradio-container .label-wrap,
|
| 467 |
+
.gradio-container .label-wrap *,
|
| 468 |
+
.gradio-container span[data-testid="block-info"],
|
| 469 |
+
.gradio-container .block > .label,
|
| 470 |
+
.gradio-container .block > label > span,
|
| 471 |
+
.gradio-container .block > label > .label {
|
| 472 |
+
color: #173a59 !important;
|
| 473 |
+
-webkit-text-fill-color: #173a59 !important;
|
| 474 |
+
background: transparent !important;
|
| 475 |
+
background-color: transparent !important;
|
| 476 |
+
opacity: 1 !important;
|
| 477 |
+
font-weight: 700 !important;
|
| 478 |
+
}
|
| 479 |
"""
|
| 480 |
|
| 481 |
def guess_title(notes):
|