Spaces:
Sleeping
Sleeping
Maryam Ilka commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,7 +74,9 @@ st.markdown("""
|
|
| 74 |
border-right: 3px solid var(--primary) !important;
|
| 75 |
}
|
| 76 |
|
| 77 |
-
|
|
|
|
|
|
|
| 78 |
.stTextInput input,
|
| 79 |
.stNumberInput input,
|
| 80 |
.stSelectbox select,
|
|
@@ -82,137 +84,91 @@ st.markdown("""
|
|
| 82 |
.stDateInput input,
|
| 83 |
.stTimeInput input,
|
| 84 |
.stMultiSelect div[role="combobox"],
|
| 85 |
-
div[data-testid="stVerticalBlock"] > div[data-testid="stHorizontalBlock"] > div > div > div > div > input
|
| 86 |
-
/* لیست dropdown */
|
| 87 |
-
.st-bq, .st-br, .st-bs, .st-bt, .st-bu, .st-bv, .st-bw, .st-bx, .st-by, .st-bz {
|
| 88 |
color: var(--text) !important;
|
| 89 |
background-color: var(--input-bg) !important;
|
| 90 |
-
border: 1px var(--
|
|
|
|
|
|
|
|
|
|
| 91 |
}
|
| 92 |
-
|
| 93 |
-
/* استایل
|
| 94 |
.stTextInput > label,
|
| 95 |
.stNumberInput > label,
|
| 96 |
.stSelectbox > label,
|
| 97 |
.stRadio > label,
|
| 98 |
.stSlider > label {
|
| 99 |
-
color:
|
| 100 |
font-weight: bold !important;
|
|
|
|
| 101 |
}
|
| 102 |
-
|
| 103 |
-
/*
|
| 104 |
::placeholder {
|
| 105 |
-
color:
|
| 106 |
opacity: 0.7 !important;
|
| 107 |
}
|
| 108 |
-
|
| 109 |
-
/* استایل دکمههای select */
|
| 110 |
-
.stSelectbox button {
|
| 111 |
-
color: var(--primary) !important;
|
| 112 |
-
background-color: transparent !important;
|
| 113 |
-
border: none !important;
|
| 114 |
-
width: 30px !important;
|
| 115 |
-
font-weight: bold !important;
|
| 116 |
-
font-size: 16px !important;
|
| 117 |
-
}
|
| 118 |
-
|
| 119 |
-
/* استایل برای دکمههای سلکت select */
|
| 120 |
-
.stSelectbox button {
|
| 121 |
-
color: var(--primary) !important;
|
| 122 |
-
background-color: transparent !important;
|
| 123 |
-
border: none !important;
|
| 124 |
-
width: 30px !important;
|
| 125 |
-
}
|
| 126 |
-
|
| 127 |
-
/*فلش استایل برای hover */
|
| 128 |
-
.stSelectbox button:hover {
|
| 129 |
-
background-color: #f0e6ff !important;
|
| 130 |
-
}
|
| 131 |
|
| 132 |
-
|
| 133 |
-
/*
|
| 134 |
-
.
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
font-size: 16px !important;
|
| 141 |
}
|
| 142 |
|
| 143 |
-
/*
|
| 144 |
-
.stSelectbox
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
}
|
| 149 |
-
|
| 150 |
-
/*
|
| 151 |
.stSelectbox [role="listbox"] {
|
| 152 |
-
color: #000000 !important;
|
| 153 |
background-color: white !important;
|
| 154 |
border: 1px solid var(--primary) !important;
|
| 155 |
-
border-radius: 4px !important;
|
| 156 |
box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
|
| 157 |
}
|
| 158 |
-
|
| 159 |
-
/*
|
| 160 |
.stSelectbox [role="option"] {
|
| 161 |
padding: 8px 12px !important;
|
| 162 |
-
color:
|
| 163 |
}
|
| 164 |
-
|
| 165 |
-
/* استایل برای آیتم hover در لیست */
|
| 166 |
.stSelectbox [role="option"]:hover {
|
| 167 |
background-color: #f0e6ff !important;
|
| 168 |
-
color: #000000 !important;
|
| 169 |
}
|
| 170 |
-
|
| 171 |
-
/* استایل
|
| 172 |
.stNumberInput button {
|
| 173 |
color: var(--primary) !important;
|
| 174 |
background-color: transparent !important;
|
| 175 |
border: none !important;
|
| 176 |
width: 30px !important;
|
|
|
|
| 177 |
}
|
| 178 |
-
|
| 179 |
-
/* استایل برای hover دکمههای + و - */
|
| 180 |
.stNumberInput button:hover {
|
| 181 |
background-color: #f0e6ff !important;
|
| 182 |
}
|
| 183 |
-
|
| 184 |
-
/* استایل
|
| 185 |
-
.stSelectbox select:focus,
|
| 186 |
-
.stTextInput input:focus,
|
| 187 |
-
.stNumberInput input:focus {
|
| 188 |
-
border-color: var(--primary) !important;
|
| 189 |
-
box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.2) !important;
|
| 190 |
-
outline: none !important;
|
| 191 |
-
}
|
| 192 |
-
|
| 193 |
-
/* حالت فوکوس */
|
| 194 |
.stTextInput input:focus,
|
| 195 |
.stNumberInput input:focus,
|
| 196 |
.stSelectbox select:focus,
|
| 197 |
.stTextArea textarea:focus {
|
| 198 |
-
border-color: var(--
|
| 199 |
box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.2) !important;
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
/* لیبلها */
|
| 203 |
-
.stTextInput > label,
|
| 204 |
-
.stNumberInput > label,
|
| 205 |
-
.stSelectbox > label,
|
| 206 |
-
.stRadio > label,
|
| 207 |
-
.stSlider > label {
|
| 208 |
-
color: black !important;
|
| 209 |
-
font-weight: bold !important;
|
| 210 |
-
}
|
| 211 |
-
|
| 212 |
-
/* Placeholder */
|
| 213 |
-
::placeholder {
|
| 214 |
-
color: black !important;
|
| 215 |
-
opacity: 0.7 !important;
|
| 216 |
}
|
| 217 |
|
| 218 |
/* دکمه اصلی (بنفش با متن سفید) */
|
|
|
|
| 74 |
border-right: 3px solid var(--primary) !important;
|
| 75 |
}
|
| 76 |
|
| 77 |
+
|
| 78 |
+
/* ========== استایلهای ورودی یکپارچه ========== */
|
| 79 |
+
/* استایل پایه برای تمام عناصر ورودی */
|
| 80 |
.stTextInput input,
|
| 81 |
.stNumberInput input,
|
| 82 |
.stSelectbox select,
|
|
|
|
| 84 |
.stDateInput input,
|
| 85 |
.stTimeInput input,
|
| 86 |
.stMultiSelect div[role="combobox"],
|
| 87 |
+
div[data-testid="stVerticalBlock"] > div[data-testid="stHorizontalBlock"] > div > div > div > div > input {
|
|
|
|
|
|
|
| 88 |
color: var(--text) !important;
|
| 89 |
background-color: var(--input-bg) !important;
|
| 90 |
+
border: 1px solid var(--border) !important;
|
| 91 |
+
border-radius: 4px !important;
|
| 92 |
+
padding: 8px 12px !important;
|
| 93 |
+
font-size: 14px !important;
|
| 94 |
}
|
| 95 |
+
|
| 96 |
+
/* استایل لیبلها */
|
| 97 |
.stTextInput > label,
|
| 98 |
.stNumberInput > label,
|
| 99 |
.stSelectbox > label,
|
| 100 |
.stRadio > label,
|
| 101 |
.stSlider > label {
|
| 102 |
+
color: var(--text) !important;
|
| 103 |
font-weight: bold !important;
|
| 104 |
+
margin-bottom: 4px !important;
|
| 105 |
}
|
| 106 |
+
|
| 107 |
+
/* استایل placeholder */
|
| 108 |
::placeholder {
|
| 109 |
+
color: var(--text) !important;
|
| 110 |
opacity: 0.7 !important;
|
| 111 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
|
| 113 |
+
/* ========== استایلهای خاص Selectbox ========== */
|
| 114 |
+
/* حذف فلش پیشفرض */
|
| 115 |
+
.stSelectbox select {
|
| 116 |
+
-webkit-appearance: none !important;
|
| 117 |
+
-moz-appearance: none !important;
|
| 118 |
+
appearance: none !important;
|
| 119 |
+
background-image: none !important;
|
| 120 |
+
padding-right: 32px !important;
|
|
|
|
| 121 |
}
|
| 122 |
|
| 123 |
+
/* فلش سفارشی */
|
| 124 |
+
.stSelectbox::after {
|
| 125 |
+
content: "▼";
|
| 126 |
+
position: absolute;
|
| 127 |
+
right: 10px;
|
| 128 |
+
top: 50%;
|
| 129 |
+
transform: translateY(-50%);
|
| 130 |
+
color: var(--primary);
|
| 131 |
+
pointer-events: none;
|
| 132 |
}
|
| 133 |
+
|
| 134 |
+
/* لیست dropdown */
|
| 135 |
.stSelectbox [role="listbox"] {
|
|
|
|
| 136 |
background-color: white !important;
|
| 137 |
border: 1px solid var(--primary) !important;
|
|
|
|
| 138 |
box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
|
| 139 |
}
|
| 140 |
+
|
| 141 |
+
/* آیتمهای dropdown */
|
| 142 |
.stSelectbox [role="option"] {
|
| 143 |
padding: 8px 12px !important;
|
| 144 |
+
color: var(--text) !important;
|
| 145 |
}
|
| 146 |
+
|
|
|
|
| 147 |
.stSelectbox [role="option"]:hover {
|
| 148 |
background-color: #f0e6ff !important;
|
|
|
|
| 149 |
}
|
| 150 |
+
|
| 151 |
+
/* ========== استایلهای Number Input ========== */
|
| 152 |
.stNumberInput button {
|
| 153 |
color: var(--primary) !important;
|
| 154 |
background-color: transparent !important;
|
| 155 |
border: none !important;
|
| 156 |
width: 30px !important;
|
| 157 |
+
font-weight: bold !important;
|
| 158 |
}
|
| 159 |
+
|
|
|
|
| 160 |
.stNumberInput button:hover {
|
| 161 |
background-color: #f0e6ff !important;
|
| 162 |
}
|
| 163 |
+
|
| 164 |
+
/* ========== استایلهای Focus ========== */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
.stTextInput input:focus,
|
| 166 |
.stNumberInput input:focus,
|
| 167 |
.stSelectbox select:focus,
|
| 168 |
.stTextArea textarea:focus {
|
| 169 |
+
border-color: var(--primary) !important;
|
| 170 |
box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.2) !important;
|
| 171 |
+
outline: none !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
}
|
| 173 |
|
| 174 |
/* دکمه اصلی (بنفش با متن سفید) */
|