GSMEthesis commited on
Commit
45baf36
·
verified ·
1 Parent(s): 730c916

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -27
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
- body,
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
- input,
48
- select,
49
- textarea,
50
- button,
51
- div[data-baseweb] {
52
- color-scheme: light only !important;
53
  background-color: #ffffff !important;
54
- color: #333333 !important;
55
  }
56
 
57
- :root {
58
- color-scheme: light only !important;
 
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;