Upload app.py
Browse files
app.py
CHANGED
|
@@ -116,7 +116,7 @@ a{ color:var(--primary-700)!important; }
|
|
| 116 |
#results_hdr > .gr-column:first-child{ justify-self:start !important; }
|
| 117 |
#results_hdr > .gr-column:last-child{ justify-self:end !important; }
|
| 118 |
|
| 119 |
-
/* Language toggle (gr.Radio):
|
| 120 |
.lang_toggle{
|
| 121 |
background: transparent !important;
|
| 122 |
justify-self:end !important;
|
|
@@ -138,6 +138,45 @@ a{ color:var(--primary-700)!important; }
|
|
| 138 |
display:none!important;
|
| 139 |
}
|
| 140 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
/* Remove Gradio's default label styling completely */
|
| 142 |
.lang_toggle label{
|
| 143 |
background:transparent!important;
|
|
|
|
| 116 |
#results_hdr > .gr-column:first-child{ justify-self:start !important; }
|
| 117 |
#results_hdr > .gr-column:last-child{ justify-self:end !important; }
|
| 118 |
|
| 119 |
+
/* Language toggle (gr.Radio): style the LABEL as the button (robust across Gradio DOM variants) */
|
| 120 |
.lang_toggle{
|
| 121 |
background: transparent !important;
|
| 122 |
justify-self:end !important;
|
|
|
|
| 138 |
display:none!important;
|
| 139 |
}
|
| 140 |
|
| 141 |
+
/* Kill any default Gradio "pill" styling inside */
|
| 142 |
+
.lang_toggle label *{
|
| 143 |
+
background:transparent!important;
|
| 144 |
+
box-shadow:none!important;
|
| 145 |
+
border:0!important;
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
/* The actual button */
|
| 149 |
+
.lang_toggle label{
|
| 150 |
+
display:inline-flex !important;
|
| 151 |
+
align-items:center !important;
|
| 152 |
+
justify-content:center !important;
|
| 153 |
+
cursor:pointer !important;
|
| 154 |
+
user-select:none !important;
|
| 155 |
+
|
| 156 |
+
padding:0.35rem 0.85rem !important;
|
| 157 |
+
font-size:0.95rem !important;
|
| 158 |
+
border-radius:10px !important;
|
| 159 |
+
|
| 160 |
+
border:1px solid var(--primary-600) !important;
|
| 161 |
+
background: var(--primary-200) !important; /* inactive: lighter than #89AFA9 */
|
| 162 |
+
color:#0b1b19 !important; /* black-ish */
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
/* Active/selected */
|
| 166 |
+
.lang_toggle label:has(input:checked){
|
| 167 |
+
background: #89AFA9 !important;
|
| 168 |
+
border-color: var(--primary-600) !important;
|
| 169 |
+
color:#0b1b19 !important;
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
/* Hover: show #89AFA9 (inactive becomes active color on hover) */
|
| 173 |
+
.lang_toggle label:hover{
|
| 174 |
+
background:#89AFA9 !important;
|
| 175 |
+
border-color: var(--primary-600) !important;
|
| 176 |
+
color:#0b1b19 !important;
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
|
| 180 |
/* Remove Gradio's default label styling completely */
|
| 181 |
.lang_toggle label{
|
| 182 |
background:transparent!important;
|