Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -326,58 +326,53 @@ div[data-testid="stNumberInput"] > div > div:last-child {
|
|
| 326 |
border: none !important;
|
| 327 |
}
|
| 328 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 329 |
/* حذف کامل عناصر داخلی ناخواسته */
|
| 330 |
div[data-testid="stNumberInput"] button > div,
|
| 331 |
div[data-testid="stNumberInput"] button > svg {
|
| 332 |
display: none !important;
|
| 333 |
-
visibility: hidden !important;
|
| 334 |
}
|
| 335 |
|
| 336 |
-
/* ا
|
| 337 |
-
div[data-testid="stNumberInput"] button {
|
| 338 |
-
position: relative !important;
|
| 339 |
-
color: transparent !important; /* مخفی کردن متن پیشفرض */
|
| 340 |
-
}
|
| 341 |
-
|
| 342 |
-
div[data-testid="stNumberInput"] button::after {
|
| 343 |
-
content: "+";
|
| 344 |
-
position: absolute !important;
|
| 345 |
-
top: 50% !important;
|
| 346 |
-
left: 50% !important;
|
| 347 |
-
transform: translate(-50%, -50%) !important;
|
| 348 |
-
color: var(--primary) !important;
|
| 349 |
-
font-size: 1.2rem !important;
|
| 350 |
-
font-weight: bold !important;
|
| 351 |
-
width: 100% !important;
|
| 352 |
-
height: 100% !important;
|
| 353 |
-
display: flex !important;
|
| 354 |
-
align-items: center !important;
|
| 355 |
-
justify-content: center !important;
|
| 356 |
-
background: transparent !important;
|
| 357 |
-
}
|
| 358 |
-
|
| 359 |
-
div[data-testid="stNumberInput"] button[aria-label="Decrease value"]::after {
|
| 360 |
-
content: "-" !important;
|
| 361 |
-
}
|
| 362 |
-
|
| 363 |
-
/* بازنشانی کامل استایلهای Streamlit */
|
| 364 |
div[data-testid="stNumberInput"] button {
|
| 365 |
all: unset !important;
|
| 366 |
width: 36px !important;
|
| 367 |
height: 100% !important;
|
| 368 |
position: relative !important;
|
| 369 |
cursor: pointer !important;
|
| 370 |
-
|
| 371 |
}
|
| 372 |
|
| 373 |
-
/*
|
| 374 |
-
div[data-testid="stNumberInput"] button:
|
| 375 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 376 |
color: var(--primary) !important;
|
|
|
|
|
|
|
| 377 |
}
|
| 378 |
|
| 379 |
-
/*
|
| 380 |
-
div[data-testid="stNumberInput"] button
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 381 |
display: none !important;
|
| 382 |
}
|
| 383 |
|
|
|
|
| 326 |
border: none !important;
|
| 327 |
}
|
| 328 |
|
| 329 |
+
/* حذف عناصر سیاه پسزمینه */
|
| 330 |
+
div[data-testid="stNumberInput"] button > div {
|
| 331 |
+
display: none !important;
|
| 332 |
+
}
|
| 333 |
+
|
| 334 |
/* حذف کامل عناصر داخلی ناخواسته */
|
| 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 |
|