Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,16 +33,6 @@ body {
|
|
| 33 |
color: #ffffff !important;
|
| 34 |
margin-bottom: 12px;
|
| 35 |
}
|
| 36 |
-
.hero-title {
|
| 37 |
-
margin: 0 0 12px 0;
|
| 38 |
-
font-size: 2.5rem;
|
| 39 |
-
line-height: 1.08;
|
| 40 |
-
font-weight: 800;
|
| 41 |
-
letter-spacing: -0.02em;
|
| 42 |
-
color: #ffffff !important;
|
| 43 |
-
opacity: 1 !important;
|
| 44 |
-
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
|
| 45 |
-
}
|
| 46 |
.hero-subtitle {
|
| 47 |
max-width: 860px;
|
| 48 |
margin: 0;
|
|
@@ -199,10 +189,9 @@ button.secondary:hover {
|
|
| 199 |
color: #16324a;
|
| 200 |
}
|
| 201 |
|
| 202 |
-
/* Keep hero
|
| 203 |
.hero-shell *,
|
| 204 |
.hero-inner *,
|
| 205 |
-
.hero-title,
|
| 206 |
.hero-subtitle,
|
| 207 |
.eyebrow,
|
| 208 |
.hero-stat strong,
|
|
@@ -224,7 +213,20 @@ button.secondary:hover {
|
|
| 224 |
SLEDGEHAMMER OVERRIDES FOR GRADIO BUGS
|
| 225 |
========================================= */
|
| 226 |
|
| 227 |
-
/* 1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 228 |
div.tab-nav {
|
| 229 |
gap: 8px !important;
|
| 230 |
padding: 14px 22px 0 22px !important;
|
|
@@ -249,32 +251,41 @@ button[role="tab"].selected {
|
|
| 249 |
border-color: #173a59 !important;
|
| 250 |
}
|
| 251 |
|
| 252 |
-
/*
|
| 253 |
-
.examples
|
| 254 |
-
.examples
|
| 255 |
-
div.examples
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
|
|
|
| 259 |
}
|
| 260 |
|
| 261 |
-
/*
|
| 262 |
-
|
| 263 |
-
.examples
|
| 264 |
-
.examples
|
| 265 |
-
color: #
|
|
|
|
|
|
|
| 266 |
}
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
.examples
|
| 270 |
-
|
| 271 |
-
|
|
|
|
| 272 |
}
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
.examples
|
| 276 |
-
|
| 277 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 278 |
}
|
| 279 |
"""
|
| 280 |
|
|
|
|
| 33 |
color: #ffffff !important;
|
| 34 |
margin-bottom: 12px;
|
| 35 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
.hero-subtitle {
|
| 37 |
max-width: 860px;
|
| 38 |
margin: 0;
|
|
|
|
| 189 |
color: #16324a;
|
| 190 |
}
|
| 191 |
|
| 192 |
+
/* Keep hero stats white no matter what */
|
| 193 |
.hero-shell *,
|
| 194 |
.hero-inner *,
|
|
|
|
| 195 |
.hero-subtitle,
|
| 196 |
.eyebrow,
|
| 197 |
.hero-stat strong,
|
|
|
|
| 213 |
SLEDGEHAMMER OVERRIDES FOR GRADIO BUGS
|
| 214 |
========================================= */
|
| 215 |
|
| 216 |
+
/* 1. HERO TITLE FIX (Bypasses Gradio's internal h1 color reset) */
|
| 217 |
+
.gradio-container .hero-shell h1.hero-title,
|
| 218 |
+
.gradio-container .hero-shell h1,
|
| 219 |
+
.hero-shell .hero-title {
|
| 220 |
+
color: #ffffff !important;
|
| 221 |
+
-webkit-text-fill-color: #ffffff !important; /* Forces white even if webkit overrides it */
|
| 222 |
+
opacity: 1 !important;
|
| 223 |
+
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18) !important;
|
| 224 |
+
margin: 0 0 12px 0 !important;
|
| 225 |
+
font-size: 2.5rem !important;
|
| 226 |
+
font-weight: 800 !important;
|
| 227 |
+
}
|
| 228 |
+
|
| 229 |
+
/* 2. TABS VISIBILITY FIX */
|
| 230 |
div.tab-nav {
|
| 231 |
gap: 8px !important;
|
| 232 |
padding: 14px 22px 0 22px !important;
|
|
|
|
| 251 |
border-color: #173a59 !important;
|
| 252 |
}
|
| 253 |
|
| 254 |
+
/* 3. EXAMPLES LABEL ("Sample Business Scenarios") FIX */
|
| 255 |
+
div.examples label,
|
| 256 |
+
div.examples p,
|
| 257 |
+
div.examples span,
|
| 258 |
+
.examples > div > span,
|
| 259 |
+
.examples .label-wrap {
|
| 260 |
+
color: #000000 !important;
|
| 261 |
+
font-weight: 700 !important;
|
| 262 |
}
|
| 263 |
|
| 264 |
+
/* 4. EXAMPLES BUTTONS & HOVER STATE FIX (For Gradio 4 Bubbles) */
|
| 265 |
+
.examples button,
|
| 266 |
+
.examples [role="button"],
|
| 267 |
+
.examples .gallery-item {
|
| 268 |
+
background-color: #ffffff !important;
|
| 269 |
+
color: #000000 !important;
|
| 270 |
+
border: 1px solid #ccd5de !important;
|
| 271 |
}
|
| 272 |
+
|
| 273 |
+
/* Force text inside the example buttons to stay black */
|
| 274 |
+
.examples button *,
|
| 275 |
+
.examples [role="button"] *,
|
| 276 |
+
.examples .gallery-item * {
|
| 277 |
+
color: #000000 !important;
|
| 278 |
}
|
| 279 |
+
|
| 280 |
+
/* Hover and Selected states for Examples */
|
| 281 |
+
.examples button:hover,
|
| 282 |
+
.examples [role="button"]:hover,
|
| 283 |
+
.examples .gallery-item:hover,
|
| 284 |
+
.examples button.selected,
|
| 285 |
+
.examples [aria-selected="true"] {
|
| 286 |
+
background-color: #eef4f8 !important; /* Clean light blue hover */
|
| 287 |
+
color: #000000 !important;
|
| 288 |
+
border-color: #b8c7d4 !important;
|
| 289 |
}
|
| 290 |
"""
|
| 291 |
|