James McCool commited on
Commit
01098c7
·
1 Parent(s): 1c8450a

Refine CSS styles in Streamlit app by adjusting segmented control dimensions and padding for improved visual consistency and user experience.

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +6 -5
src/streamlit_app.py CHANGED
@@ -39,25 +39,26 @@ st.markdown("""
39
  <style>
40
  /* Tab styling */
41
  .stElementContainer [data-baseweb="button-group"] {
42
- gap: 8px;
43
  padding: 4px;
44
  }
45
  .stElementContainer [kind="segmented_control"] {
46
- height: 45px;
47
  white-space: pre-wrap;
48
  background-color: #DAA520;
49
  color: white;
50
- border-radius: 10px;
51
  gap: 1px;
52
  padding: 10px 20px;
53
  font-weight: bold;
54
  transition: all 0.3s ease;
55
  }
56
  .stElementContainer [kind="segmented_controlActive"] {
57
- height: 50px;
58
  background-color: #DAA520;
59
  border: 3px solid #FFD700;
60
- color: white;
 
61
  }
62
  .stElementContainer [kind="segmented_control"]:hover {
63
  background-color: #FFD700;
 
39
  <style>
40
  /* Tab styling */
41
  .stElementContainer [data-baseweb="button-group"] {
42
+ gap: 2.000rem;
43
  padding: 4px;
44
  }
45
  .stElementContainer [kind="segmented_control"] {
46
+ height: 2.000rem;
47
  white-space: pre-wrap;
48
  background-color: #DAA520;
49
  color: white;
50
+ border-radius: 20px;
51
  gap: 1px;
52
  padding: 10px 20px;
53
  font-weight: bold;
54
  transition: all 0.3s ease;
55
  }
56
  .stElementContainer [kind="segmented_controlActive"] {
57
+ height: 3.000rem;
58
  background-color: #DAA520;
59
  border: 3px solid #FFD700;
60
+ border-radius: 10px;
61
+ color: black;
62
  }
63
  .stElementContainer [kind="segmented_control"]:hover {
64
  background-color: #FFD700;