Spaces:
Paused
Paused
Maryam Ilka commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,10 +88,11 @@ st.markdown("""
|
|
| 88 |
div[data-baseweb="select"] > div:first-child {
|
| 89 |
color: var(--text) !important;
|
| 90 |
background-color: var(--input-bg) !important;
|
| 91 |
-
border: 1px solid var(--primary) !important;
|
| 92 |
-
border-radius:
|
| 93 |
padding: 8px 12px !important;
|
| 94 |
min-height: 40px !important;
|
|
|
|
| 95 |
}
|
| 96 |
|
| 97 |
/* استایل برای حالت hover و focus */
|
|
@@ -100,9 +101,17 @@ st.markdown("""
|
|
| 100 |
.stSelectbox select:hover,
|
| 101 |
.stTextArea textarea:hover,
|
| 102 |
.stDateInput input:hover,
|
| 103 |
-
.stTimeInput input:hover
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
border-color: var(--primary) !important;
|
| 105 |
-
box-shadow: 0 0 0
|
|
|
|
| 106 |
}
|
| 107 |
|
| 108 |
/* استایل لیبلها */
|
|
@@ -113,20 +122,19 @@ st.markdown("""
|
|
| 113 |
.stSlider > label {
|
| 114 |
color: var(--text) !important;
|
| 115 |
font-weight: bold !important;
|
| 116 |
-
margin-bottom:
|
|
|
|
| 117 |
}
|
| 118 |
|
| 119 |
/* استایل placeholder */
|
| 120 |
::placeholder {
|
| 121 |
color: var(--text) !important;
|
| 122 |
-
opacity: 0.
|
| 123 |
}
|
| 124 |
|
| 125 |
/* ========== استایلهای خاص Selectbox ========== */
|
| 126 |
-
|
| 127 |
-
/* ایجاد فلش سفارشی */
|
| 128 |
div[data-baseweb="select"] {
|
| 129 |
-
position: relative;
|
| 130 |
}
|
| 131 |
|
| 132 |
div[data-baseweb="select"]::after {
|
|
|
|
| 88 |
div[data-baseweb="select"] > div:first-child {
|
| 89 |
color: var(--text) !important;
|
| 90 |
background-color: var(--input-bg) !important;
|
| 91 |
+
border: 1px solid var(--primary) !important;
|
| 92 |
+
border-radius: 6px !important;
|
| 93 |
padding: 8px 12px !important;
|
| 94 |
min-height: 40px !important;
|
| 95 |
+
transition: all 0.2s ease !important;
|
| 96 |
}
|
| 97 |
|
| 98 |
/* استایل برای حالت hover و focus */
|
|
|
|
| 101 |
.stSelectbox select:hover,
|
| 102 |
.stTextArea textarea:hover,
|
| 103 |
.stDateInput input:hover,
|
| 104 |
+
.stTimeInput input:hover,
|
| 105 |
+
.stMultiSelect div[role="combobox"]:hover,
|
| 106 |
+
.stTextInput input:focus,
|
| 107 |
+
.stNumberInput input:focus,
|
| 108 |
+
.stSelectbox select:focus,
|
| 109 |
+
.stTextArea textarea:focus,
|
| 110 |
+
.stDateInput input:focus,
|
| 111 |
+
.stTimeInput input:focus {
|
| 112 |
border-color: var(--primary) !important;
|
| 113 |
+
box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.15) !important;
|
| 114 |
+
outline: none !important;
|
| 115 |
}
|
| 116 |
|
| 117 |
/* استایل لیبلها */
|
|
|
|
| 122 |
.stSlider > label {
|
| 123 |
color: var(--text) !important;
|
| 124 |
font-weight: bold !important;
|
| 125 |
+
margin-bottom: 8px !important;
|
| 126 |
+
font-size: 14px !important;
|
| 127 |
}
|
| 128 |
|
| 129 |
/* استایل placeholder */
|
| 130 |
::placeholder {
|
| 131 |
color: var(--text) !important;
|
| 132 |
+
opacity: 0.5 !important;
|
| 133 |
}
|
| 134 |
|
| 135 |
/* ========== استایلهای خاص Selectbox ========== */
|
|
|
|
|
|
|
| 136 |
div[data-baseweb="select"] {
|
| 137 |
+
position: relative !important;
|
| 138 |
}
|
| 139 |
|
| 140 |
div[data-baseweb="select"]::after {
|