Update app.py
Browse files
app.py
CHANGED
|
@@ -320,6 +320,36 @@ CSS_STYLES = """
|
|
| 320 |
color: var(--body-text-color) !important;
|
| 321 |
}
|
| 322 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 323 |
/* Hide the actual tabs since we use the sidebar to control them */
|
| 324 |
.hidden-tabs .tab-nav,
|
| 325 |
.hidden-tabs [role="tablist"] {
|
|
|
|
| 320 |
color: var(--body-text-color) !important;
|
| 321 |
}
|
| 322 |
|
| 323 |
+
/* Custom glossy purple styling for primary action buttons */
|
| 324 |
+
.gradio-container button.primary {
|
| 325 |
+
border: 1px solid rgba(99, 102, 241, 0.35) !important;
|
| 326 |
+
background: linear-gradient(180deg, rgba(99, 102, 241, 0.25), rgba(59, 130, 246, 0.20)) !important;
|
| 327 |
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 4px rgba(0, 0, 0, 0.15) !important;
|
| 328 |
+
color: rgba(255, 255, 255, 0.95) !important;
|
| 329 |
+
transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .06s ease !important;
|
| 330 |
+
}
|
| 331 |
+
.gradio-container button.primary:hover {
|
| 332 |
+
border-color: rgba(99, 102, 241, 0.5) !important;
|
| 333 |
+
background: linear-gradient(180deg, rgba(99, 102, 241, 0.35), rgba(59, 130, 246, 0.28)) !important;
|
| 334 |
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 3px 6px rgba(0, 0, 0, 0.2) !important;
|
| 335 |
+
}
|
| 336 |
+
.gradio-container button.primary:active {
|
| 337 |
+
transform: scale(0.98) !important;
|
| 338 |
+
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
|
| 339 |
+
}
|
| 340 |
+
@media (prefers-color-scheme: light) {
|
| 341 |
+
.gradio-container button.primary {
|
| 342 |
+
border-color: rgba(99, 102, 241, 0.4) !important;
|
| 343 |
+
background: linear-gradient(180deg, rgba(99, 102, 241, 0.85), rgba(79, 70, 229, 0.75)) !important;
|
| 344 |
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 4px rgba(0, 0, 0, 0.12) !important;
|
| 345 |
+
color: rgba(255, 255, 255, 0.98) !important;
|
| 346 |
+
}
|
| 347 |
+
.gradio-container button.primary:hover {
|
| 348 |
+
background: linear-gradient(180deg, rgba(99, 102, 241, 0.95), rgba(79, 70, 229, 0.85)) !important;
|
| 349 |
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 6px rgba(0, 0, 0, 0.15) !important;
|
| 350 |
+
}
|
| 351 |
+
}
|
| 352 |
+
|
| 353 |
/* Hide the actual tabs since we use the sidebar to control them */
|
| 354 |
.hidden-tabs .tab-nav,
|
| 355 |
.hidden-tabs [role="tablist"] {
|