Spaces:
Running
Running
Add custom CSS to resolve whiteout effect when hovering on tabs
Browse files
app.py
CHANGED
|
@@ -186,7 +186,17 @@ custom_theme = gr.themes.Default(
|
|
| 186 |
button_primary_background_fill_hover_dark="#9370db"
|
| 187 |
)
|
| 188 |
|
| 189 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 190 |
gr.HTML(
|
| 191 |
"""
|
| 192 |
<div style="text-align: center; margin-bottom: 20px; padding-top: 10px;">
|
|
@@ -284,4 +294,4 @@ with gr.Blocks(title="ReLiveStream - Interactive Replay", theme=custom_theme) as
|
|
| 284 |
)
|
| 285 |
|
| 286 |
if __name__ == "__main__":
|
| 287 |
-
demo.launch(theme=custom_theme)
|
|
|
|
| 186 |
button_primary_background_fill_hover_dark="#9370db"
|
| 187 |
)
|
| 188 |
|
| 189 |
+
custom_css = """
|
| 190 |
+
.tab-container button:hover,
|
| 191 |
+
button[role="tab"]:hover,
|
| 192 |
+
.tab-wrapper button:hover,
|
| 193 |
+
.tabs button:hover {
|
| 194 |
+
background-color: rgba(255, 255, 255, 0.08) !important;
|
| 195 |
+
color: #fffffe !important;
|
| 196 |
+
}
|
| 197 |
+
"""
|
| 198 |
+
|
| 199 |
+
with gr.Blocks(title="ReLiveStream - Interactive Replay", theme=custom_theme, css=custom_css) as demo:
|
| 200 |
gr.HTML(
|
| 201 |
"""
|
| 202 |
<div style="text-align: center; margin-bottom: 20px; padding-top: 10px;">
|
|
|
|
| 294 |
)
|
| 295 |
|
| 296 |
if __name__ == "__main__":
|
| 297 |
+
demo.launch(theme=custom_theme, css=custom_css)
|