Spaces:
Paused
Paused
Maryam Ilka commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -142,17 +142,22 @@ st.markdown("""
|
|
| 142 |
}
|
| 143 |
|
| 144 |
|
| 145 |
-
/* =====
|
| 146 |
-
/* حاوی اصلی
|
| 147 |
div[data-baseweb="popover"] {
|
| 148 |
-
z-index:
|
| 149 |
margin-top: 5px !important;
|
|
|
|
| 150 |
}
|
| 151 |
|
| 152 |
/* لیست dropdown */
|
| 153 |
-
div[data-baseweb="popover"] > div {
|
| 154 |
-
background
|
| 155 |
-
border: 1px var(--primary) !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
}
|
| 157 |
|
| 158 |
/* آیتمهای لیست */
|
|
@@ -160,12 +165,13 @@ st.markdown("""
|
|
| 160 |
padding: 10px 16px !important;
|
| 161 |
color: var(--text) !important;
|
| 162 |
font-size: 14px !important;
|
| 163 |
-
transition: all 0.2s !important;
|
|
|
|
| 164 |
}
|
| 165 |
|
| 166 |
/* حالت hover */
|
| 167 |
div[data-baseweb="popover"] [role="option"]:hover {
|
| 168 |
-
background
|
| 169 |
color: var(--primary) !important;
|
| 170 |
}
|
| 171 |
|
|
@@ -175,6 +181,14 @@ st.markdown("""
|
|
| 175 |
color: black !important;
|
| 176 |
}
|
| 177 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
/* ========== استایلهای Number Input ========== */
|
| 179 |
.stNumberInput button {
|
| 180 |
color: var(--primary) !important;
|
|
|
|
| 142 |
}
|
| 143 |
|
| 144 |
|
| 145 |
+
/* ===== راه حل تضمینی برای استایل dropdown ===== */
|
| 146 |
+
/* حاوی اصلی */
|
| 147 |
div[data-baseweb="popover"] {
|
| 148 |
+
z-index: 9999 !important;
|
| 149 |
margin-top: 5px !important;
|
| 150 |
+
animation: fadeIn 0.3s !important;
|
| 151 |
}
|
| 152 |
|
| 153 |
/* لیست dropdown */
|
| 154 |
+
div[data-baseweb="popover"] > div:first-child {
|
| 155 |
+
background: white !important;
|
| 156 |
+
border: 1px solid var(--primary) !important;
|
| 157 |
+
border-radius: 6px !important;
|
| 158 |
+
box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
|
| 159 |
+
padding: 6px 0 !important;
|
| 160 |
+
min-width: 200px !important;
|
| 161 |
}
|
| 162 |
|
| 163 |
/* آیتمهای لیست */
|
|
|
|
| 165 |
padding: 10px 16px !important;
|
| 166 |
color: var(--text) !important;
|
| 167 |
font-size: 14px !important;
|
| 168 |
+
transition: all 0.2s ease !important;
|
| 169 |
+
margin: 2px 0 !important;
|
| 170 |
}
|
| 171 |
|
| 172 |
/* حالت hover */
|
| 173 |
div[data-baseweb="popover"] [role="option"]:hover {
|
| 174 |
+
background: rgba(106, 13, 173, 0.08) !important;
|
| 175 |
color: var(--primary) !important;
|
| 176 |
}
|
| 177 |
|
|
|
|
| 181 |
color: black !important;
|
| 182 |
}
|
| 183 |
|
| 184 |
+
/* انیمیشن برای ظاهر شدن */
|
| 185 |
+
@keyframes fadeIn {
|
| 186 |
+
from { opacity: 0; transform: translateY(-5px); }
|
| 187 |
+
to { opacity: 1; transform: translateY(0); }
|
| 188 |
+
}
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
|
| 192 |
/* ========== استایلهای Number Input ========== */
|
| 193 |
.stNumberInput button {
|
| 194 |
color: var(--primary) !important;
|