Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -345,16 +345,39 @@ div[data-testid="stNumberInput"] button {
|
|
| 345 |
z-index: 2 !important;
|
| 346 |
}
|
| 347 |
|
| 348 |
-
/* آیکونهای سفارشی برای دکمهها */
|
| 349 |
-
div[data-testid="stNumberInput"] button[aria-label="Increase value"]::before
|
|
|
|
| 350 |
content: "+";
|
| 351 |
position: absolute;
|
| 352 |
color: var(--primary) !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 353 |
}
|
|
|
|
| 354 |
div[data-testid="stNumberInput"] button[aria-label="Decrease value"]::before {
|
| 355 |
content: "-";
|
| 356 |
-
|
| 357 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 358 |
}
|
| 359 |
|
| 360 |
/* حذف عناصر سیاه پسزمینه */
|
|
|
|
| 345 |
z-index: 2 !important;
|
| 346 |
}
|
| 347 |
|
| 348 |
+
/* آیکونهای سفارشی برای دکمهها با رنگ بنفش */
|
| 349 |
+
div[data-testid="stNumberInput"] button[aria-label="Increase value"]::before,
|
| 350 |
+
div[data-testid="stNumberInput"] button[aria-label="Decrease value"]::before {
|
| 351 |
content: "+";
|
| 352 |
position: absolute;
|
| 353 |
color: var(--primary) !important;
|
| 354 |
+
font-size: 18px !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-color: transparent !important;
|
| 362 |
}
|
| 363 |
+
|
| 364 |
div[data-testid="stNumberInput"] button[aria-label="Decrease value"]::before {
|
| 365 |
content: "-";
|
| 366 |
+
}
|
| 367 |
+
|
| 368 |
+
/* بازنشانی کامل استایلهای پیشفرض دکمهها */
|
| 369 |
+
div[data-testid="stNumberInput"] button {
|
| 370 |
+
all: unset !important; /* بازنشانی کامل استایلهای پیشفرض */
|
| 371 |
+
width: 36px !important;
|
| 372 |
+
height: 100% !important;
|
| 373 |
+
position: relative !important;
|
| 374 |
+
z-index: 2 !important;
|
| 375 |
+
cursor: pointer !important;
|
| 376 |
+
}
|
| 377 |
+
|
| 378 |
+
/* تضمین نمایش صحیح آیکونها */
|
| 379 |
+
div[data-testid="stNumberInput"] button > * {
|
| 380 |
+
display: none !important; /* مخفی کردن تمام عناصر داخلی دکمه */
|
| 381 |
}
|
| 382 |
|
| 383 |
/* حذف عناصر سیاه پسزمینه */
|