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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -0
app.py CHANGED
@@ -25,6 +25,34 @@ 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
  color-scheme: light only !important;
 
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;