Maryam Ilka commited on
Commit
eeecd06
·
verified ·
1 Parent(s): 04c28a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -14
app.py CHANGED
@@ -141,33 +141,39 @@ st.markdown("""
141
  pointer-events: none;
142
  }
143
 
144
- /* استایل اصلی برای لیست dropdown */
145
- div[data-baseweb="select"] div[role="listbox"] {
 
 
 
 
 
 
 
 
146
  background-color: white !important;
147
  border: 1px solid var(--primary) !important;
148
  border-radius: 4px !important;
149
- box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
150
- margin-top: 5px !important;
151
- padding: 8px 0 !important;
152
- z-index: 1000 !important;
153
  }
154
 
155
  /* آیتم‌های لیست */
156
- div[data-baseweb="select"] div[role="option"] {
157
- padding: 8px 16px !important;
158
  color: var(--text) !important;
159
- cursor: pointer !important;
160
- transition: background-color 0.2s !important;
161
  }
162
 
163
- /* حالت hover آیتم‌ها */
164
- div[data-baseweb="select"] div[role="option"]:hover {
165
- background-color: #f0e6ff !important;
166
  color: var(--primary) !important;
167
  }
168
 
169
  /* آیتم انتخاب شده */
170
- div[data-baseweb="select"] div[role="option"][aria-selected="true"] {
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
  }