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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -28
app.py CHANGED
@@ -335,45 +335,47 @@ div[data-testid="stNumberInput"] button > div {
335
  div[data-testid="stNumberInput"] button > div,
336
  div[data-testid="stNumberInput"] button > svg {
337
  display: none !important;
 
338
  }
339
 
340
- /* استایل پایه برای دکمه‌ها */
341
  div[data-testid="stNumberInput"] button {
342
- all: unset !important;
343
- width: 36px !important;
344
- height: 100% !important;
345
  position: relative !important;
346
- cursor: pointer !important;
347
- color: transparent !important;
348
  }
349
 
350
- /* ایجاد آیکون + برای دکمه افزایش */
351
- div[data-testid="stNumberInput"] button[aria-label="Increase value"]::before {
352
  content: "+";
353
- position: absolute;
354
- top: 50%;
355
- left: 50%;
356
- transform: translate(-50%, -50%);
357
  color: var(--primary) !important;
358
- font-size: 1.2rem;
359
- font-weight: bold;
 
 
 
 
 
 
360
  }
361
 
362
- /* ایجاد آیکون - برای دکمه کاهش */
363
- div[data-testid="stNumberInput"] button[aria-label="Decrease value"]::before {
364
- content: "-";
365
- position: absolute;
366
- top: 50%;
367
- left: 50%;
368
- transform: translate(-50%, -50%);
369
  color: var(--primary) !important;
370
- font-size: 1.2rem;
371
- font-weight: bold;
372
- }
373
-
374
- /* حذف هرگونه محتوای اضافی */
375
- div[data-testid="stNumberInput"] button span {
376
- display: none !important;
 
377
  }
378
 
379
  /* بازنشانی کامل استایل‌های Streamlit */
 
335
  div[data-testid="stNumberInput"] button > div,
336
  div[data-testid="stNumberInput"] button > svg {
337
  display: none !important;
338
+ visibility: hidden !important;
339
  }
340
 
341
+ /* ایجاد آیکون‌های سفارشی با رنگ بنفش */
342
  div[data-testid="stNumberInput"] button {
 
 
 
343
  position: relative !important;
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;
352
+ transform: translate(-50%, -50%) !important;
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;
369
+ transform: translate(-50%, -50%) !important;
 
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 */