Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -221,6 +221,7 @@ html, body, .stApp {
|
|
| 221 |
div[data-baseweb="select"] > div:first-child,
|
| 222 |
div[data-baseweb="input"] > div:first-child,
|
| 223 |
div[data-baseweb="textarea"] > div:first-child {
|
|
|
|
| 224 |
padding: 0 !important;
|
| 225 |
border-radius: 6px !important;
|
| 226 |
border: 1px solid var(--primary) !important;
|
|
@@ -318,30 +319,29 @@ div[data-baseweb="textarea"] > div:first-child:focus-within {
|
|
| 318 |
opacity: 0.5 !important;
|
| 319 |
font-family: 'B Nazanin' !important;
|
| 320 |
}
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
align-items: center !important;
|
| 325 |
border: 1px solid var(--primary) !important;
|
| 326 |
border-radius: 6px !important;
|
| 327 |
background-color: var(--input-bg) !important;
|
| 328 |
-
|
|
|
|
| 329 |
}
|
| 330 |
|
| 331 |
-
/* استایل
|
| 332 |
-
|
| 333 |
color: var(--text) !important;
|
| 334 |
background-color: transparent !important;
|
| 335 |
border: none !important;
|
| 336 |
padding: 10px 12px !important;
|
| 337 |
-
min-height: 40px !important;
|
| 338 |
-
flex-grow: 1 !important;
|
| 339 |
-
text-align: right !important;
|
| 340 |
font-family: 'B Nazanin' !important;
|
|
|
|
|
|
|
| 341 |
}
|
| 342 |
|
| 343 |
/* استایل دکمههای افزایش/کاهش */
|
| 344 |
-
|
| 345 |
color: var(--primary) !important;
|
| 346 |
background-color: transparent !important;
|
| 347 |
border: none !important;
|
|
@@ -357,25 +357,17 @@ div[data-baseweb="textarea"] > div:first-child:focus-within {
|
|
| 357 |
}
|
| 358 |
|
| 359 |
/* استایل hover برای دکمهها */
|
| 360 |
-
|
| 361 |
background-color: #f0e6ff !important;
|
| 362 |
}
|
| 363 |
|
| 364 |
-
/* استایل focus
|
| 365 |
-
|
| 366 |
border-color: var(--primary) !important;
|
| 367 |
box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.15) !important;
|
| 368 |
outline: none !important;
|
| 369 |
}
|
| 370 |
|
| 371 |
-
/* استایل لیبل */
|
| 372 |
-
.stNumberInput > label {
|
| 373 |
-
color: var(--text) !important;
|
| 374 |
-
font-weight: bold !important;
|
| 375 |
-
margin-bottom: 8px !important;
|
| 376 |
-
font-size: 14px !important;
|
| 377 |
-
display: block !important;
|
| 378 |
-
}
|
| 379 |
|
| 380 |
|
| 381 |
/* کامپوننتهای سفارشی */
|
|
|
|
| 221 |
div[data-baseweb="select"] > div:first-child,
|
| 222 |
div[data-baseweb="input"] > div:first-child,
|
| 223 |
div[data-baseweb="textarea"] > div:first-child {
|
| 224 |
+
color: var(--text) !important;
|
| 225 |
padding: 0 !important;
|
| 226 |
border-radius: 6px !important;
|
| 227 |
border: 1px solid var(--primary) !important;
|
|
|
|
| 319 |
opacity: 0.5 !important;
|
| 320 |
font-family: 'B Nazanin' !important;
|
| 321 |
}
|
| 322 |
+
|
| 323 |
+
/* استایل پایه برای NumberInput */
|
| 324 |
+
div[data-baseweb="input"] > div:first-child {
|
|
|
|
| 325 |
border: 1px solid var(--primary) !important;
|
| 326 |
border-radius: 6px !important;
|
| 327 |
background-color: var(--input-bg) !important;
|
| 328 |
+
padding: 0 !important;
|
| 329 |
+
min-height: 40px !important;
|
| 330 |
}
|
| 331 |
|
| 332 |
+
/* استایل داخلی input */
|
| 333 |
+
div[data-baseweb="input"] input {
|
| 334 |
color: var(--text) !important;
|
| 335 |
background-color: transparent !important;
|
| 336 |
border: none !important;
|
| 337 |
padding: 10px 12px !important;
|
|
|
|
|
|
|
|
|
|
| 338 |
font-family: 'B Nazanin' !important;
|
| 339 |
+
direction: rtl !important;
|
| 340 |
+
text-align: right !important;
|
| 341 |
}
|
| 342 |
|
| 343 |
/* استایل دکمههای افزایش/کاهش */
|
| 344 |
+
div[data-baseweb="input"] button {
|
| 345 |
color: var(--primary) !important;
|
| 346 |
background-color: transparent !important;
|
| 347 |
border: none !important;
|
|
|
|
| 357 |
}
|
| 358 |
|
| 359 |
/* استایل hover برای دکمهها */
|
| 360 |
+
div[data-baseweb="input"] button:hover {
|
| 361 |
background-color: #f0e6ff !important;
|
| 362 |
}
|
| 363 |
|
| 364 |
+
/* استایل focus */
|
| 365 |
+
div[data-baseweb="input"] > div:first-child:focus-within {
|
| 366 |
border-color: var(--primary) !important;
|
| 367 |
box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.15) !important;
|
| 368 |
outline: none !important;
|
| 369 |
}
|
| 370 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 371 |
|
| 372 |
|
| 373 |
/* کامپوننتهای سفارشی */
|