justinkay commited on
Commit
79b3f7b
·
1 Parent(s): 4c8935a

Fixes for dark mode

Browse files
Files changed (1) hide show
  1. app.py +29 -6
app.py CHANGED
@@ -487,12 +487,12 @@ with gr.Blocks(title="CODA: Wildlife Photo Classification Challenge",
487
  css="""
488
  .subtle-outline {
489
  border: 1px solid var(--border-color-primary) !important;
490
- background: transparent !important;
491
  border-radius: var(--radius-lg);
492
  padding: 1rem;
493
  }
494
  .subtle-outline .flex {
495
- background-color: white !important;
496
  }
497
 
498
  /* Popup overlay styles */
@@ -517,7 +517,7 @@ with gr.Blocks(title="CODA: Wildlife Photo Classification Challenge",
517
  }
518
 
519
  .popup-content {
520
- background: white !important;
521
  padding: 2rem !important;
522
  border-radius: 1rem !important;
523
  max-width: 850px;
@@ -527,10 +527,11 @@ with gr.Blocks(title="CODA: Wildlife Photo Classification Challenge",
527
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
528
  border: none !important;
529
  margin: 0 !important;
 
530
  }
531
 
532
  .popup-content > div {
533
- background: white !important;
534
  border: none !important;
535
  padding: 0 !important;
536
  margin: 0 !important;
@@ -538,6 +539,14 @@ with gr.Blocks(title="CODA: Wildlife Photo Classification Challenge",
538
  max-height: none !important;
539
  }
540
 
 
 
 
 
 
 
 
 
541
  /* Ensure gradio column components don't interfere with scrolling */
542
  .popup-content .gradio-column {
543
  overflow-y: visible !important;
@@ -618,7 +627,7 @@ with gr.Blocks(title="CODA: Wildlife Photo Classification Challenge",
618
  }
619
 
620
  .help-popup-content {
621
- background: white !important;
622
  padding: 1.5rem !important;
623
  border-radius: 0.5rem !important;
624
  max-width: 600px;
@@ -626,15 +635,24 @@ with gr.Blocks(title="CODA: Wildlife Photo Classification Challenge",
626
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
627
  border: none !important;
628
  margin: 0 !important;
 
629
  }
630
 
631
  .help-popup-content > div {
632
- background: white !important;
633
  border: none !important;
634
  padding: 0 !important;
635
  margin: 0 !important;
636
  }
637
 
 
 
 
 
 
 
 
 
638
  /* Inline help button */
639
  .inline-help-btn {
640
  display: inline-block;
@@ -703,6 +721,11 @@ with gr.Blocks(title="CODA: Wildlife Photo Classification Challenge",
703
  padding: 0 !important;
704
  margin: 0 !important;
705
  }
 
 
 
 
 
706
  """) as demo:
707
  # Main page title
708
  gr.Markdown("# CODA: Consensus-Driven Active Model Selection", elem_classes="text-center")
 
487
  css="""
488
  .subtle-outline {
489
  border: 1px solid var(--border-color-primary) !important;
490
+ background: var(--background-fill-secondary) !important;
491
  border-radius: var(--radius-lg);
492
  padding: 1rem;
493
  }
494
  .subtle-outline .flex {
495
+ background-color: var(--background-fill-secondary) !important;
496
  }
497
 
498
  /* Popup overlay styles */
 
517
  }
518
 
519
  .popup-content {
520
+ background: var(--background-fill-primary) !important;
521
  padding: 2rem !important;
522
  border-radius: 1rem !important;
523
  max-width: 850px;
 
527
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
528
  border: none !important;
529
  margin: 0 !important;
530
+ color: var(--body-text-color) !important;
531
  }
532
 
533
  .popup-content > div {
534
+ background: var(--background-fill-primary) !important;
535
  border: none !important;
536
  padding: 0 !important;
537
  margin: 0 !important;
 
539
  max-height: none !important;
540
  }
541
 
542
+ .popup-content h1,
543
+ .popup-content h2,
544
+ .popup-content h3,
545
+ .popup-content p,
546
+ .popup-content li {
547
+ color: var(--body-text-color) !important;
548
+ }
549
+
550
  /* Ensure gradio column components don't interfere with scrolling */
551
  .popup-content .gradio-column {
552
  overflow-y: visible !important;
 
627
  }
628
 
629
  .help-popup-content {
630
+ background: var(--background-fill-primary) !important;
631
  padding: 1.5rem !important;
632
  border-radius: 0.5rem !important;
633
  max-width: 600px;
 
635
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
636
  border: none !important;
637
  margin: 0 !important;
638
+ color: var(--body-text-color) !important;
639
  }
640
 
641
  .help-popup-content > div {
642
+ background: var(--background-fill-primary) !important;
643
  border: none !important;
644
  padding: 0 !important;
645
  margin: 0 !important;
646
  }
647
 
648
+ .help-popup-content h1,
649
+ .help-popup-content h2,
650
+ .help-popup-content h3,
651
+ .help-popup-content p,
652
+ .help-popup-content li {
653
+ color: var(--body-text-color) !important;
654
+ }
655
+
656
  /* Inline help button */
657
  .inline-help-btn {
658
  display: inline-block;
 
721
  padding: 0 !important;
722
  margin: 0 !important;
723
  }
724
+
725
+ /* Ensure text in predictions panel is visible in dark mode */
726
+ .subtle-outline * {
727
+ color: var(--body-text-color) !important;
728
+ }
729
  """) as demo:
730
  # Main page title
731
  gr.Markdown("# CODA: Consensus-Driven Active Model Selection", elem_classes="text-center")