Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +14 -2
src/streamlit_app.py
CHANGED
|
@@ -23,13 +23,25 @@ st.set_page_config(
|
|
| 23 |
# Custom CSS for a cleaner look
|
| 24 |
st.markdown("""
|
| 25 |
<style>
|
|
|
|
| 26 |
.stButton>button {
|
| 27 |
width: 100%;
|
| 28 |
border-radius: 5px;
|
| 29 |
height: 3em;
|
| 30 |
-
background-color: #f0f2f6;
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
| 32 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
.reportview-container {
|
| 34 |
background: #ffffff;
|
| 35 |
}
|
|
|
|
| 23 |
# Custom CSS for a cleaner look
|
| 24 |
st.markdown("""
|
| 25 |
<style>
|
| 26 |
+
/* Default Button State */
|
| 27 |
.stButton>button {
|
| 28 |
width: 100%;
|
| 29 |
border-radius: 5px;
|
| 30 |
height: 3em;
|
| 31 |
+
background-color: #f0f2f6; /* Light gray background */
|
| 32 |
+
color: #0f172a; /* Dark slate text - THIS FIXES THE INVISIBILITY */
|
| 33 |
+
border: 1px solid #d1d5db; /* Light gray border */
|
| 34 |
+
font-weight: 600; /* Makes the text slightly bolder for readability */
|
| 35 |
+
transition: all 0.2s ease-in-out; /* Smooth hover transition */
|
| 36 |
}
|
| 37 |
+
|
| 38 |
+
/* Hover State */
|
| 39 |
+
.stButton>button:hover {
|
| 40 |
+
background-color: #e2e8f0; /* Slightly darker gray on hover */
|
| 41 |
+
color: #000000; /* Pure black text on hover */
|
| 42 |
+
border-color: #94a3b8; /* Darker border on hover */
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
.reportview-container {
|
| 46 |
background: #ffffff;
|
| 47 |
}
|