Maryam Ilka commited on
Commit
c1a1131
·
verified ·
1 Parent(s): f27494e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -4
app.py CHANGED
@@ -219,21 +219,42 @@ st.markdown("""
219
  border-radius: 8px !important;
220
  padding: 10px 20px !important;
221
  font-weight: bold !important;
 
222
  }
223
-
 
 
 
 
 
 
 
 
 
 
224
  /* دکمه ثانویه (سفید با حاشیه بنفش) */
225
  .stFormSubmitButton>button,
226
  [data-testid="baseButton-secondary"],
227
  .reject-btn {
228
- background-color: var(--primary) !important;
229
- color: var(--input-bg) !important;
230
  border: 1px solid var(--primary) !important;
231
  border-radius: 8px !important;
232
  padding: 10px 20px !important;
233
  font-weight: bold !important;
 
234
  }
235
-
236
 
 
 
 
 
 
 
 
 
 
 
237
 
238
  /* ========== استایل تضمینی برای گزینه‌های رادیویی ========== */
239
  /* تمام سطوح لیبل‌ها */
 
219
  border-radius: 8px !important;
220
  padding: 10px 20px !important;
221
  font-weight: bold !important;
222
+ transition: all 0.3s ease !important; /* افزودن transition برای انیمیشن نرم */
223
  }
224
+
225
+ /* افکت hover برای دکمه اصلی */
226
+ .stButton>button:hover,
227
+ [data-testid="baseButton-primary"]:hover,
228
+ .accept-btn:hover,
229
+ div[data-testid="stVerticalBlock"] > div[data-testid="stHorizontalBlock"] > div > div > button:hover {
230
+ background-color: #5a0a96 !important; /* بنفش تیره‌تر */
231
+ transform: translateY(-1px) !important; /* حرکت جزئی به بالا */
232
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important; /* سایه بیشتر */
233
+ }
234
+
235
  /* دکمه ثانویه (سفید با حاشیه بنفش) */
236
  .stFormSubmitButton>button,
237
  [data-testid="baseButton-secondary"],
238
  .reject-btn {
239
+ background-color: var(--input-bg) !important;
240
+ color: var(--primary) !important;
241
  border: 1px solid var(--primary) !important;
242
  border-radius: 8px !important;
243
  padding: 10px 20px !important;
244
  font-weight: bold !important;
245
+ transition: all 0.3s ease !important; /* افزودن transition برای انیمیشن نرم */
246
  }
 
247
 
248
+ /* افکت hover برای دکمه ثانویه */
249
+ .stFormSubmitButton>button:hover,
250
+ [data-testid="baseButton-secondary"]:hover,
251
+ .reject-btn:hover {
252
+ background-color: #f0e6ff !important; /* بنفش بسیار روشن */
253
+ color: var(--primary) !important;
254
+ border-color: #5a0a96 !important; /* حاشیه بنفش تیره‌تر */
255
+ transform: translateY(-1px) !important; /* حرکت جزئی به بالا */
256
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important; /* سایه ملایم */
257
+ }
258
 
259
  /* ========== استایل تضمینی برای گزینه‌های رادیویی ========== */
260
  /* تمام سطوح لیبل‌ها */