geethareddy commited on
Commit
7b712ef
·
verified ·
1 Parent(s): c2b3e42

Update static/styles.css

Browse files
Files changed (1) hide show
  1. static/styles.css +36 -256
static/styles.css CHANGED
@@ -1,311 +1,91 @@
1
  body {
2
  font-family: Arial, sans-serif;
 
3
  margin: 0;
4
  padding: 0;
5
  display: flex;
6
  justify-content: center;
7
  align-items: center;
8
- min-height: 100vh;
9
- background-color: #f0f2f5;
10
- overflow: auto;
11
  }
12
 
13
  .chat-container {
14
- width: 100%;
15
- max-width: 400px;
16
- height: 80vh;
17
- max-height: 600px;
18
- border: 1px solid #ccc;
19
- border-radius: 10px;
20
  overflow: hidden;
21
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
22
- background-color: white;
23
- display: flex;
24
- flex-direction: column;
25
- margin: 10px;
26
  }
27
 
28
  .chat-header {
29
- background-color: #f28c38;
30
  color: white;
31
- padding: 10px;
32
  text-align: center;
33
- font-size: 20px;
34
- flex-shrink: 0;
35
  }
36
 
37
  .chat-messages {
38
- flex: 1;
 
39
  overflow-y: auto;
40
- padding: 15px;
41
- box-sizing: border-box;
42
  }
43
 
44
  .bot-message {
45
- background-color: #fffbe6;
46
- padding: 10px;
47
- margin: 10px 0;
48
  border-radius: 5px;
49
- max-width: 70%;
50
- word-wrap: break-word;
51
- font-size: 14px;
52
  }
53
 
54
  .user-message {
55
- background-color: #e1f5fe;
56
- padding: 10px;
57
- margin: 10px 0;
58
  border-radius: 5px;
59
- max-width: 70%;
60
- margin-left: auto;
61
  text-align: right;
62
- word-wrap: break-word;
63
- font-size: 14px;
64
  }
65
 
66
- .chat-input {
67
  display: flex;
 
 
68
  padding: 10px;
69
- border-top: 1px solid #ccc;
70
- flex-shrink: 0;
71
- }
72
-
73
- .chat-input input {
74
- flex: 1;
75
- padding: 8px;
76
- border: 1px solid #ccc;
77
  border-radius: 5px;
78
- box-sizing: border-box;
79
- font-size: 14px;
80
- min-height: 40px;
81
- }
82
-
83
- .chat-input button {
84
- padding: 8px 15px;
85
- margin-left: 10px;
86
- background-color: #f28c38;
87
- color: white;
88
- border: none;
89
- border-radius: 5px;
90
- cursor: pointer;
91
- transition: background-color 0.3s;
92
- font-size: 14px;
93
- min-height: 40px;
94
- }
95
-
96
- .chat-input button:hover {
97
- background-color: #d8702a;
98
  }
99
 
100
- .option-button {
101
- display: inline-block;
102
- padding: 10px 15px;
103
- margin: 5px;
104
- background-color: #9c27b0;
105
  color: white;
106
- border: none;
107
- border-radius: 5px;
108
- cursor: pointer;
109
- transition: background-color 0.3s;
110
- font-size: 14px;
111
- min-width: 100px;
112
- text-align: center;
113
- }
114
-
115
- .option-button.green {
116
- background-color: #4caf50;
117
- }
118
-
119
- .option-button.red {
120
- background-color: #f44336;
121
- }
122
-
123
- .option-button.gray {
124
- background-color: #9e9e9e;
125
- }
126
-
127
- .option-button:hover {
128
- opacity: 0.9;
129
- }
130
-
131
- /* Horizontal scrollable ingredient list with images */
132
- .ingredients-list {
133
- max-height: 200px;
134
- overflow-x: auto;
135
- overflow-y: hidden;
136
- white-space: nowrap;
137
- padding: 10px;
138
- margin: 10px 0;
139
- background-color: #f9f9f9;
140
- border-radius: 5px;
141
- display: flex;
142
- gap: 10px;
143
- }
144
-
145
- .ingredients-list .ingredient-item {
146
- display: inline-flex;
147
- flex-direction: column;
148
- align-items: center;
149
- margin-right: 15px;
150
- }
151
-
152
- .ingredients-list img {
153
- width: 80px;
154
- height: 80px;
155
- object-fit: cover;
156
- border-radius: 5px;
157
- margin-bottom: 5px;
158
- }
159
-
160
- .ingredients-list button {
161
  padding: 5px 10px;
162
- margin-top: 5px;
163
- background-color: #4CAF50; /* Matches "Add" button color */
164
- color: white;
165
  border: none;
166
  border-radius: 5px;
167
  cursor: pointer;
168
- font-size: 12px;
169
  }
170
 
171
- .ingredients-list button:hover {
172
- background-color: #45a049; /* Darker shade for hover */
173
- }
174
-
175
- /* Remove button styling with "X" - Updated to green */
176
- .remove-button {
177
- padding: 2px 8px;
178
- background-color: #4CAF50; /* Changed to green to match your request */
179
- color: white; /* White "X" */
180
- border: none;
181
- border-radius: 5px;
182
- cursor: pointer;
183
- margin-left: 10px;
184
- font-size: 16px;
185
- line-height: 1;
186
- width: 20px; /* Fixed width for square "X" */
187
- height: 20px; /* Fixed height for square "X" */
188
- text-align: center;
189
  }
190
 
191
- .remove-button:hover {
192
- background-color: #45a049; /* Darker green for hover, matching "Add" button */
 
193
  }
194
 
195
- /* Send button styling - Updated to green */
196
  .send-button {
197
- display: block;
198
- padding: 10px 20px;
199
- margin: 10px auto 0;
200
- background-color: #4CAF50; /* Changed to green to match your request */
201
  color: white;
202
  border: none;
203
  border-radius: 5px;
204
- cursor: pointer;
205
- transition: background-color 0.3s;
206
- font-size: 14px;
207
- min-width: 100px;
208
- text-align: center;
209
  }
210
 
211
  .send-button:hover {
212
- background-color: #45a049; /* Darker green for hover */
213
- }
214
-
215
- /* Non-editable selected ingredients box */
216
- .selected-ingredients {
217
- padding: 10px;
218
- margin: 10px 0;
219
- border: 1px solid #ccc;
220
- border-radius: 5px;
221
- background-color: #f0f0f0;
222
- overflow-y: auto;
223
- max-height: 100px;
224
- }
225
-
226
- .selected-ingredients div {
227
- margin: 5px 0;
228
- word-wrap: break-word;
229
  }
230
-
231
- /* Media Queries */
232
- @media (max-width: 768px) {
233
- .chat-container {
234
- max-width: 100%;
235
- height: 90vh;
236
- margin: 5px;
237
- }
238
-
239
- .chat-header {
240
- font-size: 18px;
241
- }
242
-
243
- .chat-messages {
244
- padding: 10px;
245
- }
246
-
247
- .chat-input input,
248
- .chat-input button {
249
- padding: 6px;
250
- font-size: 12px;
251
- min-height: 35px;
252
- }
253
-
254
- .option-button {
255
- padding: 8px 12px;
256
- font-size: 12px;
257
- min-width: 90px;
258
- }
259
-
260
- .ingredients-list {
261
- max-height: 150px;
262
- }
263
-
264
- .ingredients-list img {
265
- width: 60px;
266
- height: 60px;
267
- }
268
-
269
- .selected-ingredients {
270
- max-height: 80px;
271
- }
272
- }
273
-
274
- @media (min-width: 769px) {
275
- .chat-container {
276
- margin: 20px;
277
- }
278
-
279
- .chat-header {
280
- font-size: 22px;
281
- }
282
-
283
- .bot-message,
284
- .user-message {
285
- font-size: 16px;
286
- }
287
-
288
- .chat-input input,
289
- .chat-input button {
290
- font-size: 16px;
291
- min-height: 45px;
292
- }
293
-
294
- .option-button {
295
- font-size: 16px;
296
- min-width: 120px;
297
- }
298
-
299
- .ingredients-list {
300
- max-height: 250px;
301
- }
302
-
303
- .ingredients-list img {
304
- width: 100px;
305
- height: 100px;
306
- }
307
-
308
- .selected-ingredients {
309
- max-height: 120px;
310
- }
311
- }
 
1
  body {
2
  font-family: Arial, sans-serif;
3
+ background-color: #f7f7f7;
4
  margin: 0;
5
  padding: 0;
6
  display: flex;
7
  justify-content: center;
8
  align-items: center;
9
+ height: 100vh;
 
 
10
  }
11
 
12
  .chat-container {
13
+ background-color: #fff;
14
+ width: 300px;
15
+ border-radius: 8px;
16
+ box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
 
 
17
  overflow: hidden;
 
 
 
 
 
18
  }
19
 
20
  .chat-header {
21
+ background-color: #4CAF50;
22
  color: white;
 
23
  text-align: center;
24
+ padding: 10px;
25
+ font-size: 18px;
26
  }
27
 
28
  .chat-messages {
29
+ padding: 10px;
30
+ height: 300px;
31
  overflow-y: auto;
32
+ border-bottom: 1px solid #ddd;
 
33
  }
34
 
35
  .bot-message {
36
+ background-color: #f1f1f1;
37
+ padding: 8px;
 
38
  border-radius: 5px;
39
+ margin-bottom: 10px;
 
 
40
  }
41
 
42
  .user-message {
43
+ background-color: #007BFF;
44
+ color: white;
45
+ padding: 8px;
46
  border-radius: 5px;
47
+ margin-bottom: 10px;
 
48
  text-align: right;
 
 
49
  }
50
 
51
+ .ingredient-item {
52
  display: flex;
53
+ justify-content: space-between;
54
+ align-items: center;
55
  padding: 10px;
56
+ margin-bottom: 10px;
57
+ border: 1px solid #ddd;
 
 
 
 
 
 
58
  border-radius: 5px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  }
60
 
61
+ button {
62
+ background-color: #4CAF50;
 
 
 
63
  color: white;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  padding: 5px 10px;
 
 
 
65
  border: none;
66
  border-radius: 5px;
67
  cursor: pointer;
 
68
  }
69
 
70
+ button:hover {
71
+ background-color: #45a049;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  }
73
 
74
+ .selected-ingredients {
75
+ padding: 10px;
76
+ margin-top: 10px;
77
  }
78
 
 
79
  .send-button {
80
+ margin-top: 10px;
81
+ width: 100%;
82
+ padding: 10px;
83
+ background-color: #007BFF;
84
  color: white;
85
  border: none;
86
  border-radius: 5px;
 
 
 
 
 
87
  }
88
 
89
  .send-button:hover {
90
+ background-color: #0056b3;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  }