GSMEthesis commited on
Commit
3d10a00
·
verified ·
1 Parent(s): 1009834

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -1
app.py CHANGED
@@ -15,7 +15,7 @@ st.set_page_config(layout="wide", page_title="راهیار - تحلیل انصا
15
 
16
  # ========== تنظیمات دیتا ==========
17
  SHEET_ID = "1mmdWAyOCYq4yXMgP53Duq712AnlqZWLkfIo76JqM7wM"
18
- SHEET_NAME = "Condition2"
19
 
20
  # ========== استایل‌های سفارشی یکپارچه ==========
21
  st.markdown("""
@@ -25,8 +25,23 @@ 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
  --primary: #6a0dad;
31
  --text: #333333;
32
  --background: #ffffff;
@@ -620,6 +635,7 @@ div[data-testid="stVerticalBlock"] > div[data-testid="stHorizontalBlock"] > div
620
  /* ======== تنظیمات پویا بر اساس عرض دستگاه ======== */
621
  @media (max-width: 400px) {
622
  :root {
 
623
  --base-font-size: 17px;
624
  --base-heading1-size: 22px;
625
  --base-heading2-size: 18px;
@@ -631,6 +647,7 @@ div[data-testid="stVerticalBlock"] > div[data-testid="stHorizontalBlock"] > div
631
 
632
  @media (min-width: 401px) and (max-width: 768px) {
633
  :root {
 
634
  --base-font-size: 17px;
635
  --base-heading1-size: 24px;
636
  --base-heading2-size: 20px;
@@ -734,6 +751,11 @@ h3 {
734
  margin-bottom: 1em !important;
735
  line-height: 1.8 !important;
736
  }
 
 
 
 
 
737
  </style>
738
  """, unsafe_allow_html=True)
739
 
 
15
 
16
  # ========== تنظیمات دیتا ==========
17
  SHEET_ID = "1mmdWAyOCYq4yXMgP53Duq712AnlqZWLkfIo76JqM7wM"
18
+ SHEET_NAME = "Condition1"
19
 
20
  # ========== استایل‌های سفارشی یکپارچه ==========
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
+ 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;
46
  --text: #333333;
47
  --background: #ffffff;
 
635
  /* ======== تنظیمات پویا بر اساس عرض دستگاه ======== */
636
  @media (max-width: 400px) {
637
  :root {
638
+ color-scheme: light only !important;
639
  --base-font-size: 17px;
640
  --base-heading1-size: 22px;
641
  --base-heading2-size: 18px;
 
647
 
648
  @media (min-width: 401px) and (max-width: 768px) {
649
  :root {
650
+ color-scheme: light only !important;
651
  --base-font-size: 17px;
652
  --base-heading1-size: 24px;
653
  --base-heading2-size: 20px;
 
751
  margin-bottom: 1em !important;
752
  line-height: 1.8 !important;
753
  }
754
+
755
+ body, .stApp {
756
+ color-scheme: light only !important;
757
+ }
758
+
759
  </style>
760
  """, unsafe_allow_html=True)
761