Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,39 +25,21 @@ st.markdown("""
|
|
| 25 |
font-family: 'B Nazanin';
|
| 26 |
src: url('https://cdn.jsdelivr.net/gh/rastikerdar/fonts@master/fonts/B%20Nazanin/B%20Nazanin.woff') format('woff');
|
| 27 |
}
|
| 28 |
-
/* این کد را در با
|
| 29 |
-
:root
|
| 30 |
-
|
| 31 |
-
[data-testid="stAppViewContainer"],
|
| 32 |
-
.stApp {
|
| 33 |
-
color-scheme: light only !important;
|
| 34 |
-
}
|
| 35 |
-
|
| 36 |
-
/* بازنشانی کامل تم تاریک مرورگر */
|
| 37 |
-
@media (prefers-color-scheme: dark) {
|
| 38 |
-
:root,
|
| 39 |
-
body,
|
| 40 |
-
[data-testid="stAppViewContainer"],
|
| 41 |
-
.stApp {
|
| 42 |
-
color-scheme: light only !important;
|
| 43 |
-
}
|
| 44 |
}
|
| 45 |
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
select,
|
| 49 |
-
textarea,
|
| 50 |
-
button,
|
| 51 |
-
div[data-baseweb] {
|
| 52 |
-
color-scheme: light only !important;
|
| 53 |
background-color: #ffffff !important;
|
| 54 |
-
color: #
|
| 55 |
}
|
| 56 |
|
| 57 |
-
|
| 58 |
-
|
|
|
|
| 59 |
}
|
| 60 |
-
|
| 61 |
:root {
|
| 62 |
color-scheme: light only !important;
|
| 63 |
--primary: #6a0dad;
|
|
|
|
| 25 |
font-family: 'B Nazanin';
|
| 26 |
src: url('https://cdn.jsdelivr.net/gh/rastikerdar/fonts@master/fonts/B%20Nazanin/B%20Nazanin.woff') format('woff');
|
| 27 |
}
|
| 28 |
+
/* این کد را در ابتدای استایلهایتان قرار دهید */
|
| 29 |
+
:root {
|
| 30 |
+
color-scheme: light !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
}
|
| 32 |
|
| 33 |
+
body, [data-testid="stAppViewContainer"] {
|
| 34 |
+
color-scheme: light !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
background-color: #ffffff !important;
|
| 36 |
+
color: #000000 !important;
|
| 37 |
}
|
| 38 |
|
| 39 |
+
/* بازنشانی تمام المانها به حالت لایت */
|
| 40 |
+
* {
|
| 41 |
+
color-scheme: light !important;
|
| 42 |
}
|
|
|
|
| 43 |
:root {
|
| 44 |
color-scheme: light only !important;
|
| 45 |
--primary: #6a0dad;
|