Maryam Ilka commited on
Commit
89bf67b
·
verified ·
1 Parent(s): 564fd1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -17
app.py CHANGED
@@ -106,29 +106,30 @@ st.markdown("""
106
  opacity: 0.7 !important;
107
  }
108
 
109
- /* حذف فلش پیش‌فرض و جایگزینی با استایل مشابه number input */
110
- .stSelectbox select {
111
- -webkit-appearance: none !important;
112
- -moz-appearance: none !important;
113
- appearance: none !important;
114
- background-image: none !important;
115
- background-repeat: no-repeat !important;
116
- background-position: right center !important;
117
- padding-right: 30px !important;
118
- border: 1px solid #6a0dad !important;
119
- border-radius: 4px !important;
120
  }
121
-
122
- /* ایجاد فلش سفارشی با استایل مشابه number input */
123
- .stSelectbox div[data-baseweb="select"]::after {
124
  content: "▼";
125
  position: absolute;
126
- left: 12px;
127
  top: 50%;
128
  transform: translateY(-50%);
129
- color: var(--primary) !important;
130
- font-size: 12px;
131
  pointer-events: none;
 
 
 
 
 
 
 
 
 
 
 
 
132
  }
133
 
134
  /* استایل hover برای فلش */
 
106
  opacity: 0.7 !important;
107
  }
108
 
109
+ .stSelectbox {
110
+ position: relative;
 
 
 
 
 
 
 
 
 
111
  }
112
+
113
+ .stSelectbox::after {
 
114
  content: "▼";
115
  position: absolute;
116
+ right: 12px;
117
  top: 50%;
118
  transform: translateY(-50%);
119
+ color: #6a0dad;
 
120
  pointer-events: none;
121
+ z-index: 1;
122
+ }
123
+
124
+ .stSelectbox select {
125
+ -webkit-appearance: none !important;
126
+ -moz-appearance: none !important;
127
+ appearance: none !important;
128
+ background: transparent !important;
129
+ padding-right: 30px !important;
130
+ width: 100%;
131
+ position: relative;
132
+ z-index: 2;
133
  }
134
 
135
  /* استایل hover برای فلش */