Spaces:
Sleeping
Sleeping
Update after-hours.css
Browse files- after-hours.css +248 -249
after-hours.css
CHANGED
|
@@ -1,31 +1,34 @@
|
|
| 1 |
-
/* uglytool —
|
| 2 |
*
|
| 3 |
* Drop-in CSS for a Gradio Space. In your app:
|
| 4 |
-
* with open("
|
| 5 |
* custom_css = f.read()
|
| 6 |
* with gr.Blocks(css=custom_css) as app:
|
| 7 |
* ...
|
| 8 |
*
|
| 9 |
* What's new vs. v1 (the live version):
|
| 10 |
-
* 1. Layered
|
| 11 |
* 2. Generous radii — 18px / 12px / 8px system.
|
| 12 |
-
* 3.
|
| 13 |
-
* 4. Translucent surfaces with backdrop-blur —
|
| 14 |
-
* 5. Tabular numerals
|
| 15 |
* 6. Letterspaced uppercase labels at 0.78rem / weight 600 (legibility-tuned).
|
| 16 |
-
* 7. Tonal
|
| 17 |
-
* 8. Three-tier heading color hierarchy in the
|
| 18 |
-
* 9. Custom-styled select with inline-SVG
|
| 19 |
-
* 10.
|
| 20 |
-
* 11.
|
|
|
|
|
|
|
|
|
|
| 21 |
*
|
| 22 |
* Browser requirements: backdrop-filter (Chrome 76+, Safari 14+, Firefox 103+).
|
| 23 |
*/
|
| 24 |
|
| 25 |
-
@import url('https://fonts.googleapis.com/css2?family=
|
| 26 |
|
| 27 |
/* ============================================================
|
| 28 |
-
* Part 1 — Variables ·
|
| 29 |
* ============================================================ */
|
| 30 |
|
| 31 |
:root,
|
|
@@ -33,111 +36,109 @@
|
|
| 33 |
.gradio-container,
|
| 34 |
.gradio-container.dark,
|
| 35 |
body.dark {
|
| 36 |
-
/* Palette —
|
| 37 |
-
--
|
| 38 |
-
--
|
| 39 |
-
--
|
| 40 |
-
--
|
| 41 |
-
--
|
| 42 |
-
--
|
| 43 |
-
--
|
| 44 |
-
--
|
| 45 |
-
--
|
| 46 |
-
|
| 47 |
-
--
|
| 48 |
-
--
|
| 49 |
-
--
|
| 50 |
-
--
|
| 51 |
-
--
|
| 52 |
-
--
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
--
|
| 56 |
-
|
| 57 |
-
--
|
| 58 |
-
--
|
| 59 |
-
--vl-muted: #6b5e58;
|
| 60 |
-
--vl-dim: #8a7e76;
|
| 61 |
|
| 62 |
/* Geometry */
|
| 63 |
-
--
|
| 64 |
-
--
|
| 65 |
-
--
|
| 66 |
-
--
|
| 67 |
|
| 68 |
-
/* Shadows —
|
| 69 |
-
--
|
| 70 |
-
0 0 0 1px rgba(255, 255, 255, 0.
|
| 71 |
-
--
|
| 72 |
-
--
|
| 73 |
|
| 74 |
/* Motion */
|
| 75 |
-
--
|
| 76 |
|
| 77 |
/* Gradio CSS variables — engine override hooks */
|
| 78 |
-
--body-background-fill: var(--
|
| 79 |
-
--background-fill-primary: var(--
|
| 80 |
-
--background-fill-secondary: var(--
|
| 81 |
-
--body-text-color: var(--
|
| 82 |
-
--body-text-color-subdued: var(--
|
| 83 |
-
--color-accent: var(--
|
| 84 |
-
--color-accent-soft: var(--
|
| 85 |
-
--border-color-primary: var(--
|
| 86 |
-
--border-color-accent: var(--
|
| 87 |
-
|
| 88 |
-
--block-background-fill: var(--
|
| 89 |
-
--block-border-color: var(--
|
| 90 |
--block-border-width: 1px;
|
| 91 |
-
--block-radius: var(--
|
| 92 |
-
--block-shadow: var(--
|
| 93 |
|
| 94 |
--block-title-background-fill: transparent;
|
| 95 |
--block-title-border-color: transparent;
|
| 96 |
-
--block-title-text-color: var(--
|
| 97 |
-
--block-title-text-size: 1.
|
| 98 |
--block-title-text-weight: 700;
|
| 99 |
--block-label-background-fill: transparent;
|
| 100 |
--block-label-border-color: transparent;
|
| 101 |
-
--block-label-text-color: var(--
|
| 102 |
--block-label-text-size: 0.78rem;
|
| 103 |
--block-label-text-weight: 600;
|
| 104 |
|
| 105 |
-
--input-background-fill: var(--
|
| 106 |
-
--input-background-fill-focus: var(--
|
| 107 |
-
--input-border-color: var(--
|
| 108 |
-
--input-border-color-focus: var(--
|
| 109 |
--input-text-size: 0.92rem;
|
| 110 |
-
--input-radius: var(--
|
| 111 |
|
| 112 |
-
--button-primary-background-fill: var(--
|
| 113 |
-
--button-primary-background-fill-hover: var(--
|
| 114 |
-
--button-primary-text-color:
|
| 115 |
--button-primary-text-color-hover: #ffffff;
|
| 116 |
-
--button-primary-border-color: var(--
|
| 117 |
-
--button-secondary-background-fill: var(--
|
| 118 |
-
--button-secondary-background-fill-hover: var(--
|
| 119 |
-
--button-secondary-text-color: var(--
|
| 120 |
-
--button-secondary-text-color-hover: var(--
|
| 121 |
-
--button-secondary-border-color: var(--
|
| 122 |
-
--button-large-text-size: 0.
|
| 123 |
--button-large-text-weight: 600;
|
| 124 |
-
--button-large-radius: var(--
|
| 125 |
|
| 126 |
-
--slider-color: var(--
|
| 127 |
|
| 128 |
-
--font: '
|
| 129 |
-
--font-mono: '
|
| 130 |
|
| 131 |
--radius-xxs: 2px;
|
| 132 |
--radius-xs: 4px;
|
| 133 |
-
--radius-sm: var(--
|
| 134 |
-
--radius-md: var(--
|
| 135 |
-
--radius-lg: var(--
|
| 136 |
}
|
| 137 |
|
| 138 |
/* ============================================================
|
| 139 |
-
* Part 2 — Root containers · LAYERED BACKGROUND
|
| 140 |
-
*
|
| 141 |
* ============================================================ */
|
| 142 |
|
| 143 |
html body,
|
|
@@ -148,12 +149,12 @@ html body .stApp,
|
|
| 148 |
html body .stApp > div,
|
| 149 |
html body [data-testid="stAppViewContainer"] {
|
| 150 |
background:
|
| 151 |
-
radial-gradient(ellipse 80% 60% at 90% 0%, rgba(
|
| 152 |
-
radial-gradient(ellipse 60% 50% at 10% 100%, rgba(
|
| 153 |
-
linear-gradient(180deg, var(--
|
| 154 |
background-attachment: fixed !important;
|
| 155 |
-
color: var(--
|
| 156 |
-
font-family: '
|
| 157 |
line-height: 1.6 !important;
|
| 158 |
}
|
| 159 |
|
|
@@ -163,8 +164,7 @@ html body .stApp [data-testid="stVerticalBlock"] {
|
|
| 163 |
}
|
| 164 |
|
| 165 |
/* ============================================================
|
| 166 |
-
* Part 3 — Typography
|
| 167 |
-
* Playfair Display titles, three-tier clay/taupe hierarchy.
|
| 168 |
* ============================================================ */
|
| 169 |
|
| 170 |
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
|
|
@@ -184,11 +184,11 @@ html body [data-testid="stMarkdownContainer"] h3,
|
|
| 184 |
html body [data-testid="stMarkdownContainer"] h1 *,
|
| 185 |
html body [data-testid="stMarkdownContainer"] h2 *,
|
| 186 |
html body [data-testid="stMarkdownContainer"] h3 * {
|
| 187 |
-
font-family: '
|
| 188 |
font-weight: 700 !important;
|
| 189 |
letter-spacing: -0.02em !important;
|
| 190 |
-
color: var(--
|
| 191 |
-
-webkit-text-fill-color: var(--
|
| 192 |
background-image: none !important;
|
| 193 |
background-clip: unset !important;
|
| 194 |
-webkit-background-clip: unset !important;
|
|
@@ -196,15 +196,16 @@ html body [data-testid="stMarkdownContainer"] h3 * {
|
|
| 196 |
}
|
| 197 |
|
| 198 |
html body h1, html body .gradio-container h1, html body .stApp h1 {
|
| 199 |
-
font-size: 2.
|
| 200 |
margin-bottom: 0.4em !important;
|
| 201 |
-
|
| 202 |
-
|
|
|
|
| 203 |
}
|
| 204 |
html body h2, html body .gradio-container h2, html body .stApp h2 {
|
| 205 |
-
font-size: 1.
|
| 206 |
-
color: var(--
|
| 207 |
-
-webkit-text-fill-color: var(--
|
| 208 |
}
|
| 209 |
html body h3, html body .gradio-container h3, html body .stApp h3,
|
| 210 |
html body h4, html body .gradio-container h4, html body .stApp h4,
|
|
@@ -214,23 +215,15 @@ html body [data-testid="stMarkdownContainer"] h3,
|
|
| 214 |
html body [data-testid="stMarkdownContainer"] h3 *,
|
| 215 |
html body .gr-markdown h3, html body .gr-markdown h3 *,
|
| 216 |
html body .markdown h3, html body .markdown h3 * {
|
| 217 |
-
font-size: 1.
|
| 218 |
-
letter-spacing: -0.
|
| 219 |
font-weight: 500 !important;
|
| 220 |
-
|
| 221 |
-
color: var(--
|
| 222 |
-
-webkit-text-fill-color: var(--vl-taupe) !important;
|
| 223 |
-
}
|
| 224 |
-
|
| 225 |
-
html body em,
|
| 226 |
-
html body .gradio-container em,
|
| 227 |
-
html body .stApp em {
|
| 228 |
-
font-style: italic !important;
|
| 229 |
-
color: var(--vl-ink) !important;
|
| 230 |
}
|
| 231 |
|
| 232 |
/* ============================================================
|
| 233 |
-
* Part 4 — Labels · letterspaced uppercase, legibility-tuned
|
| 234 |
* ============================================================ */
|
| 235 |
|
| 236 |
html body .gradio-container .block-label,
|
|
@@ -245,27 +238,27 @@ html body .stApp label,
|
|
| 245 |
html body .stApp [data-testid="stWidgetLabel"],
|
| 246 |
html body .stApp [data-testid="stWidgetLabel"] > *,
|
| 247 |
html body .stApp [data-testid="stWidgetLabel"] p {
|
| 248 |
-
font-family: '
|
| 249 |
font-size: 0.78rem !important;
|
| 250 |
-
color: var(--
|
| 251 |
letter-spacing: 0.13em !important;
|
| 252 |
text-transform: uppercase !important;
|
| 253 |
font-weight: 600 !important;
|
| 254 |
background: transparent !important;
|
| 255 |
}
|
| 256 |
|
| 257 |
-
html body .gradio-container .
|
| 258 |
-
html body .stApp .
|
| 259 |
-
font-family: '
|
| 260 |
font-size: 0.7rem !important;
|
| 261 |
-
color: var(--
|
| 262 |
-
letter-spacing: 0.
|
| 263 |
text-transform: uppercase !important;
|
| 264 |
font-weight: 500 !important;
|
| 265 |
}
|
| 266 |
|
| 267 |
/* ============================================================
|
| 268 |
-
* Part 5 — Cards / blocks ·
|
| 269 |
* ============================================================ */
|
| 270 |
|
| 271 |
html body .gradio-container .block,
|
|
@@ -276,30 +269,30 @@ html body .gradio-container .gr-box,
|
|
| 276 |
html body .gradio-container .wrap,
|
| 277 |
html body .stApp [data-testid="stForm"],
|
| 278 |
html body .stApp [data-testid="stExpander"] {
|
| 279 |
-
background: var(--
|
| 280 |
-webkit-backdrop-filter: blur(18px) saturate(120%) !important;
|
| 281 |
backdrop-filter: blur(18px) saturate(120%) !important;
|
| 282 |
-
border: 1px solid var(--
|
| 283 |
-
border-radius: var(--
|
| 284 |
-
box-shadow: var(--
|
| 285 |
-
padding:
|
| 286 |
-
transition: border-color var(--
|
| 287 |
}
|
| 288 |
|
| 289 |
html body .gradio-container .block:hover,
|
| 290 |
html body .stApp [data-testid="stForm"]:hover {
|
| 291 |
-
border-color: var(--
|
| 292 |
}
|
| 293 |
|
| 294 |
html body .gradio-container .block .block,
|
| 295 |
html body .gradio-container .block .gr-form {
|
| 296 |
-
background: rgba(255, 255, 255, 0.
|
| 297 |
box-shadow: none !important;
|
| 298 |
-
padding:
|
| 299 |
}
|
| 300 |
|
| 301 |
/* ============================================================
|
| 302 |
-
* Part 6 — Inputs ·
|
| 303 |
* ============================================================ */
|
| 304 |
|
| 305 |
html body .gradio-container input[type="text"],
|
|
@@ -317,21 +310,21 @@ html body .stApp input[type="number"],
|
|
| 317 |
html body .stApp textarea,
|
| 318 |
html body .stApp [data-baseweb="select"] > div,
|
| 319 |
html body .stApp [data-baseweb="input"] {
|
| 320 |
-
background: var(--
|
| 321 |
-
border: 1px solid var(--
|
| 322 |
-
border-radius: var(--
|
| 323 |
-
color: var(--
|
| 324 |
-
font-family: '
|
| 325 |
-
font-size: 0.
|
| 326 |
-
caret-color: var(--
|
| 327 |
padding: 13px 16px !important;
|
| 328 |
-
transition: border-color var(--
|
| 329 |
}
|
| 330 |
|
| 331 |
html body .gradio-container textarea,
|
| 332 |
html body .stApp textarea {
|
| 333 |
min-height: 130px !important;
|
| 334 |
-
line-height: 1.
|
| 335 |
}
|
| 336 |
|
| 337 |
html body .gradio-container input:focus,
|
|
@@ -339,28 +332,30 @@ html body .gradio-container textarea:focus,
|
|
| 339 |
html body .gradio-container select:focus,
|
| 340 |
html body .stApp input:focus,
|
| 341 |
html body .stApp textarea:focus {
|
| 342 |
-
border-color: var(--
|
| 343 |
outline: none !important;
|
| 344 |
-
box-shadow: 0 0 0 3px var(--
|
| 345 |
-
0 0
|
| 346 |
}
|
| 347 |
|
| 348 |
html body .gradio-container ::placeholder,
|
| 349 |
html body .stApp ::placeholder {
|
| 350 |
-
color: var(--
|
| 351 |
-
font-style: italic !important;
|
| 352 |
}
|
| 353 |
|
| 354 |
html body .gradio-container select,
|
| 355 |
html body .gradio-container .gr-dropdown select {
|
| 356 |
appearance: none !important;
|
| 357 |
-webkit-appearance: none !important;
|
| 358 |
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 7 6-7z' fill='%
|
| 359 |
background-repeat: no-repeat !important;
|
| 360 |
background-position: right 14px center !important;
|
| 361 |
padding-right: 38px !important;
|
| 362 |
}
|
| 363 |
|
|
|
|
|
|
|
|
|
|
| 364 |
html body .gradio-container .gr-number input,
|
| 365 |
html body .gradio-container [class*="number"] input,
|
| 366 |
html body .gradio-container .output-number,
|
|
@@ -369,11 +364,16 @@ html body .stApp [data-testid="stMetricValue"],
|
|
| 369 |
html body .stApp [data-testid="stNumberInput"] input {
|
| 370 |
font-variant-numeric: tabular-nums !important;
|
| 371 |
font-feature-settings: 'tnum' !important;
|
| 372 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 373 |
}
|
| 374 |
|
| 375 |
/* ============================================================
|
| 376 |
-
* Part 7 — Buttons ·
|
| 377 |
* ============================================================ */
|
| 378 |
|
| 379 |
html body .gradio-container button,
|
|
@@ -383,52 +383,53 @@ html body .gradio-container button.primary,
|
|
| 383 |
html body .gradio-container .primary,
|
| 384 |
html body .stApp .stButton > button,
|
| 385 |
html body .stApp button[kind="primary"] {
|
| 386 |
-
background: var(--
|
| 387 |
-
color:
|
| 388 |
-
font-family: '
|
| 389 |
-
font-weight:
|
| 390 |
-
font-size: 0.
|
| 391 |
-
letter-spacing: 0.
|
| 392 |
border: none !important;
|
| 393 |
-
border-radius: var(--
|
| 394 |
padding: 13px 28px !important;
|
| 395 |
cursor: pointer !important;
|
| 396 |
-
box-shadow: 0 6px
|
| 397 |
0 0 0 1px rgba(255, 255, 255, 0.10) inset !important;
|
| 398 |
transition: transform 100ms ease,
|
| 399 |
-
box-shadow var(--
|
| 400 |
-
background var(--
|
| 401 |
}
|
| 402 |
|
| 403 |
html body .gradio-container button:hover,
|
| 404 |
html body .gradio-container .gr-button:hover,
|
| 405 |
html body .stApp .stButton > button:hover {
|
| 406 |
-
background: var(--
|
| 407 |
color: #ffffff !important;
|
| 408 |
-
box-shadow: 0 12px 28px rgba(
|
| 409 |
-
0 0 0 1px rgba(255, 255, 255, 0.14) inset
|
|
|
|
| 410 |
}
|
| 411 |
|
| 412 |
html body .gradio-container button:active,
|
| 413 |
html body .stApp .stButton > button:active {
|
| 414 |
transform: scale(0.985) !important;
|
| 415 |
-
background: var(--
|
| 416 |
}
|
| 417 |
|
| 418 |
html body .gradio-container button.secondary,
|
| 419 |
html body .gradio-container .secondary,
|
| 420 |
html body .stApp button[kind="secondary"] {
|
| 421 |
-
background: var(--
|
| 422 |
-
color: var(--
|
| 423 |
-
border: 1px solid var(--
|
| 424 |
-
box-shadow: 0 4px
|
| 425 |
}
|
| 426 |
|
| 427 |
html body .gradio-container button.secondary:hover,
|
| 428 |
html body .stApp button[kind="secondary"]:hover {
|
| 429 |
-
background: var(--
|
| 430 |
-
border-color: var(--
|
| 431 |
-
color: var(--
|
| 432 |
}
|
| 433 |
|
| 434 |
/* ============================================================
|
|
@@ -436,26 +437,26 @@ html body .stApp button[kind="secondary"]:hover {
|
|
| 436 |
* ============================================================ */
|
| 437 |
|
| 438 |
html body input[type="range"] {
|
| 439 |
-
accent-color: var(--
|
| 440 |
height: 4px !important;
|
| 441 |
}
|
| 442 |
html body input[type="range"]::-webkit-slider-thumb {
|
| 443 |
-
background: var(--
|
| 444 |
-
border: 2px solid var(--
|
| 445 |
-
box-shadow: 0 0 0 1px rgba(
|
| 446 |
-
0 2px 8px rgba(
|
| 447 |
width: 16px !important;
|
| 448 |
height: 16px !important;
|
| 449 |
}
|
| 450 |
html body input[type="range"]::-moz-range-thumb {
|
| 451 |
-
background: var(--
|
| 452 |
-
border: 2px solid var(--
|
| 453 |
width: 16px !important;
|
| 454 |
height: 16px !important;
|
| 455 |
}
|
| 456 |
html body input[type="checkbox"],
|
| 457 |
html body input[type="radio"] {
|
| 458 |
-
accent-color: var(--
|
| 459 |
width: 15px !important;
|
| 460 |
height: 15px !important;
|
| 461 |
}
|
|
@@ -468,119 +469,117 @@ html body .gradio-container .gr-file-upload,
|
|
| 468 |
html body .gradio-container input[type="file"],
|
| 469 |
html body .stApp [data-testid="stFileUploader"],
|
| 470 |
html body .stApp [data-testid="stFileUploaderDropzone"] {
|
| 471 |
-
background: var(--
|
| 472 |
-
border: 1px dashed var(--
|
| 473 |
-
border-radius: var(--
|
| 474 |
-
color: var(--
|
| 475 |
-
transition: background var(--
|
| 476 |
-
border-color var(--
|
| 477 |
}
|
| 478 |
html body .gradio-container .gr-file-upload:hover,
|
| 479 |
html body .stApp [data-testid="stFileUploader"]:hover {
|
| 480 |
-
background: var(--
|
| 481 |
-
border-color: var(--
|
| 482 |
}
|
| 483 |
|
| 484 |
html body input[type="file"]::file-selector-button {
|
| 485 |
-
background: var(--
|
| 486 |
-
color: var(--
|
| 487 |
-
border: 1px solid var(--
|
| 488 |
-
border-radius: var(--
|
| 489 |
padding: 7px 14px !important;
|
| 490 |
margin-right: 14px !important;
|
| 491 |
-
font-family: '
|
| 492 |
font-size: 0.78rem !important;
|
| 493 |
-
letter-spacing: 0.
|
| 494 |
cursor: pointer !important;
|
| 495 |
}
|
| 496 |
|
| 497 |
/* ============================================================
|
| 498 |
-
* Part 10 — Markdown, code, links ·
|
| 499 |
* ============================================================ */
|
| 500 |
|
| 501 |
html body .gradio-container .markdown,
|
| 502 |
html body .gradio-container .gr-markdown,
|
| 503 |
html body .gradio-container .prose,
|
| 504 |
html body .stApp [data-testid="stMarkdownContainer"] {
|
| 505 |
-
color: var(--
|
| 506 |
-
font-family: '
|
| 507 |
-
line-height: 1.
|
| 508 |
-
font-size: 0.
|
| 509 |
}
|
| 510 |
|
| 511 |
html body .gradio-container a,
|
| 512 |
html body .stApp a {
|
| 513 |
-
color: var(--
|
| 514 |
text-decoration: none !important;
|
| 515 |
-
border-bottom: 1px solid var(--
|
| 516 |
-
transition: border-color var(--
|
| 517 |
}
|
| 518 |
html body .gradio-container a:hover,
|
| 519 |
html body .stApp a:hover {
|
| 520 |
-
color: var(--
|
| 521 |
-
border-bottom-color: var(--
|
| 522 |
}
|
| 523 |
|
| 524 |
html body code,
|
| 525 |
html body .gradio-container code,
|
| 526 |
html body .stApp code {
|
| 527 |
-
background: var(--
|
| 528 |
-
color: var(--
|
| 529 |
-
font-family: '
|
| 530 |
font-size: 0.86em !important;
|
| 531 |
padding: 2px 7px !important;
|
| 532 |
-
border-radius: var(--
|
| 533 |
-
border: 1px solid var(--
|
| 534 |
}
|
| 535 |
|
| 536 |
html body pre code,
|
| 537 |
html body .gradio-container pre code {
|
| 538 |
-
border: 1px solid var(--
|
| 539 |
-
background: var(--
|
| 540 |
display: block !important;
|
| 541 |
padding: 14px 16px !important;
|
| 542 |
-
border-radius: var(--
|
| 543 |
line-height: 1.55 !important;
|
| 544 |
-
color: var(--
|
| 545 |
}
|
| 546 |
|
| 547 |
html body blockquote,
|
| 548 |
html body .gradio-container blockquote,
|
| 549 |
html body .stApp blockquote {
|
| 550 |
-
border-left: 2px solid var(--
|
| 551 |
padding-left: 18px !important;
|
| 552 |
-
|
| 553 |
-
color: var(--vl-muted) !important;
|
| 554 |
margin: 18px 0 !important;
|
| 555 |
}
|
| 556 |
|
| 557 |
/* ============================================================
|
| 558 |
-
* Part 11 — Callout /
|
| 559 |
-
* Use class .
|
|
|
|
| 560 |
* ============================================================ */
|
| 561 |
|
| 562 |
-
html body .
|
| 563 |
-
html body .gradio-container .
|
| 564 |
-
html body .stApp .
|
| 565 |
html body .gradio-container [class*="info"]:not(button):not(input),
|
| 566 |
html body .stApp .stAlert {
|
| 567 |
-
background: var(--
|
| 568 |
-
border: 1px solid var(--
|
| 569 |
-
border-radius: var(--
|
| 570 |
padding: 14px 18px !important;
|
| 571 |
-
font-size: 0.
|
| 572 |
-
color: var(--
|
| 573 |
-
font-family: '
|
| 574 |
-
line-height: 1.
|
| 575 |
-
font-style: italic !important;
|
| 576 |
}
|
| 577 |
|
| 578 |
-
html body .
|
| 579 |
-
html body .gradio-container .
|
| 580 |
-
html body .stApp .
|
| 581 |
-
color: var(--
|
| 582 |
-
font-
|
| 583 |
-
font-weight: 600 !important;
|
| 584 |
}
|
| 585 |
|
| 586 |
/* ============================================================
|
|
@@ -592,26 +591,26 @@ html body ::-webkit-scrollbar-track {
|
|
| 592 |
background: transparent;
|
| 593 |
}
|
| 594 |
html body ::-webkit-scrollbar-thumb {
|
| 595 |
-
background: rgba(
|
| 596 |
-
border-radius: var(--
|
| 597 |
border: 2px solid transparent;
|
| 598 |
background-clip: padding-box;
|
| 599 |
}
|
| 600 |
html body ::-webkit-scrollbar-thumb:hover {
|
| 601 |
-
background: rgba(
|
| 602 |
background-clip: padding-box;
|
| 603 |
border: 2px solid transparent;
|
| 604 |
}
|
| 605 |
|
| 606 |
html body .stApp header[data-testid="stHeader"] {
|
| 607 |
-
background: rgba(
|
| 608 |
-webkit-backdrop-filter: blur(14px) !important;
|
| 609 |
backdrop-filter: blur(14px) !important;
|
| 610 |
-
border-bottom: 1px solid var(--
|
| 611 |
}
|
| 612 |
html body .stApp [data-testid="stSidebar"] {
|
| 613 |
-
background: var(--
|
| 614 |
-
border-right: 1px solid var(--
|
| 615 |
}
|
| 616 |
|
| 617 |
/* ============================================================
|
|
@@ -622,21 +621,21 @@ html body hr,
|
|
| 622 |
html body .gradio-container hr,
|
| 623 |
html body .stApp hr {
|
| 624 |
border: none !important;
|
| 625 |
-
border-top: 1px solid var(--
|
| 626 |
margin: 24px 0 !important;
|
| 627 |
}
|
| 628 |
|
| 629 |
html body ::selection {
|
| 630 |
-
background: var(--
|
| 631 |
-
color: var(--
|
| 632 |
}
|
| 633 |
|
| 634 |
@media (prefers-reduced-motion: no-preference) {
|
| 635 |
html body .gradio-container .block,
|
| 636 |
html body .stApp [data-testid="stForm"] {
|
| 637 |
-
animation:
|
| 638 |
}
|
| 639 |
-
@keyframes
|
| 640 |
from { opacity: 0; transform: translateY(4px); }
|
| 641 |
to { opacity: 1; transform: translateY(0); }
|
| 642 |
}
|
|
|
|
| 1 |
+
/* uglytool — Clean Room · v4 (iteration draft, not deployed)
|
| 2 |
*
|
| 3 |
* Drop-in CSS for a Gradio Space. In your app:
|
| 4 |
+
* with open("cleanroom.css") as f:
|
| 5 |
* custom_css = f.read()
|
| 6 |
* with gr.Blocks(css=custom_css) as app:
|
| 7 |
* ...
|
| 8 |
*
|
| 9 |
* What's new vs. v1 (the live version):
|
| 10 |
+
* 1. Layered cool-white background — vertical gradient + very subtle blue radial top-right.
|
| 11 |
* 2. Generous radii — 18px / 12px / 8px system.
|
| 12 |
+
* 3. Cool soft shadow with subtle blue undertone — cards levitate clinically.
|
| 13 |
+
* 4. Translucent surfaces with backdrop-blur — instrument-panel feel.
|
| 14 |
+
* 5. Tabular numerals everywhere — this is THE numerals palette.
|
| 15 |
* 6. Letterspaced uppercase labels at 0.78rem / weight 600 (legibility-tuned).
|
| 16 |
+
* 7. Tonal blue family — blue/blue-deep/blue-bright/blue-rim/blue-soft.
|
| 17 |
+
* 8. Three-tier heading color hierarchy in the blue family + cool gray subtitle.
|
| 18 |
+
* 9. Custom-styled select with inline-SVG blue arrow.
|
| 19 |
+
* 10. Clinical typography — Plus Jakarta Sans + JetBrains Mono, NO italic moments.
|
| 20 |
+
* 11. Callout/info card variant in blue-soft (clinical, not editorial).
|
| 21 |
+
*
|
| 22 |
+
* Design metaphor: medical instrument panel, scientific dashboard, lab data viewer.
|
| 23 |
+
* The discipline is monochromatic blue + cool whites + tabular precision.
|
| 24 |
*
|
| 25 |
* Browser requirements: backdrop-filter (Chrome 76+, Safari 14+, Firefox 103+).
|
| 26 |
*/
|
| 27 |
|
| 28 |
+
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');
|
| 29 |
|
| 30 |
/* ============================================================
|
| 31 |
+
* Part 1 — Variables · monochromatic blue family
|
| 32 |
* ============================================================ */
|
| 33 |
|
| 34 |
:root,
|
|
|
|
| 36 |
.gradio-container,
|
| 37 |
.gradio-container.dark,
|
| 38 |
body.dark {
|
| 39 |
+
/* Palette — cool whites + monochromatic blue */
|
| 40 |
+
--cr-bg: #ffffff;
|
| 41 |
+
--cr-bg-tint: #fbfcfe; /* top of vertical gradient — cool white */
|
| 42 |
+
--cr-surface: rgba(255, 255, 255, 0.65); /* translucent — instrument panel */
|
| 43 |
+
--cr-surface-solid:#f7f8fa;
|
| 44 |
+
--cr-surface-cool: #eef2f6; /* deeper cool for nested */
|
| 45 |
+
--cr-border: rgba(17, 24, 39, 0.10);
|
| 46 |
+
--cr-border-strong:rgba(17, 24, 39, 0.18);
|
| 47 |
+
--cr-border-soft: rgba(17, 24, 39, 0.05);
|
| 48 |
+
--cr-border-focus: rgba(37, 99, 168, 0.55);
|
| 49 |
+
|
| 50 |
+
--cr-blue: #2563a8; /* brand */
|
| 51 |
+
--cr-blue-deep: #1e4d85; /* deeper, hover/h1 */
|
| 52 |
+
--cr-blue-bright: #3b7bc2; /* brighter, accents */
|
| 53 |
+
--cr-blue-soft: rgba(37, 99, 168, 0.08);
|
| 54 |
+
--cr-blue-dim: rgba(37, 99, 168, 0.04);
|
| 55 |
+
--cr-blue-rim: rgba(37, 99, 168, 0.22);
|
| 56 |
+
--cr-blue-tint: rgba(37, 99, 168, 0.12);
|
| 57 |
+
|
| 58 |
+
--cr-ink: #111827; /* near-black, clinical */
|
| 59 |
+
--cr-ink-strong: #0a0f1a;
|
| 60 |
+
--cr-muted: #6b7280;
|
| 61 |
+
--cr-dim: #9ca3af;
|
|
|
|
|
|
|
| 62 |
|
| 63 |
/* Geometry */
|
| 64 |
+
--cr-radius: 18px;
|
| 65 |
+
--cr-radius-sm: 12px;
|
| 66 |
+
--cr-radius-xs: 8px;
|
| 67 |
+
--cr-radius-pill: 999px;
|
| 68 |
|
| 69 |
+
/* Shadows — cool, with subtle blue undertone */
|
| 70 |
+
--cr-shadow: 0 24px 60px rgba(17, 32, 64, 0.07),
|
| 71 |
+
0 0 0 1px rgba(255, 255, 255, 0.6) inset;
|
| 72 |
+
--cr-shadow-sm: 0 6px 20px rgba(17, 32, 64, 0.05);
|
| 73 |
+
--cr-shadow-blue: 0 12px 28px rgba(37, 99, 168, 0.18);
|
| 74 |
|
| 75 |
/* Motion */
|
| 76 |
+
--cr-transition: 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
|
| 77 |
|
| 78 |
/* Gradio CSS variables — engine override hooks */
|
| 79 |
+
--body-background-fill: var(--cr-bg);
|
| 80 |
+
--background-fill-primary: var(--cr-surface-solid);
|
| 81 |
+
--background-fill-secondary: var(--cr-surface-cool);
|
| 82 |
+
--body-text-color: var(--cr-ink);
|
| 83 |
+
--body-text-color-subdued: var(--cr-muted);
|
| 84 |
+
--color-accent: var(--cr-blue);
|
| 85 |
+
--color-accent-soft: var(--cr-blue-soft);
|
| 86 |
+
--border-color-primary: var(--cr-border);
|
| 87 |
+
--border-color-accent: var(--cr-blue);
|
| 88 |
+
|
| 89 |
+
--block-background-fill: var(--cr-surface);
|
| 90 |
+
--block-border-color: var(--cr-border);
|
| 91 |
--block-border-width: 1px;
|
| 92 |
+
--block-radius: var(--cr-radius);
|
| 93 |
+
--block-shadow: var(--cr-shadow);
|
| 94 |
|
| 95 |
--block-title-background-fill: transparent;
|
| 96 |
--block-title-border-color: transparent;
|
| 97 |
+
--block-title-text-color: var(--cr-blue);
|
| 98 |
+
--block-title-text-size: 1.05rem;
|
| 99 |
--block-title-text-weight: 700;
|
| 100 |
--block-label-background-fill: transparent;
|
| 101 |
--block-label-border-color: transparent;
|
| 102 |
+
--block-label-text-color: var(--cr-blue);
|
| 103 |
--block-label-text-size: 0.78rem;
|
| 104 |
--block-label-text-weight: 600;
|
| 105 |
|
| 106 |
+
--input-background-fill: var(--cr-bg);
|
| 107 |
+
--input-background-fill-focus: var(--cr-bg);
|
| 108 |
+
--input-border-color: var(--cr-border-strong);
|
| 109 |
+
--input-border-color-focus: var(--cr-blue);
|
| 110 |
--input-text-size: 0.92rem;
|
| 111 |
+
--input-radius: var(--cr-radius-sm);
|
| 112 |
|
| 113 |
+
--button-primary-background-fill: var(--cr-blue);
|
| 114 |
+
--button-primary-background-fill-hover: var(--cr-blue-deep);
|
| 115 |
+
--button-primary-text-color: #ffffff;
|
| 116 |
--button-primary-text-color-hover: #ffffff;
|
| 117 |
+
--button-primary-border-color: var(--cr-blue);
|
| 118 |
+
--button-secondary-background-fill: var(--cr-bg);
|
| 119 |
+
--button-secondary-background-fill-hover: var(--cr-surface-cool);
|
| 120 |
+
--button-secondary-text-color: var(--cr-ink);
|
| 121 |
+
--button-secondary-text-color-hover: var(--cr-blue);
|
| 122 |
+
--button-secondary-border-color: var(--cr-border-strong);
|
| 123 |
+
--button-large-text-size: 0.92rem;
|
| 124 |
--button-large-text-weight: 600;
|
| 125 |
+
--button-large-radius: var(--cr-radius-sm);
|
| 126 |
|
| 127 |
+
--slider-color: var(--cr-blue);
|
| 128 |
|
| 129 |
+
--font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
|
| 130 |
+
--font-mono: 'JetBrains Mono', ui-monospace, monospace;
|
| 131 |
|
| 132 |
--radius-xxs: 2px;
|
| 133 |
--radius-xs: 4px;
|
| 134 |
+
--radius-sm: var(--cr-radius-xs);
|
| 135 |
+
--radius-md: var(--cr-radius-sm);
|
| 136 |
+
--radius-lg: var(--cr-radius);
|
| 137 |
}
|
| 138 |
|
| 139 |
/* ============================================================
|
| 140 |
+
* Part 2 — Root containers · LAYERED COOL-WHITE BACKGROUND
|
| 141 |
+
* Subtle blue radial — restraint is the move. Clinical, not editorial.
|
| 142 |
* ============================================================ */
|
| 143 |
|
| 144 |
html body,
|
|
|
|
| 149 |
html body .stApp > div,
|
| 150 |
html body [data-testid="stAppViewContainer"] {
|
| 151 |
background:
|
| 152 |
+
radial-gradient(ellipse 80% 60% at 90% 0%, rgba(37, 99, 168, 0.05), transparent 55%),
|
| 153 |
+
radial-gradient(ellipse 60% 50% at 10% 100%, rgba(37, 99, 168, 0.025), transparent 60%),
|
| 154 |
+
linear-gradient(180deg, var(--cr-bg-tint) 0%, var(--cr-bg) 70%) !important;
|
| 155 |
background-attachment: fixed !important;
|
| 156 |
+
color: var(--cr-ink) !important;
|
| 157 |
+
font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif !important;
|
| 158 |
line-height: 1.6 !important;
|
| 159 |
}
|
| 160 |
|
|
|
|
| 164 |
}
|
| 165 |
|
| 166 |
/* ============================================================
|
| 167 |
+
* Part 3 — Typography · clinical hierarchy in blue
|
|
|
|
| 168 |
* ============================================================ */
|
| 169 |
|
| 170 |
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
|
|
|
|
| 184 |
html body [data-testid="stMarkdownContainer"] h1 *,
|
| 185 |
html body [data-testid="stMarkdownContainer"] h2 *,
|
| 186 |
html body [data-testid="stMarkdownContainer"] h3 * {
|
| 187 |
+
font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif !important;
|
| 188 |
font-weight: 700 !important;
|
| 189 |
letter-spacing: -0.02em !important;
|
| 190 |
+
color: var(--cr-blue-deep) !important;
|
| 191 |
+
-webkit-text-fill-color: var(--cr-blue-deep) !important;
|
| 192 |
background-image: none !important;
|
| 193 |
background-clip: unset !important;
|
| 194 |
-webkit-background-clip: unset !important;
|
|
|
|
| 196 |
}
|
| 197 |
|
| 198 |
html body h1, html body .gradio-container h1, html body .stApp h1 {
|
| 199 |
+
font-size: 2.1rem !important;
|
| 200 |
margin-bottom: 0.4em !important;
|
| 201 |
+
font-weight: 800 !important;
|
| 202 |
+
color: var(--cr-blue-deep) !important;
|
| 203 |
+
-webkit-text-fill-color: var(--cr-blue-deep) !important;
|
| 204 |
}
|
| 205 |
html body h2, html body .gradio-container h2, html body .stApp h2 {
|
| 206 |
+
font-size: 1.5rem !important;
|
| 207 |
+
color: var(--cr-blue) !important;
|
| 208 |
+
-webkit-text-fill-color: var(--cr-blue) !important;
|
| 209 |
}
|
| 210 |
html body h3, html body .gradio-container h3, html body .stApp h3,
|
| 211 |
html body h4, html body .gradio-container h4, html body .stApp h4,
|
|
|
|
| 215 |
html body [data-testid="stMarkdownContainer"] h3 *,
|
| 216 |
html body .gr-markdown h3, html body .gr-markdown h3 *,
|
| 217 |
html body .markdown h3, html body .markdown h3 * {
|
| 218 |
+
font-size: 1.05rem !important;
|
| 219 |
+
letter-spacing: -0.005em !important;
|
| 220 |
font-weight: 500 !important;
|
| 221 |
+
color: var(--cr-muted) !important;
|
| 222 |
+
-webkit-text-fill-color: var(--cr-muted) !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 223 |
}
|
| 224 |
|
| 225 |
/* ============================================================
|
| 226 |
+
* Part 4 — Labels · letterspaced uppercase mono, legibility-tuned
|
| 227 |
* ============================================================ */
|
| 228 |
|
| 229 |
html body .gradio-container .block-label,
|
|
|
|
| 238 |
html body .stApp [data-testid="stWidgetLabel"],
|
| 239 |
html body .stApp [data-testid="stWidgetLabel"] > *,
|
| 240 |
html body .stApp [data-testid="stWidgetLabel"] p {
|
| 241 |
+
font-family: 'JetBrains Mono', ui-monospace, monospace !important;
|
| 242 |
font-size: 0.78rem !important;
|
| 243 |
+
color: var(--cr-blue) !important;
|
| 244 |
letter-spacing: 0.13em !important;
|
| 245 |
text-transform: uppercase !important;
|
| 246 |
font-weight: 600 !important;
|
| 247 |
background: transparent !important;
|
| 248 |
}
|
| 249 |
|
| 250 |
+
html body .gradio-container .cr-eyebrow,
|
| 251 |
+
html body .stApp .cr-eyebrow {
|
| 252 |
+
font-family: 'JetBrains Mono', ui-monospace, monospace !important;
|
| 253 |
font-size: 0.7rem !important;
|
| 254 |
+
color: var(--cr-muted) !important;
|
| 255 |
+
letter-spacing: 0.18em !important;
|
| 256 |
text-transform: uppercase !important;
|
| 257 |
font-weight: 500 !important;
|
| 258 |
}
|
| 259 |
|
| 260 |
/* ============================================================
|
| 261 |
+
* Part 5 — Cards / blocks · INSTRUMENT-PANEL GLASS
|
| 262 |
* ============================================================ */
|
| 263 |
|
| 264 |
html body .gradio-container .block,
|
|
|
|
| 269 |
html body .gradio-container .wrap,
|
| 270 |
html body .stApp [data-testid="stForm"],
|
| 271 |
html body .stApp [data-testid="stExpander"] {
|
| 272 |
+
background: var(--cr-surface) !important;
|
| 273 |
-webkit-backdrop-filter: blur(18px) saturate(120%) !important;
|
| 274 |
backdrop-filter: blur(18px) saturate(120%) !important;
|
| 275 |
+
border: 1px solid var(--cr-border) !important;
|
| 276 |
+
border-radius: var(--cr-radius) !important;
|
| 277 |
+
box-shadow: var(--cr-shadow) !important;
|
| 278 |
+
padding: 22px !important;
|
| 279 |
+
transition: border-color var(--cr-transition), box-shadow var(--cr-transition) !important;
|
| 280 |
}
|
| 281 |
|
| 282 |
html body .gradio-container .block:hover,
|
| 283 |
html body .stApp [data-testid="stForm"]:hover {
|
| 284 |
+
border-color: var(--cr-border-strong) !important;
|
| 285 |
}
|
| 286 |
|
| 287 |
html body .gradio-container .block .block,
|
| 288 |
html body .gradio-container .block .gr-form {
|
| 289 |
+
background: rgba(255, 255, 255, 0.45) !important;
|
| 290 |
box-shadow: none !important;
|
| 291 |
+
padding: 16px !important;
|
| 292 |
}
|
| 293 |
|
| 294 |
/* ============================================================
|
| 295 |
+
* Part 6 — Inputs · clinical precision
|
| 296 |
* ============================================================ */
|
| 297 |
|
| 298 |
html body .gradio-container input[type="text"],
|
|
|
|
| 310 |
html body .stApp textarea,
|
| 311 |
html body .stApp [data-baseweb="select"] > div,
|
| 312 |
html body .stApp [data-baseweb="input"] {
|
| 313 |
+
background: var(--cr-bg) !important;
|
| 314 |
+
border: 1px solid var(--cr-border-strong) !important;
|
| 315 |
+
border-radius: var(--cr-radius-sm) !important;
|
| 316 |
+
color: var(--cr-ink) !important;
|
| 317 |
+
font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif !important;
|
| 318 |
+
font-size: 0.92rem !important;
|
| 319 |
+
caret-color: var(--cr-blue) !important;
|
| 320 |
padding: 13px 16px !important;
|
| 321 |
+
transition: border-color var(--cr-transition), box-shadow var(--cr-transition) !important;
|
| 322 |
}
|
| 323 |
|
| 324 |
html body .gradio-container textarea,
|
| 325 |
html body .stApp textarea {
|
| 326 |
min-height: 130px !important;
|
| 327 |
+
line-height: 1.6 !important;
|
| 328 |
}
|
| 329 |
|
| 330 |
html body .gradio-container input:focus,
|
|
|
|
| 332 |
html body .gradio-container select:focus,
|
| 333 |
html body .stApp input:focus,
|
| 334 |
html body .stApp textarea:focus {
|
| 335 |
+
border-color: var(--cr-blue) !important;
|
| 336 |
outline: none !important;
|
| 337 |
+
box-shadow: 0 0 0 3px var(--cr-blue-soft),
|
| 338 |
+
0 0 14px rgba(37, 99, 168, 0.10) !important;
|
| 339 |
}
|
| 340 |
|
| 341 |
html body .gradio-container ::placeholder,
|
| 342 |
html body .stApp ::placeholder {
|
| 343 |
+
color: var(--cr-dim) !important;
|
|
|
|
| 344 |
}
|
| 345 |
|
| 346 |
html body .gradio-container select,
|
| 347 |
html body .gradio-container .gr-dropdown select {
|
| 348 |
appearance: none !important;
|
| 349 |
-webkit-appearance: none !important;
|
| 350 |
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 7 6-7z' fill='%232563a8'/%3E%3C/svg%3E") !important;
|
| 351 |
background-repeat: no-repeat !important;
|
| 352 |
background-position: right 14px center !important;
|
| 353 |
padding-right: 38px !important;
|
| 354 |
}
|
| 355 |
|
| 356 |
+
/* Tabular numerals — Clean Room is THE numerals palette, apply broadly */
|
| 357 |
+
html body .gradio-container,
|
| 358 |
+
html body .stApp,
|
| 359 |
html body .gradio-container .gr-number input,
|
| 360 |
html body .gradio-container [class*="number"] input,
|
| 361 |
html body .gradio-container .output-number,
|
|
|
|
| 364 |
html body .stApp [data-testid="stNumberInput"] input {
|
| 365 |
font-variant-numeric: tabular-nums !important;
|
| 366 |
font-feature-settings: 'tnum' !important;
|
| 367 |
+
}
|
| 368 |
+
|
| 369 |
+
html body .gradio-container .gr-number input,
|
| 370 |
+
html body .gradio-container [class*="number"] input,
|
| 371 |
+
html body .stApp [data-testid="stNumberInput"] input {
|
| 372 |
+
font-family: 'JetBrains Mono', ui-monospace, monospace !important;
|
| 373 |
}
|
| 374 |
|
| 375 |
/* ============================================================
|
| 376 |
+
* Part 7 — Buttons · blue primary with subtle blue glow
|
| 377 |
* ============================================================ */
|
| 378 |
|
| 379 |
html body .gradio-container button,
|
|
|
|
| 383 |
html body .gradio-container .primary,
|
| 384 |
html body .stApp .stButton > button,
|
| 385 |
html body .stApp button[kind="primary"] {
|
| 386 |
+
background: var(--cr-blue) !important;
|
| 387 |
+
color: #ffffff !important;
|
| 388 |
+
font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif !important;
|
| 389 |
+
font-weight: 600 !important;
|
| 390 |
+
font-size: 0.92rem !important;
|
| 391 |
+
letter-spacing: 0.005em !important;
|
| 392 |
border: none !important;
|
| 393 |
+
border-radius: var(--cr-radius-sm) !important;
|
| 394 |
padding: 13px 28px !important;
|
| 395 |
cursor: pointer !important;
|
| 396 |
+
box-shadow: 0 6px 18px rgba(37, 99, 168, 0.22),
|
| 397 |
0 0 0 1px rgba(255, 255, 255, 0.10) inset !important;
|
| 398 |
transition: transform 100ms ease,
|
| 399 |
+
box-shadow var(--cr-transition),
|
| 400 |
+
background var(--cr-transition) !important;
|
| 401 |
}
|
| 402 |
|
| 403 |
html body .gradio-container button:hover,
|
| 404 |
html body .gradio-container .gr-button:hover,
|
| 405 |
html body .stApp .stButton > button:hover {
|
| 406 |
+
background: var(--cr-blue-deep) !important;
|
| 407 |
color: #ffffff !important;
|
| 408 |
+
box-shadow: 0 12px 28px rgba(37, 99, 168, 0.32),
|
| 409 |
+
0 0 0 1px rgba(255, 255, 255, 0.14) inset,
|
| 410 |
+
var(--cr-shadow-blue) !important;
|
| 411 |
}
|
| 412 |
|
| 413 |
html body .gradio-container button:active,
|
| 414 |
html body .stApp .stButton > button:active {
|
| 415 |
transform: scale(0.985) !important;
|
| 416 |
+
background: var(--cr-blue-deep) !important;
|
| 417 |
}
|
| 418 |
|
| 419 |
html body .gradio-container button.secondary,
|
| 420 |
html body .gradio-container .secondary,
|
| 421 |
html body .stApp button[kind="secondary"] {
|
| 422 |
+
background: var(--cr-bg) !important;
|
| 423 |
+
color: var(--cr-ink) !important;
|
| 424 |
+
border: 1px solid var(--cr-border-strong) !important;
|
| 425 |
+
box-shadow: 0 4px 12px rgba(17, 32, 64, 0.06) !important;
|
| 426 |
}
|
| 427 |
|
| 428 |
html body .gradio-container button.secondary:hover,
|
| 429 |
html body .stApp button[kind="secondary"]:hover {
|
| 430 |
+
background: var(--cr-surface-cool) !important;
|
| 431 |
+
border-color: var(--cr-blue-rim) !important;
|
| 432 |
+
color: var(--cr-blue) !important;
|
| 433 |
}
|
| 434 |
|
| 435 |
/* ============================================================
|
|
|
|
| 437 |
* ============================================================ */
|
| 438 |
|
| 439 |
html body input[type="range"] {
|
| 440 |
+
accent-color: var(--cr-blue) !important;
|
| 441 |
height: 4px !important;
|
| 442 |
}
|
| 443 |
html body input[type="range"]::-webkit-slider-thumb {
|
| 444 |
+
background: var(--cr-blue) !important;
|
| 445 |
+
border: 2px solid var(--cr-bg) !important;
|
| 446 |
+
box-shadow: 0 0 0 1px rgba(37, 99, 168, 0.3),
|
| 447 |
+
0 2px 8px rgba(37, 99, 168, 0.20) !important;
|
| 448 |
width: 16px !important;
|
| 449 |
height: 16px !important;
|
| 450 |
}
|
| 451 |
html body input[type="range"]::-moz-range-thumb {
|
| 452 |
+
background: var(--cr-blue) !important;
|
| 453 |
+
border: 2px solid var(--cr-bg) !important;
|
| 454 |
width: 16px !important;
|
| 455 |
height: 16px !important;
|
| 456 |
}
|
| 457 |
html body input[type="checkbox"],
|
| 458 |
html body input[type="radio"] {
|
| 459 |
+
accent-color: var(--cr-blue) !important;
|
| 460 |
width: 15px !important;
|
| 461 |
height: 15px !important;
|
| 462 |
}
|
|
|
|
| 469 |
html body .gradio-container input[type="file"],
|
| 470 |
html body .stApp [data-testid="stFileUploader"],
|
| 471 |
html body .stApp [data-testid="stFileUploaderDropzone"] {
|
| 472 |
+
background: var(--cr-blue-dim) !important;
|
| 473 |
+
border: 1px dashed var(--cr-blue-rim) !important;
|
| 474 |
+
border-radius: var(--cr-radius-sm) !important;
|
| 475 |
+
color: var(--cr-ink) !important;
|
| 476 |
+
transition: background var(--cr-transition),
|
| 477 |
+
border-color var(--cr-transition) !important;
|
| 478 |
}
|
| 479 |
html body .gradio-container .gr-file-upload:hover,
|
| 480 |
html body .stApp [data-testid="stFileUploader"]:hover {
|
| 481 |
+
background: var(--cr-blue-soft) !important;
|
| 482 |
+
border-color: var(--cr-blue) !important;
|
| 483 |
}
|
| 484 |
|
| 485 |
html body input[type="file"]::file-selector-button {
|
| 486 |
+
background: var(--cr-blue-soft) !important;
|
| 487 |
+
color: var(--cr-blue) !important;
|
| 488 |
+
border: 1px solid var(--cr-blue-rim) !important;
|
| 489 |
+
border-radius: var(--cr-radius-xs) !important;
|
| 490 |
padding: 7px 14px !important;
|
| 491 |
margin-right: 14px !important;
|
| 492 |
+
font-family: 'JetBrains Mono', ui-monospace, monospace !important;
|
| 493 |
font-size: 0.78rem !important;
|
| 494 |
+
letter-spacing: 0.04em !important;
|
| 495 |
cursor: pointer !important;
|
| 496 |
}
|
| 497 |
|
| 498 |
/* ============================================================
|
| 499 |
+
* Part 10 — Markdown, code, links · clinical voice
|
| 500 |
* ============================================================ */
|
| 501 |
|
| 502 |
html body .gradio-container .markdown,
|
| 503 |
html body .gradio-container .gr-markdown,
|
| 504 |
html body .gradio-container .prose,
|
| 505 |
html body .stApp [data-testid="stMarkdownContainer"] {
|
| 506 |
+
color: var(--cr-ink) !important;
|
| 507 |
+
font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif !important;
|
| 508 |
+
line-height: 1.65 !important;
|
| 509 |
+
font-size: 0.95rem !important;
|
| 510 |
}
|
| 511 |
|
| 512 |
html body .gradio-container a,
|
| 513 |
html body .stApp a {
|
| 514 |
+
color: var(--cr-blue) !important;
|
| 515 |
text-decoration: none !important;
|
| 516 |
+
border-bottom: 1px solid var(--cr-blue-rim) !important;
|
| 517 |
+
transition: border-color var(--cr-transition), color var(--cr-transition) !important;
|
| 518 |
}
|
| 519 |
html body .gradio-container a:hover,
|
| 520 |
html body .stApp a:hover {
|
| 521 |
+
color: var(--cr-blue-deep) !important;
|
| 522 |
+
border-bottom-color: var(--cr-blue) !important;
|
| 523 |
}
|
| 524 |
|
| 525 |
html body code,
|
| 526 |
html body .gradio-container code,
|
| 527 |
html body .stApp code {
|
| 528 |
+
background: var(--cr-blue-dim) !important;
|
| 529 |
+
color: var(--cr-blue-deep) !important;
|
| 530 |
+
font-family: 'JetBrains Mono', ui-monospace, monospace !important;
|
| 531 |
font-size: 0.86em !important;
|
| 532 |
padding: 2px 7px !important;
|
| 533 |
+
border-radius: var(--cr-radius-xs) !important;
|
| 534 |
+
border: 1px solid var(--cr-blue-rim) !important;
|
| 535 |
}
|
| 536 |
|
| 537 |
html body pre code,
|
| 538 |
html body .gradio-container pre code {
|
| 539 |
+
border: 1px solid var(--cr-border) !important;
|
| 540 |
+
background: var(--cr-surface-cool) !important;
|
| 541 |
display: block !important;
|
| 542 |
padding: 14px 16px !important;
|
| 543 |
+
border-radius: var(--cr-radius-sm) !important;
|
| 544 |
line-height: 1.55 !important;
|
| 545 |
+
color: var(--cr-ink) !important;
|
| 546 |
}
|
| 547 |
|
| 548 |
html body blockquote,
|
| 549 |
html body .gradio-container blockquote,
|
| 550 |
html body .stApp blockquote {
|
| 551 |
+
border-left: 2px solid var(--cr-blue) !important;
|
| 552 |
padding-left: 18px !important;
|
| 553 |
+
color: var(--cr-muted) !important;
|
|
|
|
| 554 |
margin: 18px 0 !important;
|
| 555 |
}
|
| 556 |
|
| 557 |
/* ============================================================
|
| 558 |
+
* Part 11 — Callout / info card
|
| 559 |
+
* Use class .cr-callout on a div; auto-styles Gradio Info/Warning.
|
| 560 |
+
* No italic — clinical voice, not editorial.
|
| 561 |
* ============================================================ */
|
| 562 |
|
| 563 |
+
html body .cr-callout,
|
| 564 |
+
html body .gradio-container .cr-callout,
|
| 565 |
+
html body .stApp .cr-callout,
|
| 566 |
html body .gradio-container [class*="info"]:not(button):not(input),
|
| 567 |
html body .stApp .stAlert {
|
| 568 |
+
background: var(--cr-blue-soft) !important;
|
| 569 |
+
border: 1px solid var(--cr-blue-rim) !important;
|
| 570 |
+
border-radius: var(--cr-radius-sm) !important;
|
| 571 |
padding: 14px 18px !important;
|
| 572 |
+
font-size: 0.92rem !important;
|
| 573 |
+
color: var(--cr-muted) !important;
|
| 574 |
+
font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif !important;
|
| 575 |
+
line-height: 1.6 !important;
|
|
|
|
| 576 |
}
|
| 577 |
|
| 578 |
+
html body .cr-callout strong,
|
| 579 |
+
html body .gradio-container .cr-callout strong,
|
| 580 |
+
html body .stApp .cr-callout strong {
|
| 581 |
+
color: var(--cr-blue-deep) !important;
|
| 582 |
+
font-weight: 700 !important;
|
|
|
|
| 583 |
}
|
| 584 |
|
| 585 |
/* ============================================================
|
|
|
|
| 591 |
background: transparent;
|
| 592 |
}
|
| 593 |
html body ::-webkit-scrollbar-thumb {
|
| 594 |
+
background: rgba(37, 99, 168, 0.20);
|
| 595 |
+
border-radius: var(--cr-radius-pill);
|
| 596 |
border: 2px solid transparent;
|
| 597 |
background-clip: padding-box;
|
| 598 |
}
|
| 599 |
html body ::-webkit-scrollbar-thumb:hover {
|
| 600 |
+
background: rgba(37, 99, 168, 0.40);
|
| 601 |
background-clip: padding-box;
|
| 602 |
border: 2px solid transparent;
|
| 603 |
}
|
| 604 |
|
| 605 |
html body .stApp header[data-testid="stHeader"] {
|
| 606 |
+
background: rgba(251, 252, 254, 0.72) !important;
|
| 607 |
-webkit-backdrop-filter: blur(14px) !important;
|
| 608 |
backdrop-filter: blur(14px) !important;
|
| 609 |
+
border-bottom: 1px solid var(--cr-border) !important;
|
| 610 |
}
|
| 611 |
html body .stApp [data-testid="stSidebar"] {
|
| 612 |
+
background: var(--cr-surface-solid) !important;
|
| 613 |
+
border-right: 1px solid var(--cr-border) !important;
|
| 614 |
}
|
| 615 |
|
| 616 |
/* ============================================================
|
|
|
|
| 621 |
html body .gradio-container hr,
|
| 622 |
html body .stApp hr {
|
| 623 |
border: none !important;
|
| 624 |
+
border-top: 1px solid var(--cr-border) !important;
|
| 625 |
margin: 24px 0 !important;
|
| 626 |
}
|
| 627 |
|
| 628 |
html body ::selection {
|
| 629 |
+
background: var(--cr-blue-soft);
|
| 630 |
+
color: var(--cr-blue-deep);
|
| 631 |
}
|
| 632 |
|
| 633 |
@media (prefers-reduced-motion: no-preference) {
|
| 634 |
html body .gradio-container .block,
|
| 635 |
html body .stApp [data-testid="stForm"] {
|
| 636 |
+
animation: cr-fade-in 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
|
| 637 |
}
|
| 638 |
+
@keyframes cr-fade-in {
|
| 639 |
from { opacity: 0; transform: translateY(4px); }
|
| 640 |
to { opacity: 1; transform: translateY(0); }
|
| 641 |
}
|