Spaces:
Runtime error
Runtime error
UI: Final CSS fix for global buttons and tooltip readability
Browse files
app.py
CHANGED
|
@@ -55,25 +55,40 @@ st.markdown("""
|
|
| 55 |
background-color: #1a1c1e;
|
| 56 |
border-right: 1px solid rgba(255, 255, 255, 0.05);
|
| 57 |
}
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
.stButton > button {
|
| 61 |
background-color: #dc2626 !important;
|
| 62 |
color: white !important;
|
| 63 |
border: none !important;
|
| 64 |
border-radius: 6px !important;
|
| 65 |
transition: all 0.3s ease !important;
|
| 66 |
}
|
| 67 |
-
|
| 68 |
background-color: #b91c1c !important;
|
| 69 |
transform: translateY(-1px) !important;
|
| 70 |
-
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1)
|
|
|
|
| 71 |
}
|
| 72 |
-
|
| 73 |
background-color: #991b1b !important;
|
| 74 |
transform: translateY(0px) !important;
|
| 75 |
}
|
| 76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
/* Tab and other refinements */
|
| 78 |
.stTabs [data-baseweb="tab-list"] {
|
| 79 |
gap: 24px;
|
|
|
|
| 55 |
background-color: #1a1c1e;
|
| 56 |
border-right: 1px solid rgba(255, 255, 255, 0.05);
|
| 57 |
}
|
| 58 |
+
/* Global Button Styling - Force Red */
|
| 59 |
+
button, [data-testid="stBaseButton-secondary"], [data-testid="stBaseButton-primary"] {
|
|
|
|
| 60 |
background-color: #dc2626 !important;
|
| 61 |
color: white !important;
|
| 62 |
border: none !important;
|
| 63 |
border-radius: 6px !important;
|
| 64 |
transition: all 0.3s ease !important;
|
| 65 |
}
|
| 66 |
+
button:hover, [data-testid="stBaseButton-secondary"]:hover, [data-testid="stBaseButton-primary"]:hover {
|
| 67 |
background-color: #b91c1c !important;
|
| 68 |
transform: translateY(-1px) !important;
|
| 69 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
|
| 70 |
+
color: white !important;
|
| 71 |
}
|
| 72 |
+
button:active {
|
| 73 |
background-color: #991b1b !important;
|
| 74 |
transform: translateY(0px) !important;
|
| 75 |
}
|
| 76 |
|
| 77 |
+
/* Fix Help Tooltips (Black text on white background) */
|
| 78 |
+
div[data-testid="stTooltipContent"] {
|
| 79 |
+
background-color: #ffffff !important;
|
| 80 |
+
color: #000000 !important;
|
| 81 |
+
border: 1px solid #ddd !important;
|
| 82 |
+
}
|
| 83 |
+
div[data-testid="stTooltipContent"] p {
|
| 84 |
+
color: #000000 !important;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
/* Ensure help icons themselves are visible */
|
| 88 |
+
[data-testid="stWidgetLabel"] .st-at {
|
| 89 |
+
color: #dc2626 !important;
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
/* Tab and other refinements */
|
| 93 |
.stTabs [data-baseweb="tab-list"] {
|
| 94 |
gap: 24px;
|