Spaces:
Running
Running
James McCool
commited on
Commit
·
7c7434b
1
Parent(s):
6b3aa60
Update styling in Streamlit app to enhance button appearance, including adjustments to gap, height, border-radius, and color for segmented controls
Browse files- src/streamlit_app.py +6 -5
src/streamlit_app.py
CHANGED
|
@@ -33,25 +33,26 @@ st.markdown("""
|
|
| 33 |
<style>
|
| 34 |
/* Tab styling */
|
| 35 |
.stElementContainer [data-baseweb="button-group"] {
|
| 36 |
-
gap:
|
| 37 |
padding: 4px;
|
| 38 |
}
|
| 39 |
.stElementContainer [kind="segmented_control"] {
|
| 40 |
-
height:
|
| 41 |
white-space: pre-wrap;
|
| 42 |
background-color: #DAA520;
|
| 43 |
color: white;
|
| 44 |
-
border-radius:
|
| 45 |
gap: 1px;
|
| 46 |
padding: 10px 20px;
|
| 47 |
font-weight: bold;
|
| 48 |
transition: all 0.3s ease;
|
| 49 |
}
|
| 50 |
.stElementContainer [kind="segmented_controlActive"] {
|
| 51 |
-
height:
|
| 52 |
background-color: #DAA520;
|
| 53 |
border: 3px solid #FFD700;
|
| 54 |
-
|
|
|
|
| 55 |
}
|
| 56 |
.stElementContainer [kind="segmented_control"]:hover {
|
| 57 |
background-color: #FFD700;
|
|
|
|
| 33 |
<style>
|
| 34 |
/* Tab styling */
|
| 35 |
.stElementContainer [data-baseweb="button-group"] {
|
| 36 |
+
gap: 2.000rem;
|
| 37 |
padding: 4px;
|
| 38 |
}
|
| 39 |
.stElementContainer [kind="segmented_control"] {
|
| 40 |
+
height: 2.000rem;
|
| 41 |
white-space: pre-wrap;
|
| 42 |
background-color: #DAA520;
|
| 43 |
color: white;
|
| 44 |
+
border-radius: 20px;
|
| 45 |
gap: 1px;
|
| 46 |
padding: 10px 20px;
|
| 47 |
font-weight: bold;
|
| 48 |
transition: all 0.3s ease;
|
| 49 |
}
|
| 50 |
.stElementContainer [kind="segmented_controlActive"] {
|
| 51 |
+
height: 3.000rem;
|
| 52 |
background-color: #DAA520;
|
| 53 |
border: 3px solid #FFD700;
|
| 54 |
+
border-radius: 10px;
|
| 55 |
+
color: black;
|
| 56 |
}
|
| 57 |
.stElementContainer [kind="segmented_control"]:hover {
|
| 58 |
background-color: #FFD700;
|