MrInvincible96 commited on
Commit
9d80ec2
·
verified ·
1 Parent(s): 3ea62ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +59 -0
app.py CHANGED
@@ -350,6 +350,65 @@ button[role="tab"].selected {
350
  -webkit-text-fill-color: #ffffff !important;
351
  opacity: 1 !important;
352
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
353
  """
354
 
355
  def guess_title(notes):
 
350
  -webkit-text-fill-color: #ffffff !important;
351
  opacity: 1 !important;
352
  }
353
+
354
+ /* =========================================================
355
+ GRADIO FOOTER FIX
356
+ The default footer ("Use via API · Built with Gradio · Settings")
357
+ has a broken hover state — text fades to nearly invisible on hover.
358
+ We give it a readable base color and a clearly visible hover color
359
+ that matches the app's dark-blue accent. Targets <footer> directly
360
+ plus all link/button descendants in any version of Gradio. */
361
+ .gradio-container footer,
362
+ .gradio-container .footer,
363
+ footer.svelte-1ax1toq,
364
+ footer {
365
+ background: transparent !important;
366
+ border-top: 1px solid #d8dfe6 !important;
367
+ padding: 12px 18px !important;
368
+ }
369
+
370
+ /* Base state — readable medium-grey */
371
+ .gradio-container footer,
372
+ .gradio-container footer *,
373
+ .gradio-container footer a,
374
+ .gradio-container footer a *,
375
+ .gradio-container footer button,
376
+ .gradio-container footer button *,
377
+ .gradio-container .footer a,
378
+ .gradio-container .footer button {
379
+ color: #4d6272 !important;
380
+ -webkit-text-fill-color: #4d6272 !important;
381
+ opacity: 1 !important;
382
+ text-decoration: none !important;
383
+ font-weight: 600 !important;
384
+ }
385
+
386
+ /* Hover state — dark blue, fully opaque, underline for affordance */
387
+ .gradio-container footer a:hover,
388
+ .gradio-container footer a:hover *,
389
+ .gradio-container footer button:hover,
390
+ .gradio-container footer button:hover *,
391
+ .gradio-container footer a:focus,
392
+ .gradio-container footer a:focus *,
393
+ .gradio-container footer button:focus,
394
+ .gradio-container footer button:focus *,
395
+ .gradio-container .footer a:hover,
396
+ .gradio-container .footer button:hover {
397
+ color: #173a59 !important;
398
+ -webkit-text-fill-color: #173a59 !important;
399
+ opacity: 1 !important;
400
+ text-decoration: underline !important;
401
+ background: transparent !important;
402
+ cursor: pointer !important;
403
+ }
404
+
405
+ /* Keep the separator dots and emojis visible too */
406
+ .gradio-container footer span,
407
+ .gradio-container footer svg {
408
+ color: #4d6272 !important;
409
+ -webkit-text-fill-color: #4d6272 !important;
410
+ opacity: 1 !important;
411
+ }
412
  """
413
 
414
  def guess_title(notes):