Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -451,6 +451,86 @@ div[data-testid="stVerticalBlock"] > div[data-testid="stHorizontalBlock"] > div
|
|
| 451 |
font-size: 16px !important;
|
| 452 |
}
|
| 453 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 454 |
</style>
|
| 455 |
""", unsafe_allow_html=True)
|
| 456 |
|
|
|
|
| 451 |
font-size: 16px !important;
|
| 452 |
}
|
| 453 |
}
|
| 454 |
+
|
| 455 |
+
/* ======== تنظیمات پایه واکنشگرا ======== */
|
| 456 |
+
:root {
|
| 457 |
+
/* اندازههای پایه بر اساس عرض 375px (آیفون X) */
|
| 458 |
+
--base-font-size: 14px;
|
| 459 |
+
--base-heading1-size: 24px;
|
| 460 |
+
--base-heading2-size: 20px;
|
| 461 |
+
--base-heading3-size: 18px;
|
| 462 |
+
--base-input-font: 16px;
|
| 463 |
+
--base-button-font: 16px;
|
| 464 |
+
}
|
| 465 |
+
|
| 466 |
+
/* ======== تنظیمات پویا بر اساس عرض دستگاه ======== */
|
| 467 |
+
@media (max-width: 400px) {
|
| 468 |
+
:root {
|
| 469 |
+
--base-font-size: 13px;
|
| 470 |
+
--base-heading1-size: 22px;
|
| 471 |
+
--base-heading2-size: 18px;
|
| 472 |
+
--base-heading3-size: 16px;
|
| 473 |
+
--base-input-font: 14px;
|
| 474 |
+
--base-button-font: 14px;
|
| 475 |
+
}
|
| 476 |
+
}
|
| 477 |
+
|
| 478 |
+
@media (min-width: 401px) and (max-width: 768px) {
|
| 479 |
+
:root {
|
| 480 |
+
--base-font-size: 14px;
|
| 481 |
+
--base-heading1-size: 24px;
|
| 482 |
+
--base-heading2-size: 20px;
|
| 483 |
+
--base-heading3-size: 18px;
|
| 484 |
+
--base-input-font: 16px;
|
| 485 |
+
--base-button-font: 16px;
|
| 486 |
+
}
|
| 487 |
+
}
|
| 488 |
+
|
| 489 |
+
/* ======== اعمال اندازههای پویا ======== */
|
| 490 |
+
* {
|
| 491 |
+
font-size: var(--base-font-size) !important;
|
| 492 |
+
}
|
| 493 |
+
|
| 494 |
+
h1 {
|
| 495 |
+
font-size: var(--base-heading1-size) !important;
|
| 496 |
+
}
|
| 497 |
+
|
| 498 |
+
h2 {
|
| 499 |
+
font-size: var(--base-heading2-size) !important;
|
| 500 |
+
}
|
| 501 |
+
|
| 502 |
+
h3 {
|
| 503 |
+
font-size: var(--base-heading3-size) !important;
|
| 504 |
+
}
|
| 505 |
+
|
| 506 |
+
.stTextInput input,
|
| 507 |
+
.stNumberInput input,
|
| 508 |
+
.stSelectbox select,
|
| 509 |
+
.stTextArea textarea {
|
| 510 |
+
font-size: var(--base-input-font) !important;
|
| 511 |
+
}
|
| 512 |
+
|
| 513 |
+
.stButton>button {
|
| 514 |
+
font-size: var(--base-button-font) !important;
|
| 515 |
+
}
|
| 516 |
+
|
| 517 |
+
/* ======== تنظیمات نقشه واکنشگرا ======== */
|
| 518 |
+
.folium-map {
|
| 519 |
+
height: calc(100vw * 0.8) !important; /* ارتفاع متناسب با عرض */
|
| 520 |
+
max-height: 400px !important;
|
| 521 |
+
}
|
| 522 |
+
|
| 523 |
+
/* ======== تنظیمات کانتینرها ======== */
|
| 524 |
+
.price-container,
|
| 525 |
+
.explanation-item {
|
| 526 |
+
padding: calc(var(--base-font-size) * 0.8) !important;
|
| 527 |
+
margin: calc(var(--base-font-size) * 0.5) 0 !important;
|
| 528 |
+
}
|
| 529 |
+
|
| 530 |
+
/* ======== تنظیمات دکمهها ======== */
|
| 531 |
+
.stButton>button {
|
| 532 |
+
padding: calc(var(--base-font-size) * 0.7) calc(var(--base-font-size) * 1.2) !important;
|
| 533 |
+
}
|
| 534 |
</style>
|
| 535 |
""", unsafe_allow_html=True)
|
| 536 |
|