KasunUoM commited on
Commit
2ab39fd
·
verified ·
1 Parent(s): ee14ffa

Added CSS to make buttons more visible

Browse files
Files changed (1) hide show
  1. app.py +26 -0
app.py CHANGED
@@ -527,6 +527,32 @@ button.primary:hover,
527
  span[style*="color"] {
528
  /* Allow inline color styles to work */
529
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
530
  """
531
 
532
  with gr.Blocks(theme=theme, css=css, title="SinhalaVITS Playground") as demo:
 
527
  span[style*="color"] {
528
  /* Allow inline color styles to work */
529
  }
530
+ /* Radio buttons - fix label and option colors */
531
+ .gr-radio,
532
+ .gr-radio label,
533
+ [data-testid="radio-group"] label,
534
+ [data-testid="radio-group"] span {
535
+ color: #333333 !important;
536
+ background: transparent !important;
537
+ }
538
+
539
+ /* Unselected radio option */
540
+ [data-testid="radio-group"] .selected,
541
+ input[type="radio"] + span {
542
+ background: white !important;
543
+ border: 1.5px solid #ddd !important;
544
+ color: #333 !important;
545
+ }
546
+
547
+ /* Selected/checked radio option */
548
+ [data-testid="radio-group"] input[type="radio"]:checked + span,
549
+ .gr-radio input[type="radio"]:checked ~ span {
550
+ background: #FFF0F4 !important; /* light pinkish tint */
551
+ border-color: #C40D42 !important;
552
+ color: #C40D42 !important;
553
+ font-weight: 600 !important;
554
+ }
555
+
556
  """
557
 
558
  with gr.Blocks(theme=theme, css=css, title="SinhalaVITS Playground") as demo: