shingguy1 commited on
Commit
c160a45
·
verified ·
1 Parent(s): a3bcebc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -1
app.py CHANGED
@@ -94,7 +94,7 @@ st.set_page_config(
94
  layout="centered"
95
  )
96
 
97
- # Custom CSS for kid-friendly styling with dark blue text
98
  st.markdown("""
99
  <style>
100
  .main {
@@ -123,6 +123,29 @@ st.markdown("""
123
  border-radius: 10px;
124
  padding: 10px;
125
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  .stImage {
127
  border: 3px solid #81c784;
128
  border-radius: 10px;
 
94
  layout="centered"
95
  )
96
 
97
+ # Custom CSS for kid-friendly styling with improved readability
98
  st.markdown("""
99
  <style>
100
  .main {
 
123
  border-radius: 10px;
124
  padding: 10px;
125
  }
126
+ /* Style for the file uploader's inner text */
127
+ .stFileUploader div[role="button"] {
128
+ background-color: #333333; /* Darker background for contrast */
129
+ border-radius: 10px;
130
+ padding: 10px;
131
+ }
132
+ .stFileUploader div[role="button"] > div {
133
+ color: #ffeb3b !important; /* Bright yellow text for readability */
134
+ font-size: 16px;
135
+ }
136
+ /* Style for the "Browse files" button inside the file uploader */
137
+ .stFileUploader button {
138
+ background-color: #ffca28 !important; /* Yellow button background */
139
+ color: #ffffff !important; /* White text for readability */
140
+ border-radius: 8px !important;
141
+ border: 1px solid #ffb300 !important;
142
+ padding: 5px 15px !important;
143
+ font-weight: bold !important;
144
+ }
145
+ .stFileUploader button:hover {
146
+ background-color: #ffb300 !important; /* Slightly darker yellow on hover */
147
+ color: #ffffff !important;
148
+ }
149
  .stImage {
150
  border: 3px solid #81c784;
151
  border-radius: 10px;