baconnier commited on
Commit
350e113
1 Parent(s): 9dc4dd3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -22
app.py CHANGED
@@ -122,41 +122,40 @@ class GradioInterface:
122
  font-size: 1.2em;
123
  }
124
 
125
- /* Style radio buttons */
126
  .gradio-radio {
127
- display: flex !important;
128
- gap: 8px !important;
129
- background: #f5f5f5 !important;
130
  padding: 8px !important;
131
  border-radius: 4px !important;
132
  }
133
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  .gradio-radio input[type="radio"] {
135
- appearance: none !important;
136
- -webkit-appearance: none !important;
137
  width: 16px !important;
138
  height: 16px !important;
 
139
  border: 2px solid #ddd !important;
140
  border-radius: 50% !important;
141
- margin: 0 !important;
142
- position: relative !important;
143
  }
144
 
 
145
  .gradio-radio input[type="radio"]:checked {
146
  border-color: #2196F3 !important;
147
- background: #2196F3 !important;
148
- }
149
-
150
- .gradio-radio input[type="radio"]:checked::after {
151
- content: '' !important;
152
- width: 8px !important;
153
- height: 8px !important;
154
- background: white !important;
155
- border-radius: 50% !important;
156
- position: absolute !important;
157
- top: 50% !important;
158
- left: 50% !important;
159
- transform: translate(-50%, -50%) !important;
160
  }
161
 
162
  /* Container labels */
@@ -174,7 +173,7 @@ class GradioInterface:
174
  margin: 6px 0;
175
  }
176
 
177
- /* Remove default gradio container styles but keep input borders */
178
  .gradio-container input,
179
  .gradio-container textarea,
180
  .gradio-container select {
 
122
  font-size: 1.2em;
123
  }
124
 
125
+ /* Fix radio button styling */
126
  .gradio-radio {
127
+ background: white !important;
 
 
128
  padding: 8px !important;
129
  border-radius: 4px !important;
130
  }
131
 
132
+ /* Style individual radio options */
133
+ .gradio-radio label {
134
+ display: inline-flex !important;
135
+ align-items: center !important;
136
+ gap: 8px !important;
137
+ padding: 4px 8px !important;
138
+ border-radius: 4px !important;
139
+ cursor: pointer !important;
140
+ background: #f5f5f5 !important;
141
+ border: 1px solid #ddd !important;
142
+ }
143
+
144
+ /* Style the radio input itself */
145
  .gradio-radio input[type="radio"] {
 
 
146
  width: 16px !important;
147
  height: 16px !important;
148
+ margin: 0 !important;
149
  border: 2px solid #ddd !important;
150
  border-radius: 50% !important;
151
+ appearance: auto !important;
152
+ -webkit-appearance: auto !important;
153
  }
154
 
155
+ /* Style selected radio */
156
  .gradio-radio input[type="radio"]:checked {
157
  border-color: #2196F3 !important;
158
+ background-color: #2196F3 !important;
 
 
 
 
 
 
 
 
 
 
 
 
159
  }
160
 
161
  /* Container labels */
 
173
  margin: 6px 0;
174
  }
175
 
176
+ /* Input styling */
177
  .gradio-container input,
178
  .gradio-container textarea,
179
  .gradio-container select {