Maryam Ilka commited on
Commit
200d77c
·
verified ·
1 Parent(s): 7bee66e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +48 -41
app.py CHANGED
@@ -28,6 +28,7 @@ st.markdown("""
28
  --text: #333333;
29
  --background: #ffffff;
30
  --border: #dddddd;
 
31
  }
32
 
33
  * {
@@ -37,49 +38,78 @@ st.markdown("""
37
  }
38
 
39
  /* تنظیمات اصلی استریملیت */
40
- body, .stApp {
41
  background-color: var(--background) !important;
42
  color: var(--text) !important;
43
  }
44
 
45
- [data-testid="stAppViewContainer"] {
46
- background-color: var(--background) !important;
47
- }
48
-
49
- /* باکس‌های ورودی */
50
  .stTextInput input,
51
  .stNumberInput input,
52
  .stSelectbox select,
53
  .stTextArea textarea,
54
  .stDateInput input,
55
- .stTimeInput input {
 
56
  color: var(--text) !important;
57
- background-color: var(--background) !important;
58
  border: 1px solid var(--border) !important;
59
  border-radius: 8px !important;
60
  padding: 8px 12px !important;
61
  }
62
 
 
 
 
 
 
 
 
 
 
 
 
63
  /* دکمه‌های اصلی */
64
  .stButton>button,
65
- [data-testid="baseButton-primary"] {
 
66
  background-color: var(--primary) !important;
67
  color: white !important;
68
  border: none !important;
69
  border-radius: 8px !important;
70
  padding: 10px 20px !important;
71
  font-weight: bold !important;
 
72
  }
73
 
74
  /* دکمه‌های ثانویه */
75
  .stFormSubmitButton>button,
76
- [data-testid="baseButton-secondary"] {
 
77
  background-color: white !important;
78
  color: var(--primary) !important;
79
  border: 1px solid var(--primary) !important;
80
  border-radius: 8px !important;
81
  padding: 10px 20px !important;
82
  font-weight: bold !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  }
84
 
85
  /* کامپوننت‌های سفارشی شما */
@@ -93,7 +123,7 @@ st.markdown("""
93
  }
94
 
95
  .price-container {
96
- background-color: #f8f9fa !important;
97
  border-radius: 10px !important;
98
  padding: 15px !important;
99
  margin: 15px 0 !important;
@@ -106,18 +136,12 @@ st.markdown("""
106
  font-weight: bold !important;
107
  }
108
 
109
- /* دکمه‌های پذیرش/رد */
110
- .accept-btn {
111
- background-color: var(--primary) !important;
112
- color: white !important;
113
- padding: 14px 28px !important;
114
- }
115
-
116
- .reject-btn {
117
- background-color: white !important;
118
- color: var(--primary) !important;
119
- border: 2px solid var(--primary) !important;
120
- padding: 14px 28px !important;
121
  }
122
 
123
  /* تنظیمات مخصوص دسکتاپ */
@@ -128,8 +152,7 @@ st.markdown("""
128
 
129
  .stTextInput input,
130
  .stNumberInput input {
131
- color: black !important;
132
- background-color: white !important;
133
  }
134
  }
135
 
@@ -138,22 +161,6 @@ st.markdown("""
138
  .folium-map {
139
  height: 300px !important;
140
  }
141
-
142
- .price-container {
143
- width: 95% !important;
144
- }
145
- }
146
-
147
- /* غیرفعال کردن کامل تم تاریک */
148
- [data-testid="stAppViewContainer"] > .main > div {
149
- background-color: white !important;
150
- color: #333333 !important;
151
- }
152
-
153
- /* تضمین خوانایی متن در همه حا�� */
154
- .st-bb, .st-at, .st-ae, .st-af, .st-ag, .st-ah, .st-ai, .st-aj,
155
- .st-ak, .st-al, .st-cm, .st-cn, .st-co, .st-cp, .st-cq, .st-cr {
156
- color: var(--text) !important;
157
  }
158
  </style>
159
  """, unsafe_allow_html=True)
 
28
  --text: #333333;
29
  --background: #ffffff;
30
  --border: #dddddd;
31
+ --input-bg: #f8f9fa;
32
  }
33
 
34
  * {
 
38
  }
39
 
40
  /* تنظیمات اصلی استریملیت */
41
+ body, .stApp, [data-testid="stAppViewContainer"] {
42
  background-color: var(--background) !important;
43
  color: var(--text) !important;
44
  }
45
 
46
+ /* باکس‌های ورودی - اصلاح شده برای دموگرافیک */
47
+ div[data-testid="stVerticalBlock"] > div[data-testid="stHorizontalBlock"] > div > div > div > div > input,
 
 
 
48
  .stTextInput input,
49
  .stNumberInput input,
50
  .stSelectbox select,
51
  .stTextArea textarea,
52
  .stDateInput input,
53
+ .stTimeInput input,
54
+ .stMultiSelect div[role="combobox"] {
55
  color: var(--text) !important;
56
+ background-color: var(--input-bg) !important;
57
  border: 1px solid var(--border) !important;
58
  border-radius: 8px !important;
59
  padding: 8px 12px !important;
60
  }
61
 
62
+ /* دکمه ادامه در دموگرافیک - اصلاح شده */
63
+ div[data-testid="stVerticalBlock"] > div[data-testid="stHorizontalBlock"] > div > div > button {
64
+ background-color: var(--primary) !important;
65
+ color: white !important;
66
+ border: none !important;
67
+ border-radius: 8px !important;
68
+ padding: 10px 24px !important;
69
+ font-weight: bold !important;
70
+ margin-top: 20px !important;
71
+ }
72
+
73
  /* دکمه‌های اصلی */
74
  .stButton>button,
75
+ [data-testid="baseButton-primary"],
76
+ .accept-btn {
77
  background-color: var(--primary) !important;
78
  color: white !important;
79
  border: none !important;
80
  border-radius: 8px !important;
81
  padding: 10px 20px !important;
82
  font-weight: bold !important;
83
+ transition: all 0.3s ease;
84
  }
85
 
86
  /* دکمه‌های ثانویه */
87
  .stFormSubmitButton>button,
88
+ [data-testid="baseButton-secondary"],
89
+ .reject-btn {
90
  background-color: white !important;
91
  color: var(--primary) !important;
92
  border: 1px solid var(--primary) !important;
93
  border-radius: 8px !important;
94
  padding: 10px 20px !important;
95
  font-weight: bold !important;
96
+ transition: all 0.3s ease;
97
+ }
98
+
99
+ /* استایل explanation در مپ ویو - اصلاح شده */
100
+ .explanation-title {
101
+ color: var(--primary) !important;
102
+ font-weight: bold !important;
103
+ margin: 20px 0 10px 0 !important;
104
+ font-size: 18px !important;
105
+ }
106
+
107
+ .explanation-item {
108
+ background-color: var(--input-bg) !important;
109
+ border-radius: 8px !important;
110
+ padding: 12px 15px !important;
111
+ margin: 8px 0 !important;
112
+ border-right: 3px solid var(--primary) !important;
113
  }
114
 
115
  /* کامپوننت‌های سفارشی شما */
 
123
  }
124
 
125
  .price-container {
126
+ background-color: var(--input-bg) !important;
127
  border-radius: 10px !important;
128
  padding: 15px !important;
129
  margin: 15px 0 !important;
 
136
  font-weight: bold !important;
137
  }
138
 
139
+ /* غیرفعال کردن کامل تم تاریک */
140
+ .st-emotion-cache-1v0mbdj,
141
+ .st-emotion-cache-1pbsqtx,
142
+ .st-emotion-cache-1y4p8pa {
143
+ color: var(--text) !important;
144
+ background-color: var(--background) !important;
 
 
 
 
 
 
145
  }
146
 
147
  /* تنظیمات مخصوص دسکتاپ */
 
152
 
153
  .stTextInput input,
154
  .stNumberInput input {
155
+ color: var(--text) !important;
 
156
  }
157
  }
158
 
 
161
  .folium-map {
162
  height: 300px !important;
163
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  }
165
  </style>
166
  """, unsafe_allow_html=True)