rimasalshehri commited on
Commit
bba530b
·
verified ·
1 Parent(s): 07ccb9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -2
app.py CHANGED
@@ -15,8 +15,17 @@ st.markdown(
15
  section[data-testid="stSidebar"] p, section[data-testid="stSidebar"] label { color: white; }
16
  input, textarea, select, .stFileUploader { background-color: white !important; border: 2px solid #084C3C !important; color: #084C3C !important; border-radius: 5px !important; }
17
  input:focus, textarea:focus, select:focus, .stFileUploader:focus { border: 2px solid #7FDB8B !important; outline: none !important; }
18
- div[data-testid="stFormSubmitButton"] button, div.stButton > button { background-color: #084C3C !important; color: white !important; border-radius: 10px !important; padding: 10px 20px !important; border: none !important; }
19
- div[data-testid="stFormSubmitButton"] button:hover, div.stButton > button:hover { background-color: #7FDB8B !important; color: #084C3C !important; }
 
 
 
 
 
 
 
 
 
20
  table { border-collapse: collapse; width: 100%; background-color: #E4ECE3; }
21
  th, td { border: 1px solid #084C3C; text-align: left; padding: 10px; color: #084C3C; }
22
  th { background-color: #7FDB8B; }
@@ -31,12 +40,28 @@ st.markdown(
31
  div[data-testid="stMarkdownContainer"] p {
32
  color: #084C3C !important;
33
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  </style>
35
  """,
36
  unsafe_allow_html=True
37
  )
38
 
39
 
 
40
  # Sample user data for login
41
  users = {
42
  "manager123": {"password": "managerpass", "role": "Manager"},
 
15
  section[data-testid="stSidebar"] p, section[data-testid="stSidebar"] label { color: white; }
16
  input, textarea, select, .stFileUploader { background-color: white !important; border: 2px solid #084C3C !important; color: #084C3C !important; border-radius: 5px !important; }
17
  input:focus, textarea:focus, select:focus, .stFileUploader:focus { border: 2px solid #7FDB8B !important; outline: none !important; }
18
+ div[data-testid="stFormSubmitButton"] button, div.stButton > button {
19
+ background-color: #084C3C !important; /* Dark green background */
20
+ color: white !important; /* White text */
21
+ border-radius: 10px !important; /* Rounded corners */
22
+ padding: 10px 20px !important; /* Button padding */
23
+ border: none !important; /* Remove border */
24
+ }
25
+ div[data-testid="stFormSubmitButton"] button:hover, div.stButton > button:hover {
26
+ background-color: #7FDB8B !important; /* Slightly lighter green on hover */
27
+ color: #084C3C !important; /* Dark green text on hover */
28
+ }
29
  table { border-collapse: collapse; width: 100%; background-color: #E4ECE3; }
30
  th, td { border: 1px solid #084C3C; text-align: left; padding: 10px; color: #084C3C; }
31
  th { background-color: #7FDB8B; }
 
40
  div[data-testid="stMarkdownContainer"] p {
41
  color: #084C3C !important;
42
  }
43
+
44
+ /* Submit button custom styling */
45
+ div[data-testid="stFormSubmitButton"] button {
46
+ background-color: #084C3C !important; /* Dark green background */
47
+ color: white !important; /* White text */
48
+ border: none !important; /* Remove border */
49
+ border-radius: 5px !important; /* Rounded corners */
50
+ padding: 10px 20px !important; /* Button padding */
51
+ }
52
+
53
+ div[data-testid="stFormSubmitButton"] button:focus,
54
+ div[data-testid="stFormSubmitButton"] button:hover {
55
+ background-color: #066B4E !important; /* Slightly lighter green on hover/focus */
56
+ color: white !important; /* Keep white text on hover/focus */
57
+ }
58
  </style>
59
  """,
60
  unsafe_allow_html=True
61
  )
62
 
63
 
64
+
65
  # Sample user data for login
66
  users = {
67
  "manager123": {"password": "managerpass", "role": "Manager"},