Spaces:
Paused
Paused
Maryam Ilka commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -143,39 +143,21 @@ st.markdown("""
|
|
| 143 |
|
| 144 |
|
| 145 |
/* ===== راه حل تضمینی برای استایل dropdown ===== */
|
| 146 |
-
/* حاوی اصلی */
|
| 147 |
-
div[data-baseweb="popover"] {
|
| 148 |
-
z-index: 9999 !important;
|
| 149 |
-
margin-top: 5px !important;
|
| 150 |
-
}
|
| 151 |
-
|
| 152 |
-
/* لیست dropdown */
|
| 153 |
-
div[data-baseweb="popover"] > div:first-child {
|
| 154 |
-
background: white !important;
|
| 155 |
-
border: 1px var(--primary) !important;
|
| 156 |
-
}
|
| 157 |
|
| 158 |
/* آیتمهای لیست */
|
| 159 |
div[data-baseweb="popover"] [role="option"] {
|
| 160 |
color: var(--text) !important;
|
|
|
|
| 161 |
font-size: 14px !important;
|
| 162 |
transition: all 0.2s ease !important;
|
| 163 |
margin: 2px 0 !important;
|
| 164 |
}
|
| 165 |
|
| 166 |
-
/* حالت hover */
|
| 167 |
-
div[data-baseweb="popover"] [role="option"]:hover {
|
| 168 |
-
background: rgba(106, 13, 173, 0.08) !important;
|
| 169 |
-
color: var(--primary) !important;
|
| 170 |
-
}
|
| 171 |
-
|
| 172 |
/* آیتم انتخاب شده */
|
| 173 |
div[data-baseweb="popover"] [role="option"][aria-selected="true"] {
|
| 174 |
background-color: #f0e6ff !important;
|
| 175 |
color: black !important;
|
| 176 |
}
|
| 177 |
-
|
| 178 |
-
|
| 179 |
|
| 180 |
/* ========== استایلهای Number Input ========== */
|
| 181 |
.stNumberInput button {
|
|
@@ -190,15 +172,6 @@ st.markdown("""
|
|
| 190 |
background-color: #f0e6ff !important;
|
| 191 |
}
|
| 192 |
|
| 193 |
-
/* ========== استایلهای Focus ========== */
|
| 194 |
-
.stTextInput input:focus,
|
| 195 |
-
.stNumberInput input:focus,
|
| 196 |
-
.stSelectbox select:focus,
|
| 197 |
-
.stTextArea textarea:focus {
|
| 198 |
-
border-color: var(--primary) !important;
|
| 199 |
-
box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.2) !important;
|
| 200 |
-
outline: none !important;
|
| 201 |
-
}
|
| 202 |
|
| 203 |
/* دکمه اصلی (بنفش با متن سفید) */
|
| 204 |
.stButton>button,
|
|
|
|
| 143 |
|
| 144 |
|
| 145 |
/* ===== راه حل تضمینی برای استایل dropdown ===== */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
|
| 147 |
/* آیتمهای لیست */
|
| 148 |
div[data-baseweb="popover"] [role="option"] {
|
| 149 |
color: var(--text) !important;
|
| 150 |
+
background-color: white !important;
|
| 151 |
font-size: 14px !important;
|
| 152 |
transition: all 0.2s ease !important;
|
| 153 |
margin: 2px 0 !important;
|
| 154 |
}
|
| 155 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
/* آیتم انتخاب شده */
|
| 157 |
div[data-baseweb="popover"] [role="option"][aria-selected="true"] {
|
| 158 |
background-color: #f0e6ff !important;
|
| 159 |
color: black !important;
|
| 160 |
}
|
|
|
|
|
|
|
| 161 |
|
| 162 |
/* ========== استایلهای Number Input ========== */
|
| 163 |
.stNumberInput button {
|
|
|
|
| 172 |
background-color: #f0e6ff !important;
|
| 173 |
}
|
| 174 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 175 |
|
| 176 |
/* دکمه اصلی (بنفش با متن سفید) */
|
| 177 |
.stButton>button,
|