GSMEthesis commited on
Commit
088182c
·
verified ·
1 Parent(s): c875b64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -16
app.py CHANGED
@@ -344,8 +344,9 @@ div[data-testid="stNumberInput"] button {
344
  color: transparent !important; /* مخفی کردن متن پیش‌فرض */
345
  }
346
 
347
- div[data-testid="stNumberInput"] button::after {
348
- content: "+";
 
349
  position: absolute !important;
350
  top: 50% !important;
351
  left: 50% !important;
@@ -353,16 +354,11 @@ div[data-testid="stNumberInput"] button::after {
353
  color: var(--primary) !important;
354
  font-size: 1.2rem !important;
355
  font-weight: bold !important;
356
- width: 100% !important;
357
- height: 100% !important;
358
- display: flex !important;
359
- align-items: center !important;
360
- justify-content: center !important;
361
- background: transparent !important;
362
  }
363
 
364
- div[data-testid="stNumberInput"] button[aria-label="Decrease value"]::after {
365
- content: "-" !important;
 
366
  position: absolute !important;
367
  top: 50% !important;
368
  left: 50% !important;
@@ -370,12 +366,6 @@ div[data-testid="stNumberInput"] button[aria-label="Decrease value"]::after {
370
  color: var(--primary) !important;
371
  font-size: 1.2rem !important;
372
  font-weight: bold !important;
373
- width: 100% !important;
374
- height: 100% !important;
375
- display: flex !important;
376
- align-items: center !important;
377
- justify-content: center !important;
378
- background: transparent !important;
379
  }
380
 
381
  /* بازنشانی کامل استایل‌های Streamlit */
 
344
  color: transparent !important; /* مخفی کردن متن پیش‌فرض */
345
  }
346
 
347
+ /* دکمه سمت راست (کاهش) */
348
+ div[data-testid="stNumberInput"] button:first-child::after {
349
+ content: "-" !important;
350
  position: absolute !important;
351
  top: 50% !important;
352
  left: 50% !important;
 
354
  color: var(--primary) !important;
355
  font-size: 1.2rem !important;
356
  font-weight: bold !important;
 
 
 
 
 
 
357
  }
358
 
359
+ /* دکمه سمت چپ (افزایش) */
360
+ div[data-testid="stNumberInput"] button:last-child::after {
361
+ content: "+" !important;
362
  position: absolute !important;
363
  top: 50% !important;
364
  left: 50% !important;
 
366
  color: var(--primary) !important;
367
  font-size: 1.2rem !important;
368
  font-weight: bold !important;
 
 
 
 
 
 
369
  }
370
 
371
  /* بازنشانی کامل استایل‌های Streamlit */