Maryam Ilka commited on
Commit
7bee66e
·
verified ·
1 Parent(s): 4ba484b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +97 -90
app.py CHANGED
@@ -22,119 +22,119 @@ st.markdown("""
22
  font-family: 'Vazir';
23
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.woff') format('woff');
24
  }
25
-
26
  :root {
27
- /* تنظیمات رنگ */
28
- --primary-color: #6a0dad;
29
- --text-color: #333333;
30
- --background-color: #ffffff;
31
- --rahyar-white: #ffffff;
32
-
33
- /* غیرفعال کردن تم تاریک */
34
- color-scheme: light only;
35
  }
36
-
37
  * {
38
  font-family: 'Vazir', sans-serif !important;
39
  text-align: right !important;
40
  direction: rtl !important;
41
- color: var(--text-color) !important;
42
  }
43
-
44
- body, [data-testid="stAppViewContainer"], .stApp {
45
- background-color: var(--background-color) !important;
 
 
46
  }
47
-
48
- /* کامپوننت‌های سفارشی */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  .rahyar-header {
50
- background-color: var(--primary-color) !important;
 
51
  padding: 15px !important;
52
  border-radius: 10px !important;
53
- color: white !important;
54
  margin-bottom: 20px !important;
55
  text-align: center !important;
56
  }
57
-
58
  .price-container {
59
  background-color: #f8f9fa !important;
60
  border-radius: 10px !important;
61
  padding: 15px !important;
62
- margin: 15px 0;
63
- border-right: 5px solid var(--primary-color);
64
  }
65
-
66
  .rahyar-price {
67
- color: var(--primary-color) !important;
68
  font-size: 28px !important;
69
  font-weight: bold !important;
70
- text-align: center !important;
71
- margin: 10px 0;
72
  }
73
-
74
- .rahyar-btn, .accept-btn, [data-testid="baseButton-primary"] {
75
- background-color: var(--primary-color) !important;
 
76
  color: white !important;
77
- border: none !important;
78
- padding: 10px 20px !important;
79
- border-radius: 8px !important;
80
- font-weight: bold !important;
81
- margin: 5px 0 !important;
82
- width: 100% !important;
83
- transition: all 0.3s ease;
84
- box-shadow: 0 4px 8px rgba(0,0,0,0.1);
85
- }
86
-
87
- .rahyar-btn:hover, .accept-btn:hover {
88
- background-color: #7b1fa2 !important;
89
- transform: translateY(-2px);
90
- box-shadow: 0 6px 12px rgba(0,0,0,0.15);
91
- }
92
-
93
- .reject-btn, .stFormSubmitButton>button, [data-testid="baseButton-secondary"] {
94
- background-color: white !important;
95
- color: var(--primary-color) !important;
96
- border: 2px solid var(--primary-color) !important;
97
- padding: 10px 20px !important;
98
- border-radius: 8px !important;
99
- font-weight: bold !important;
100
- margin: 5px 0 !important;
101
- width: 100% !important;
102
- transition: all 0.3s ease;
103
- box-shadow: 0 4px 8px rgba(0,0,0,0.1);
104
  }
105
-
106
- .reject-btn:hover {
107
- background-color: #f8f0ff !important;
108
- transform: translateY(-2px);
109
- box-shadow: 0 6px 12px rgba(0,0,0,0.15);
110
- }
111
-
112
- /* استایل‌های فرم‌ها */
113
- .stTextInput input,
114
- .stNumberInput input,
115
- .stSelectbox select,
116
- .stTextArea textarea,
117
- .stDateInput input,
118
- .stTimeInput input {
119
- color: var(--text-color) !important;
120
  background-color: white !important;
121
- border: 1px solid var(--text-color) !important;
122
- border-radius: 8px !important;
123
- padding: 8px 12px !important;
124
  }
125
-
126
- /* تنظیمات رسپانسیو */
127
- .folium-map {
128
- height: 400px !important;
129
- width: 100% !important;
130
- }
131
-
132
- .price-container {
133
- width: 80% !important;
134
- margin: 20px auto !important;
 
 
135
  }
136
-
137
- @media only screen and (max-width: 768px) {
 
138
  .folium-map {
139
  height: 300px !important;
140
  }
@@ -142,11 +142,18 @@ st.markdown("""
142
  .price-container {
143
  width: 95% !important;
144
  }
145
-
146
- .rahyar-btn, .accept-btn, .reject-btn {
147
- padding: 12px 20px !important;
148
- font-size: 14px !important;
149
- }
 
 
 
 
 
 
 
150
  }
151
  </style>
152
  """, unsafe_allow_html=True)
 
22
  font-family: 'Vazir';
23
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.woff') format('woff');
24
  }
25
+
26
  :root {
27
+ --primary: #6a0dad;
28
+ --text: #333333;
29
+ --background: #ffffff;
30
+ --border: #dddddd;
 
 
 
 
31
  }
32
+
33
  * {
34
  font-family: 'Vazir', sans-serif !important;
35
  text-align: right !important;
36
  direction: rtl !important;
 
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
+ /* کامپوننت‌های سفارشی شما */
86
  .rahyar-header {
87
+ background-color: var(--primary) !important;
88
+ color: white !important;
89
  padding: 15px !important;
90
  border-radius: 10px !important;
 
91
  margin-bottom: 20px !important;
92
  text-align: center !important;
93
  }
94
+
95
  .price-container {
96
  background-color: #f8f9fa !important;
97
  border-radius: 10px !important;
98
  padding: 15px !important;
99
+ margin: 15px 0 !important;
100
+ border-right: 5px solid var(--primary) !important;
101
  }
102
+
103
  .rahyar-price {
104
+ color: var(--primary) !important;
105
  font-size: 28px !important;
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
+ /* تنظیمات مخصوص دسکتاپ */
124
+ @media (min-width: 769px) {
125
+ .folium-map {
126
+ height: 500px !important;
127
+ }
128
+
129
+ .stTextInput input,
130
+ .stNumberInput input {
131
+ color: black !important;
132
+ background-color: white !important;
133
+ }
134
  }
135
+
136
+ /* تنظیمات مخصوص موبایل */
137
+ @media (max-width: 768px) {
138
  .folium-map {
139
  height: 300px !important;
140
  }
 
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)