M17idd commited on
Commit
d0b6462
·
1 Parent(s): b65de44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -5
app.py CHANGED
@@ -185,6 +185,7 @@ if not st.session_state.authenticated:
185
  html, body, [class*="css"] {
186
  font-family: 'Vazir', sans-serif;
187
  }
 
188
  /* استایل برای برچسب فیلدهای ورودی */
189
  label {
190
  font-size: 20px !important;
@@ -193,13 +194,20 @@ if not st.session_state.authenticated:
193
  margin-bottom: 10px !important;
194
  display: block;
195
  }
196
- /* استایل برای ورودی‌ها */
197
- input[type="text"], input[type="password"] {
198
- background-color: #ffffff !important;
199
- color: #f8f8f8 !important;
 
 
 
 
 
 
200
  font-size: 18px !important;
201
  font-family: 'Vazir', sans-serif !important;
202
-
 
203
  /* Placeholder style */
204
  ::placeholder {
205
  color: #bbbbbb !important;
@@ -208,6 +216,7 @@ if not st.session_state.authenticated:
208
  }
209
  </style>
210
  """, unsafe_allow_html=True)
 
211
  username = st.text_input("نام کاربری:", placeholder="شناسه خود را وارد کنید",
212
  label_visibility="visible")
213
 
 
185
  html, body, [class*="css"] {
186
  font-family: 'Vazir', sans-serif;
187
  }
188
+
189
  /* استایل برای برچسب فیلدهای ورودی */
190
  label {
191
  font-size: 20px !important;
 
194
  margin-bottom: 10px !important;
195
  display: block;
196
  }
197
+
198
+ /* استایل برای ورودی‌ها در تمام حالت‌ها */
199
+ input[type="text"],
200
+ input[type="password"],
201
+ input[type="text"]:focus,
202
+ input[type="password"]:focus,
203
+ input[type="text"]:hover,
204
+ input[type="password"]:hover {
205
+ background-color: #ffffff !important;
206
+ color: #000000 !important;
207
  font-size: 18px !important;
208
  font-family: 'Vazir', sans-serif !important;
209
+ }
210
+
211
  /* Placeholder style */
212
  ::placeholder {
213
  color: #bbbbbb !important;
 
216
  }
217
  </style>
218
  """, unsafe_allow_html=True)
219
+
220
  username = st.text_input("نام کاربری:", placeholder="شناسه خود را وارد کنید",
221
  label_visibility="visible")
222