GSMEthesis commited on
Commit
46f1bba
·
verified ·
1 Parent(s): e9a262b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -15
app.py CHANGED
@@ -319,38 +319,47 @@ div[data-baseweb="textarea"] > div:first-child:focus-within {
319
  font-family: 'B Nazanin' !important;
320
  }
321
 
322
- /* استایل دکمه‌های افزایش/کاهش */
323
- div[data-baseweb="input"][data-testid="stNumberInput"] button {
 
324
  color: var(--primary) !important;
325
  background-color: transparent !important;
326
  border: none !important;
327
- width: 30px !important;
328
  height: 100% !important;
329
  font-weight: bold !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
330
  }
331
 
332
  /* استایل hover برای دکمه‌ها */
333
- div[data-baseweb="input"][data-testid="stNumberInput"] button:hover {
334
  background-color: #f0e6ff !important;
335
  }
336
 
337
  /* استایل focus */
338
- div[data-baseweb="input"][data-testid="stNumberInput"] > div:first-child:focus-within {
339
  border-color: var(--primary) !important;
340
  box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.15) !important;
341
  outline: none !important;
342
  }
343
 
344
- /* استایل لیبل */
345
- div[data-testid="stNumberInput"] > label {
346
- color: var(--text) !important;
347
- font-weight: bold !important;
348
- margin-bottom: 8px !important;
349
- font-size: 14px !important;
350
- display: block !important;
351
- }
352
-
353
-
354
 
355
  /* کامپوننت‌های سفارشی */
356
  .rahyar-header {
 
319
  font-family: 'B Nazanin' !important;
320
  }
321
 
322
+ /* استایل دکمه‌های افزایش/کاهش - راه حل قطعی */
323
+ div[data-testid="stNumberInput"] button[aria-label="Increase value"],
324
+ div[data-testid="stNumberInput"] button[aria-label="Decrease value"] {
325
  color: var(--primary) !important;
326
  background-color: transparent !important;
327
  border: none !important;
328
+ width: 36px !important;
329
  height: 100% !important;
330
  font-weight: bold !important;
331
+ font-size: 16px !important;
332
+ display: flex !important;
333
+ align-items: center !important;
334
+ justify-content: center !important;
335
+ cursor: pointer !important;
336
+ transition: all 0.2s ease !important;
337
+ margin: 0 !important;
338
+ position: relative !important;
339
+ }
340
+
341
+ /* آیکون دکمه‌ها */
342
+ div[data-testid="stNumberInput"] button[aria-label="Increase value"]::after,
343
+ div[data-testid="stNumberInput"] button[aria-label="Decrease value"]::after {
344
+ content: "+";
345
+ position: absolute !important;
346
+ }
347
+ div[data-testid="stNumberInput"] button[aria-label="Decrease value"]::after {
348
+ content: "-";
349
  }
350
 
351
  /* استایل hover برای دکمه‌ها */
352
+ div[data-testid="stNumberInput"] button:hover {
353
  background-color: #f0e6ff !important;
354
  }
355
 
356
  /* استایل focus */
357
+ div[data-testid="stNumberInput"] > div:focus-within {
358
  border-color: var(--primary) !important;
359
  box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.15) !important;
360
  outline: none !important;
361
  }
362
 
 
 
 
 
 
 
 
 
 
 
363
 
364
  /* کامپوننت‌های سفارشی */
365
  .rahyar-header {