Spaces:
Paused
Paused
Maryam Ilka commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -141,33 +141,39 @@ st.markdown("""
|
|
| 141 |
pointer-events: none;
|
| 142 |
}
|
| 143 |
|
| 144 |
-
|
| 145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
background-color: white !important;
|
| 147 |
border: 1px solid var(--primary) !important;
|
| 148 |
border-radius: 4px !important;
|
| 149 |
-
box-shadow: 0 2px
|
| 150 |
-
|
| 151 |
-
padding: 8px 0 !important;
|
| 152 |
-
z-index: 1000 !important;
|
| 153 |
}
|
| 154 |
|
| 155 |
/* آیتمهای لیست */
|
| 156 |
-
div[data-baseweb="
|
| 157 |
-
padding:
|
| 158 |
color: var(--text) !important;
|
| 159 |
-
|
| 160 |
-
transition:
|
| 161 |
}
|
| 162 |
|
| 163 |
-
/* حالت hover
|
| 164 |
-
div[data-baseweb="
|
| 165 |
-
background-color: #
|
| 166 |
color: var(--primary) !important;
|
| 167 |
}
|
| 168 |
|
| 169 |
/* آیتم انتخاب شده */
|
| 170 |
-
div[data-baseweb="
|
| 171 |
background-color: var(--primary) !important;
|
| 172 |
color: white !important;
|
| 173 |
}
|
|
|
|
| 141 |
pointer-events: none;
|
| 142 |
}
|
| 143 |
|
| 144 |
+
|
| 145 |
+
/* ========== استایل قطعی برای لیست dropdown ========== */
|
| 146 |
+
/* حاوی اصلی dropdown */
|
| 147 |
+
div[data-baseweb="popover"] {
|
| 148 |
+
z-index: 1001 !important;
|
| 149 |
+
margin-top: 5px !important;
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
/* لیست dropdown */
|
| 153 |
+
div[data-baseweb="popover"] > div {
|
| 154 |
background-color: white !important;
|
| 155 |
border: 1px solid var(--primary) !important;
|
| 156 |
border-radius: 4px !important;
|
| 157 |
+
box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
|
| 158 |
+
padding: 6px 0 !important;
|
|
|
|
|
|
|
| 159 |
}
|
| 160 |
|
| 161 |
/* آیتمهای لیست */
|
| 162 |
+
div[data-baseweb="popover"] [role="option"] {
|
| 163 |
+
padding: 10px 16px !important;
|
| 164 |
color: var(--text) !important;
|
| 165 |
+
font-size: 14px !important;
|
| 166 |
+
transition: all 0.2s !important;
|
| 167 |
}
|
| 168 |
|
| 169 |
+
/* حالت hover */
|
| 170 |
+
div[data-baseweb="popover"] [role="option"]:hover {
|
| 171 |
+
background-color: #f5f0ff !important;
|
| 172 |
color: var(--primary) !important;
|
| 173 |
}
|
| 174 |
|
| 175 |
/* آیتم انتخاب شده */
|
| 176 |
+
div[data-baseweb="popover"] [role="option"][aria-selected="true"] {
|
| 177 |
background-color: var(--primary) !important;
|
| 178 |
color: white !important;
|
| 179 |
}
|