baconnier commited on
Commit
adb8bfe
1 Parent(s): 3114b44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -9
app.py CHANGED
@@ -252,15 +252,17 @@ class GradioInterface:
252
  background: transparent !important;
253
  }
254
 
255
- /* Radio group styling */
256
- .radio-group {
257
- display: flex !important;
258
- gap: 8px !important;
259
- flex-wrap: wrap !important;
260
- margin: 10px 0 !important;
261
  }
262
 
 
263
  .gradio-radio label {
 
 
264
  padding: 6px 12px !important;
265
  border: 1px solid #ddd !important;
266
  border-radius: 4px !important;
@@ -268,10 +270,20 @@ class GradioInterface:
268
  background: white !important;
269
  }
270
 
 
271
  .gradio-radio input[type="radio"]:checked + label {
272
- background: #e3f2fd !important;
273
- border-color: #2196F3 !important;
274
- color: #2196F3 !important;
 
 
 
 
 
 
 
 
 
275
  }
276
 
277
  /* Textbox styling */
 
252
  background: transparent !important;
253
  }
254
 
255
+ /* Update radio container background color */
256
+ .input-container .gradio-radio {
257
+ background-color: rgba(0, 102, 204, 0.05) !important;
258
+ border-radius: 8px !important;
259
+ padding: 10px !important;
 
260
  }
261
 
262
+ /* Style for radio button labels */
263
  .gradio-radio label {
264
+ display: flex !important;
265
+ align-items: center !important;
266
  padding: 6px 12px !important;
267
  border: 1px solid #ddd !important;
268
  border-radius: 4px !important;
 
270
  background: white !important;
271
  }
272
 
273
+ /* Style for selected radio button */
274
  .gradio-radio input[type="radio"]:checked + label {
275
+ background: rgba(0, 102, 204, 0.1) !important;
276
+ border-color: #0066cc !important;
277
+ color: #0066cc !important;
278
+ font-weight: bold !important;
279
+ }
280
+
281
+ /* Radio group container */
282
+ .radio-group {
283
+ background-color: rgba(0, 102, 204, 0.05) !important;
284
+ padding: 10px !important;
285
+ border-radius: 8px !important;
286
+ border: 1px solid #0066cc !important;
287
  }
288
 
289
  /* Textbox styling */