Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 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 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
transform: translate(-50%, -50%);
|
| 369 |
color: var(--primary) !important;
|
| 370 |
-
font-size: 1.2rem;
|
| 371 |
-
font-weight: bold;
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
|
|
|
| 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 */
|