lokesh341 commited on
Commit
c7236bd
·
verified ·
1 Parent(s): 3a2bd22

Update static/styles.css

Browse files
Files changed (1) hide show
  1. static/styles.css +25 -146
static/styles.css CHANGED
@@ -7,7 +7,6 @@ body {
7
  align-items: center;
8
  min-height: 100vh;
9
  background-color: #f0f2f5;
10
- overflow: auto;
11
  }
12
 
13
  .chat-container {
@@ -26,7 +25,7 @@ body {
26
  }
27
 
28
  .chat-header {
29
- background-color: #f28c38;
30
  color: white;
31
  padding: 10px;
32
  text-align: center;
@@ -36,9 +35,9 @@ body {
36
 
37
  .chat-messages {
38
  flex: 1;
39
- overflow-y: auto;
40
  padding: 15px;
41
  box-sizing: border-box;
 
42
  }
43
 
44
  .bot-message {
@@ -80,10 +79,16 @@ body {
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;
@@ -94,100 +99,10 @@ body {
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
- }
158
-
159
- .ingredients-list button {
160
- padding: 5px 10px;
161
- margin-top: 5px;
162
- background-color: #4caf50;
163
- color: white;
164
- border: none;
165
- border-radius: 5px;
166
- cursor: pointer;
167
- font-size: 12px;
168
  }
169
 
170
- .ingredients-list button:hover {
171
- background-color: #45a049;
172
- }
173
-
174
- /* Non-editable selected ingredients box */
175
- .selected-ingredients {
176
- padding: 10px;
177
- margin: 10px 0;
178
- border: 1px solid #ccc;
179
- border-radius: 5px;
180
- background-color: #f0f0f0;
181
- overflow-y: auto;
182
- max-height: 100px;
183
- }
184
-
185
- .selected-ingredients div {
186
- margin: 5px 0;
187
- word-wrap: break-word;
188
- }
189
-
190
- /* Media Queries */
191
  @media (max-width: 768px) {
192
  .chat-container {
193
  max-width: 100%;
@@ -197,74 +112,38 @@ body {
197
 
198
  .chat-header {
199
  font-size: 18px;
 
200
  }
201
 
202
  .chat-messages {
203
  padding: 10px;
 
204
  }
205
 
206
- .chat-input input,
207
- .chat-input button {
208
  padding: 6px;
209
  font-size: 12px;
210
  min-height: 35px;
211
  }
212
 
213
- .option-button {
214
- padding: 8px 12px;
215
- font-size: 12px;
216
- min-width: 90px;
217
- }
218
-
219
- .ingredients-list {
220
- max-height: 150px;
221
- }
222
-
223
- .ingredients-list img {
224
- width: 60px;
225
- height: 60px;
226
- }
227
-
228
- .selected-ingredients {
229
- max-height: 80px;
230
  }
231
- }
232
 
233
- @media (min-width: 769px) {
234
- .chat-container {
235
- margin: 20px;
 
 
236
  }
237
 
238
- .chat-header {
239
- font-size: 22px;
240
  }
241
 
242
  .bot-message,
243
  .user-message {
244
- font-size: 16px;
245
- }
246
-
247
- .chat-input input,
248
- .chat-input button {
249
- font-size: 16px;
250
- min-height: 45px;
251
- }
252
-
253
- .option-button {
254
- font-size: 16px;
255
- min-width: 120px;
256
- }
257
-
258
- .ingredients-list {
259
- max-height: 250px;
260
- }
261
-
262
- .ingredients-list img {
263
- width: 100px;
264
- height: 100px;
265
- }
266
-
267
- .selected-ingredients {
268
- max-height: 120px;
269
  }
270
  }
 
7
  align-items: center;
8
  min-height: 100vh;
9
  background-color: #f0f2f5;
 
10
  }
11
 
12
  .chat-container {
 
25
  }
26
 
27
  .chat-header {
28
+ background-color: #ffbd80; /* Changed to light orange */
29
  color: white;
30
  padding: 10px;
31
  text-align: center;
 
35
 
36
  .chat-messages {
37
  flex: 1;
 
38
  padding: 15px;
39
  box-sizing: border-box;
40
+ /* Removed overflow-y: auto to disable scrolling */
41
  }
42
 
43
  .bot-message {
 
79
  min-height: 40px;
80
  }
81
 
82
+ .chat-input input:focus {
83
+ border-color: #4CAF50; /* Green border when typing */
84
+ outline: none;
85
+ box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
86
+ }
87
+
88
  .chat-input button {
89
  padding: 8px 15px;
90
  margin-left: 10px;
91
+ background-color: #ffbd80; /* Changed to light orange */
92
  color: white;
93
  border: none;
94
  border-radius: 5px;
 
99
  }
100
 
101
  .chat-input button:hover {
102
+ background-color: #ffa94d; /* Slightly darker light orange for hover */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  }
104
 
105
+ /* Media Queries for Mobile View */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  @media (max-width: 768px) {
107
  .chat-container {
108
  max-width: 100%;
 
112
 
113
  .chat-header {
114
  font-size: 18px;
115
+ background-color: #ffbd80; /* Light orange for mobile */
116
  }
117
 
118
  .chat-messages {
119
  padding: 10px;
120
+ /* No scrolling */
121
  }
122
 
123
+ .chat-input input {
 
124
  padding: 6px;
125
  font-size: 12px;
126
  min-height: 35px;
127
  }
128
 
129
+ .chat-input input:focus {
130
+ border-color: #4CAF50; /* Green when typing */
131
+ box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  }
 
133
 
134
+ .chat-input button {
135
+ padding: 6px;
136
+ font-size: 12px;
137
+ min-height: 35px;
138
+ background-color: #ffbd80; /* Light orange for mobile */
139
  }
140
 
141
+ .chat-input button:hover {
142
+ background-color: #ffa94d;
143
  }
144
 
145
  .bot-message,
146
  .user-message {
147
+ font-size: 12px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
  }
149
  }