James McCool commited on
Commit
de43947
·
1 Parent(s): 6146297

Adding some color splash

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +37 -0
src/streamlit_app.py CHANGED
@@ -28,6 +28,43 @@ simplefilter(action="ignore", category=pd_errors.PerformanceWarning)
28
  poptions.mode.chained_assignment = None # default='warn'
29
  set_option('future.no_silent_downcasting', True)
30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  # Streamlit UI Configuration
32
  st.set_page_config(
33
  page_title="Paydirt Model Updates",
 
28
  poptions.mode.chained_assignment = None # default='warn'
29
  set_option('future.no_silent_downcasting', True)
30
 
31
+ st.markdown("""
32
+ <style>
33
+ /* Tab styling */
34
+ .stElementContainer [data-baseweb="button-group"] {
35
+ gap: 2.000rem;
36
+ padding: 4px;
37
+ }
38
+ .stElementContainer [kind="segmented_control"] {
39
+ height: 2.000rem;
40
+ white-space: pre-wrap;
41
+ background-color: #DAA520;
42
+ color: white;
43
+ border-radius: 20px;
44
+ gap: 1px;
45
+ padding: 10px 20px;
46
+ font-weight: bold;
47
+ transition: all 0.3s ease;
48
+ }
49
+ .stElementContainer [kind="segmented_controlActive"] {
50
+ height: 3.000rem;
51
+ background-color: #DAA520;
52
+ border: 3px solid #FFD700;
53
+ border-radius: 10px;
54
+ color: black;
55
+ }
56
+ .stElementContainer [kind="segmented_control"]:hover {
57
+ background-color: #FFD700;
58
+ cursor: pointer;
59
+ }
60
+
61
+ div[data-baseweb="select"] > div {
62
+ background-color: #DAA520;
63
+ color: white;
64
+ }
65
+
66
+ </style>""", unsafe_allow_html=True)
67
+
68
  # Streamlit UI Configuration
69
  st.set_page_config(
70
  page_title="Paydirt Model Updates",