MrInvincible96 commited on
Commit
9c0af8f
·
verified ·
1 Parent(s): a2c0d40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +46 -35
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 text white no matter what */
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. TABS VISIBILITY FIX */
 
 
 
 
 
 
 
 
 
 
 
 
 
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
- /* 2. EXAMPLES LABEL ("Sample Business Scenarios") FIX */
253
- .examples .label-wrap span,
254
- .examples > label,
255
- div.examples > p {
256
- color: #000000 !important; /* Force to solid black */
257
- font-weight: 800 !important;
258
- opacity: 1 !important;
 
259
  }
260
 
261
- /* 3. EXAMPLES TABLE HOVER & SELECTED STATE FIX */
262
- /* Normal Row State */
263
- .examples table tbody tr td,
264
- .examples table tbody tr th {
265
- color: #1c2733 !important; /* Dark text normally */
 
 
266
  }
267
- /* Hover Row State */
268
- .examples table tbody tr:hover td,
269
- .examples table tbody tr:hover th {
270
- background-color: #eef4f8 !important; /* Light blue background */
271
- color: #000000 !important; /* Solid black text on hover */
 
272
  }
273
- /* Selected Row State */
274
- .examples table tbody tr.selected td,
275
- .examples table tbody tr[aria-selected="true"] td {
276
- background-color: #DCE6F2 !important; /* Slightly darker blue when clicked */
277
- color: #000000 !important; /* Solid black text when clicked */
 
 
 
 
 
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