Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,14 +57,14 @@ html, body, .stApp {
|
|
| 57 |
width: 100% !important;
|
| 58 |
}
|
| 59 |
|
| 60 |
-
|
| 61 |
-
/* ======== کادر موبایل برای دسکتاپ ======== */
|
| 62 |
@media (min-width: 768px) {
|
| 63 |
body {
|
| 64 |
background: #f0f0f0 !important;
|
| 65 |
display: flex !important;
|
| 66 |
justify-content: center !important;
|
| 67 |
align-items: center !important;
|
|
|
|
|
|
|
| 68 |
}
|
| 69 |
|
| 70 |
[data-testid="stAppViewContainer"] {
|
|
@@ -76,15 +76,27 @@ html, body, .stApp {
|
|
| 76 |
box-shadow: 0 0 0 6px #666, 0 0 30px rgba(0,0,0,0.5) !important;
|
| 77 |
background-color: var(--background) !important;
|
| 78 |
color: var(--text) !important;
|
| 79 |
-
overflow-y: auto !important; /*
|
| 80 |
-
overflow-x: hidden !important;
|
| 81 |
-
|
|
|
|
|
|
|
| 82 |
|
| 83 |
-
/* ت
|
| 84 |
-
|
| 85 |
-
width:
|
| 86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
}
|
|
|
|
| 88 |
/* دکمه هوم مجازی */
|
| 89 |
[data-testid="stAppViewContainer"]::after {
|
| 90 |
content: "";
|
|
@@ -97,45 +109,14 @@ html, body, .stApp {
|
|
| 97 |
background: #333;
|
| 98 |
border-radius: 2px;
|
| 99 |
}
|
| 100 |
-
|
| 101 |
-
/* تنظیمات اصلی */
|
| 102 |
-
body, .stApp, [data-testid="stAppViewContainer"] {
|
| 103 |
-
background-color: var(--background) !important;
|
| 104 |
-
color: var(--text) !important;
|
| 105 |
-
}
|
| 106 |
-
|
| 107 |
-
[data-testid="stAppViewContainer"],
|
| 108 |
-
.stApp {
|
| 109 |
-
overflow-y: auto !important; /* اجازه اسکرول عمودی */
|
| 110 |
-
overflow-x: hidden !important; /* جلوگیری از اسکرول افقی */
|
| 111 |
-
}
|
| 112 |
|
| 113 |
-
/* اطمینان از ارتفاع صددرصدی برای stApp */
|
| 114 |
.stApp {
|
|
|
|
| 115 |
height: 100% !important;
|
| 116 |
-
|
| 117 |
-
}
|
| 118 |
-
[data-testid="stAppViewContainer"]::-webkit-scrollbar {
|
| 119 |
-
width: 8px;
|
| 120 |
}
|
| 121 |
-
|
| 122 |
-
[data-testid="stAppViewContainer"]::-webkit-scrollbar-track {
|
| 123 |
-
background: #f1f1f1;
|
| 124 |
-
border-radius: 4px;
|
| 125 |
-
}
|
| 126 |
-
|
| 127 |
-
[data-testid="stAppViewContainer"]::-webkit-scrollbar-thumb {
|
| 128 |
-
background: #6a0dad;
|
| 129 |
-
border-radius: 4px;
|
| 130 |
-
}
|
| 131 |
-
|
| 132 |
-
[data-testid="stAppViewContainer"]::-webkit-scrollbar-thumb:hover {
|
| 133 |
-
background: #5a0a96;
|
| 134 |
-
}
|
| 135 |
-
|
| 136 |
}
|
| 137 |
|
| 138 |
-
|
| 139 |
/* هدر راهیار */
|
| 140 |
.rahyar-title {
|
| 141 |
color: var(--primary) !important;
|
|
@@ -552,50 +533,6 @@ h3 {
|
|
| 552 |
padding: calc(var(--base-font-size) * 0.7) calc(var(--base-font-size) * 1.2) !important;
|
| 553 |
}
|
| 554 |
|
| 555 |
-
@media (min-width: 768px) {
|
| 556 |
-
/* اسکرول برای کادر موبایلی و محتوا */
|
| 557 |
-
[data-testid="stAppViewContainer"] {
|
| 558 |
-
overflow-y: auto !important;
|
| 559 |
-
overflow-x: hidden !important;
|
| 560 |
-
height: 667px !important;
|
| 561 |
-
}
|
| 562 |
-
|
| 563 |
-
.stApp {
|
| 564 |
-
height: 100% !important;
|
| 565 |
-
overflow-y: auto !important;
|
| 566 |
-
padding: 0 5px !important; /* ← برای پدینگ چپ و راست */
|
| 567 |
-
}
|
| 568 |
-
|
| 569 |
-
/* اطمینان از اینکه Scroll کار میکنه */
|
| 570 |
-
html, body {
|
| 571 |
-
height: 100% !important;
|
| 572 |
-
}
|
| 573 |
-
|
| 574 |
-
body {
|
| 575 |
-
overflow: hidden !important; /* این اجازه میده اسکرول فقط در stApp باشه */
|
| 576 |
-
}
|
| 577 |
-
/* استایل کامل و مشخص برای scrollbar در دسکتاپ */
|
| 578 |
-
[data-testid="stAppViewContainer"]::-webkit-scrollbar {
|
| 579 |
-
width: 8px; /* ضخامت مشخص */
|
| 580 |
-
}
|
| 581 |
-
|
| 582 |
-
[data-testid="stAppViewContainer"]::-webkit-scrollbar-track {
|
| 583 |
-
background: #e0e0e0; /* رنگ خاکستری روشن زمینه */
|
| 584 |
-
border-radius: 4px;
|
| 585 |
-
}
|
| 586 |
-
|
| 587 |
-
[data-testid="stAppViewContainer"]::-webkit-scrollbar-thumb {
|
| 588 |
-
background: #6a0dad; /* رنگ بنفش بدنه اسکرول */
|
| 589 |
-
border-radius: 4px;
|
| 590 |
-
border: 1px solid white; /* کمی کنتراست با پسزمینه */
|
| 591 |
-
}
|
| 592 |
-
|
| 593 |
-
[data-testid="stAppViewContainer"]::-webkit-scrollbar-thumb:hover {
|
| 594 |
-
background: #4e0788; /* رنگ بنفش تیرهتر هنگام هاور */
|
| 595 |
-
}
|
| 596 |
-
|
| 597 |
-
}
|
| 598 |
-
|
| 599 |
</style>
|
| 600 |
""", unsafe_allow_html=True)
|
| 601 |
|
|
|
|
| 57 |
width: 100% !important;
|
| 58 |
}
|
| 59 |
|
|
|
|
|
|
|
| 60 |
@media (min-width: 768px) {
|
| 61 |
body {
|
| 62 |
background: #f0f0f0 !important;
|
| 63 |
display: flex !important;
|
| 64 |
justify-content: center !important;
|
| 65 |
align-items: center !important;
|
| 66 |
+
height: 100vh !important;
|
| 67 |
+
overflow: hidden !important;
|
| 68 |
}
|
| 69 |
|
| 70 |
[data-testid="stAppViewContainer"] {
|
|
|
|
| 76 |
box-shadow: 0 0 0 6px #666, 0 0 30px rgba(0,0,0,0.5) !important;
|
| 77 |
background-color: var(--background) !important;
|
| 78 |
color: var(--text) !important;
|
| 79 |
+
overflow-y: auto !important; /* اضافه کردن اسکرول عمودی */
|
| 80 |
+
overflow-x: hidden !important;
|
| 81 |
+
scrollbar-width: thin !important; /* برای مرورگرهای فایرفاکس */
|
| 82 |
+
scrollbar-color: #6a0dad #f0f0f0 !important; /* برای مرورگرهای فایرفاکس */
|
| 83 |
+
}
|
| 84 |
|
| 85 |
+
/* استایل اسکرولبار برای مرورگرهای وبکیت (کروم، اج، سافاری) */
|
| 86 |
+
[data-testid="stAppViewContainer"]::-webkit-scrollbar {
|
| 87 |
+
width: 6px !important;
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
[data-testid="stAppViewContainer"]::-webkit-scrollbar-track {
|
| 91 |
+
background: #f0f0f0 !important;
|
| 92 |
+
border-radius: 3px !important;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
[data-testid="stAppViewContainer"]::-webkit-scrollbar-thumb {
|
| 96 |
+
background-color: #6a0dad !important;
|
| 97 |
+
border-radius: 3px !important;
|
| 98 |
}
|
| 99 |
+
|
| 100 |
/* دکمه هوم مجازی */
|
| 101 |
[data-testid="stAppViewContainer"]::after {
|
| 102 |
content: "";
|
|
|
|
| 109 |
background: #333;
|
| 110 |
border-radius: 2px;
|
| 111 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
|
|
|
|
| 113 |
.stApp {
|
| 114 |
+
width: 100% !important;
|
| 115 |
height: 100% !important;
|
| 116 |
+
overflow: auto !important;
|
|
|
|
|
|
|
|
|
|
| 117 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
}
|
| 119 |
|
|
|
|
| 120 |
/* هدر راهیار */
|
| 121 |
.rahyar-title {
|
| 122 |
color: var(--primary) !important;
|
|
|
|
| 533 |
padding: calc(var(--base-font-size) * 0.7) calc(var(--base-font-size) * 1.2) !important;
|
| 534 |
}
|
| 535 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 536 |
</style>
|
| 537 |
""", unsafe_allow_html=True)
|
| 538 |
|