Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -320,31 +320,35 @@ div[data-baseweb="textarea"] > div:first-child:focus-within {
|
|
| 320 |
font-family: 'B Nazanin' !important;
|
| 321 |
}
|
| 322 |
|
| 323 |
-
/* استایل پایه برای NumberInput */
|
| 324 |
-
div[data-baseweb="input"] > div:first-child {
|
| 325 |
border: 1px solid var(--primary) !important;
|
| 326 |
border-radius: 6px !important;
|
| 327 |
background-color: var(--input-bg) !important;
|
| 328 |
padding: 0 !important;
|
| 329 |
min-height: 40px !important;
|
|
|
|
|
|
|
| 330 |
}
|
| 331 |
|
| 332 |
-
/* استایل
|
| 333 |
-
div[data-baseweb="input"] input {
|
| 334 |
color: var(--text) !important;
|
| 335 |
background-color: transparent !important;
|
| 336 |
border: none !important;
|
| 337 |
padding: 10px 12px !important;
|
|
|
|
|
|
|
| 338 |
font-family: 'B Nazanin' !important;
|
| 339 |
direction: rtl !important;
|
| 340 |
-
|
| 341 |
}
|
| 342 |
|
| 343 |
/* استایل دکمههای افزایش/کاهش */
|
| 344 |
-
div[data-baseweb="input"] button {
|
| 345 |
color: var(--primary) !important;
|
| 346 |
-
background-color:
|
| 347 |
-
border:
|
| 348 |
width: 40px !important;
|
| 349 |
height: 100% !important;
|
| 350 |
font-weight: bold !important;
|
|
@@ -354,20 +358,30 @@ div[data-baseweb="input"] button {
|
|
| 354 |
justify-content: center !important;
|
| 355 |
cursor: pointer !important;
|
| 356 |
transition: all 0.2s ease !important;
|
|
|
|
| 357 |
}
|
| 358 |
|
| 359 |
/* استایل hover برای دکمهها */
|
| 360 |
-
div[data-baseweb="input"] button:hover {
|
| 361 |
background-color: #f0e6ff !important;
|
| 362 |
}
|
| 363 |
|
| 364 |
/* استایل focus */
|
| 365 |
-
div[data-baseweb="input"] > div:first-child:focus-within {
|
| 366 |
border-color: var(--primary) !important;
|
| 367 |
box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.15) !important;
|
| 368 |
outline: none !important;
|
| 369 |
}
|
| 370 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 371 |
|
| 372 |
|
| 373 |
/* کامپوننتهای سفارشی */
|
|
@@ -1295,10 +1309,6 @@ def thank_you_page():
|
|
| 1295 |
✉ ایمیل: maryam.ilka2000@gmail.com
|
| 1296 |
""")
|
| 1297 |
st.balloons()
|
| 1298 |
-
|
| 1299 |
-
if st.button("بازگشت به ابتدا"):
|
| 1300 |
-
st.session_state.clear()
|
| 1301 |
-
st.rerun()
|
| 1302 |
|
| 1303 |
# ========== مدیریت وضعیت و صفحهبندی ==========
|
| 1304 |
def main():
|
|
|
|
| 320 |
font-family: 'B Nazanin' !important;
|
| 321 |
}
|
| 322 |
|
| 323 |
+
/* استایل پایه برای کانتینر اصلی NumberInput */
|
| 324 |
+
div[data-baseweb="input"][data-testid="stNumberInput"] > div:first-child {
|
| 325 |
border: 1px solid var(--primary) !important;
|
| 326 |
border-radius: 6px !important;
|
| 327 |
background-color: var(--input-bg) !important;
|
| 328 |
padding: 0 !important;
|
| 329 |
min-height: 40px !important;
|
| 330 |
+
display: flex !important;
|
| 331 |
+
align-items: center !important;
|
| 332 |
}
|
| 333 |
|
| 334 |
+
/* استایل فیلد ورودی عددی */
|
| 335 |
+
div[data-baseweb="input"][data-testid="stNumberInput"] input {
|
| 336 |
color: var(--text) !important;
|
| 337 |
background-color: transparent !important;
|
| 338 |
border: none !important;
|
| 339 |
padding: 10px 12px !important;
|
| 340 |
+
flex-grow: 1 !important;
|
| 341 |
+
text-align: right !important;
|
| 342 |
font-family: 'B Nazanin' !important;
|
| 343 |
direction: rtl !important;
|
| 344 |
+
min-height: 38px !important;
|
| 345 |
}
|
| 346 |
|
| 347 |
/* استایل دکمههای افزایش/کاهش */
|
| 348 |
+
div[data-baseweb="input"][data-testid="stNumberInput"] button {
|
| 349 |
color: var(--primary) !important;
|
| 350 |
+
background-color: transparent !important;
|
| 351 |
+
border: none !important;
|
| 352 |
width: 40px !important;
|
| 353 |
height: 100% !important;
|
| 354 |
font-weight: bold !important;
|
|
|
|
| 358 |
justify-content: center !important;
|
| 359 |
cursor: pointer !important;
|
| 360 |
transition: all 0.2s ease !important;
|
| 361 |
+
margin: 0 !important;
|
| 362 |
}
|
| 363 |
|
| 364 |
/* استایل hover برای دکمهها */
|
| 365 |
+
div[data-baseweb="input"][data-testid="stNumberInput"] button:hover {
|
| 366 |
background-color: #f0e6ff !important;
|
| 367 |
}
|
| 368 |
|
| 369 |
/* استایل focus */
|
| 370 |
+
div[data-baseweb="input"][data-testid="stNumberInput"] > div:first-child:focus-within {
|
| 371 |
border-color: var(--primary) !important;
|
| 372 |
box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.15) !important;
|
| 373 |
outline: none !important;
|
| 374 |
}
|
| 375 |
|
| 376 |
+
/* استایل لیبل */
|
| 377 |
+
div[data-testid="stNumberInput"] > label {
|
| 378 |
+
color: var(--text) !important;
|
| 379 |
+
font-weight: bold !important;
|
| 380 |
+
margin-bottom: 8px !important;
|
| 381 |
+
font-size: 14px !important;
|
| 382 |
+
display: block !important;
|
| 383 |
+
}
|
| 384 |
+
|
| 385 |
|
| 386 |
|
| 387 |
/* کامپوننتهای سفارشی */
|
|
|
|
| 1309 |
✉ ایمیل: maryam.ilka2000@gmail.com
|
| 1310 |
""")
|
| 1311 |
st.balloons()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1312 |
|
| 1313 |
# ========== مدیریت وضعیت و صفحهبندی ==========
|
| 1314 |
def main():
|