James McCool commited on
Commit
ec8a6ab
·
1 Parent(s): f07d6e2

Update Streamlit app styles by changing CSS selectors for segmented control components, enhancing consistency and maintainability of the UI.

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +3 -3
src/streamlit_app.py CHANGED
@@ -42,7 +42,7 @@ st.markdown("""
42
  gap: 8px;
43
  padding: 4px;
44
  }
45
- .stElementContainer [data-baseweb="stBaseButton-segmented_control"] {
46
  height: 50px;
47
  white-space: pre-wrap;
48
  background-color: #DAA520;
@@ -53,12 +53,12 @@ st.markdown("""
53
  font-weight: bold;
54
  transition: all 0.3s ease;
55
  }
56
- .stElementContainer [data-baseweb="stBaseButton-segmented_controlActive"] {
57
  background-color: #DAA520;
58
  border: 3px solid #FFD700;
59
  color: white;
60
  }
61
- .stElementContainer [data-baseweb="stBaseButton-segmented_control"]:hover {
62
  background-color: #FFD700;
63
  cursor: pointer;
64
  }
 
42
  gap: 8px;
43
  padding: 4px;
44
  }
45
+ .stElementContainer [kind="segmented_control"] {
46
  height: 50px;
47
  white-space: pre-wrap;
48
  background-color: #DAA520;
 
53
  font-weight: bold;
54
  transition: all 0.3s ease;
55
  }
56
+ .stElementContainer [kind="segmented_controlActive"] {
57
  background-color: #DAA520;
58
  border: 3px solid #FFD700;
59
  color: white;
60
  }
61
+ .stElementContainer [kind="segmented_control"]:hover {
62
  background-color: #FFD700;
63
  cursor: pointer;
64
  }