lokesh341 commited on
Commit
8bfb67a
·
verified ·
1 Parent(s): 7df0626

Update static/styles.css

Browse files
Files changed (1) hide show
  1. static/styles.css +72 -180
static/styles.css CHANGED
@@ -27,7 +27,7 @@ body {
27
  flex-shrink: 0;
28
  }
29
 
30
- .chat-messages {
31
  flex: 1;
32
  overflow-y: auto;
33
  padding: 5px;
@@ -96,24 +96,20 @@ body {
96
  background-color: #f57c00;
97
  }
98
 
99
- .ingredients-list {
100
- max-height: 200px;
101
- overflow-y: auto;
 
102
  padding: 8px;
103
  margin: 5px 0;
104
  background-color: #f9f9f9;
105
  border-radius: 5px;
106
- display: flex;
107
- flex-wrap: wrap;
108
  gap: 8px;
109
  scroll-behavior: smooth;
110
  }
111
 
112
- .ingredient-item {
113
- display: flex;
114
- flex-direction: column;
115
- align-items: flex-start;
116
- width: 140px;
117
  background-color: white;
118
  border: 1px solid #ddd;
119
  border-radius: 6px;
@@ -121,11 +117,11 @@ body {
121
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
122
  }
123
 
124
- .ingredient-item:active {
125
  transform: scale(0.98);
126
  }
127
 
128
- .ingredient-image {
129
  width: 100%;
130
  height: 100px;
131
  object-fit: cover;
@@ -133,40 +129,68 @@ body {
133
  margin-bottom: 5px;
134
  }
135
 
136
- .ingredient-content {
137
  width: 100%;
138
  }
139
 
140
- .ingredient-name {
141
- font-size: 13px;
142
  font-weight: bold;
143
  color: #333;
144
  margin-bottom: 3px;
145
  }
146
 
147
- .menu-item-field {
148
  font-size: 10px;
149
  margin: 2px 0;
150
  color: #555;
151
  }
152
 
153
- .menu-item-field strong {
154
  color: #0288d1;
155
  }
156
 
157
- .show-desc-button {
158
- padding: 4px 8px;
159
- margin-top: 3px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
  background-color: #4caf50;
161
  color: white;
162
  border: none;
163
  border-radius: 5px;
164
  cursor: pointer;
165
  font-size: 10px;
166
- width: 100%;
 
167
  }
168
 
169
- .show-desc-button:active {
170
  background-color: #45a049;
171
  }
172
 
@@ -285,98 +309,6 @@ body {
285
  width: 100px;
286
  }
287
 
288
- .description-popup {
289
- position: fixed;
290
- top: 0;
291
- left: 0;
292
- width: 100%;
293
- height: 100%;
294
- background-color: rgba(0, 0, 0, 0.5);
295
- display: flex;
296
- justify-content: center;
297
- align-items: center;
298
- z-index: 1000;
299
- }
300
-
301
- .popup-content {
302
- background-color: white;
303
- padding: 10px;
304
- border-radius: 6px;
305
- max-width: 90%;
306
- max-height: 70vh;
307
- overflow-y: auto;
308
- text-align: center;
309
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
310
- }
311
-
312
- .popup-image {
313
- width: 60px;
314
- height: 60px;
315
- object-fit: cover;
316
- border-radius: 5px;
317
- margin-bottom: 5px;
318
- }
319
-
320
- .popup-content h3 {
321
- font-size: 14px;
322
- margin: 5px 0;
323
- }
324
-
325
- .popup-content p {
326
- font-size: 10px;
327
- margin: 3px 0;
328
- }
329
-
330
- .button-container {
331
- display: flex;
332
- justify-content: center;
333
- gap: 5px;
334
- margin-top: 5px;
335
- }
336
-
337
- .popup-add-button {
338
- padding: 4px 8px;
339
- background-color: #4caf50;
340
- color: white;
341
- border: none;
342
- border-radius: 5px;
343
- cursor: pointer;
344
- font-size: 10px;
345
- }
346
-
347
- .popup-add-button:active {
348
- background-color: #45a049;
349
- }
350
-
351
- .popup-close-button {
352
- padding: 4px 8px;
353
- background-color: #d32f2f;
354
- color: white;
355
- border: none;
356
- border-radius: 5px;
357
- cursor: pointer;
358
- font-size: 10px;
359
- }
360
-
361
- .popup-close-button:active {
362
- background-color: #b71c1c;
363
- }
364
-
365
- .dietary-button {
366
- padding: 4px 8px;
367
- border: none;
368
- border-radius: 5px;
369
- cursor: pointer;
370
- font-size: 10px;
371
- color: white;
372
- min-width: 50px;
373
- }
374
-
375
- .dietary-button.green { background-color: #4caf50; }
376
- .dietary-button.red { background-color: #d32f2f; }
377
- .dietary-button.gray { background-color: #616161; }
378
- .dietary-button:active { opacity: 0.9; }
379
-
380
  @media (max-width: 480px) {
381
  .chat-header {
382
  font-size: 14px;
@@ -401,26 +333,30 @@ body {
401
  padding: 5px 8px;
402
  min-width: 50px;
403
  }
404
- .ingredients-list {
405
- max-height: 180px;
 
406
  gap: 6px;
407
  padding: 6px;
408
  }
409
- .ingredient-item {
410
- width: 120px;
 
 
411
  }
412
- .ingredient-image {
413
  height: 80px;
414
  }
415
- .ingredient-name {
416
- font-size: 12px;
417
  }
418
- .menu-item-field {
419
  font-size: 9px;
420
  }
421
- .show-desc-button {
422
  font-size: 9px;
423
- padding: 3px 6px;
 
424
  }
425
  .options-container {
426
  gap: 3px;
@@ -465,29 +401,6 @@ body {
465
  font-size: 11px;
466
  padding: 3px;
467
  }
468
- .dietary-button {
469
- font-size: 9px;
470
- padding: 3px 6px;
471
- min-width: 40px;
472
- }
473
- .popup-content {
474
- padding: 8px;
475
- max-width: 95%;
476
- }
477
- .popup-image {
478
- width: 50px;
479
- height: 50px;
480
- }
481
- .popup-content h3 {
482
- font-size: 12px;
483
- }
484
- .popup-content p {
485
- font-size: 9px;
486
- }
487
- .popup-add-button, .popup-close-button {
488
- font-size: 9px;
489
- padding: 3px 6px;
490
- }
491
  }
492
 
493
  @media (min-width: 481px) and (max-width: 768px) {
@@ -510,25 +423,25 @@ body {
510
  min-height: 35px;
511
  padding: 6px 10px;
512
  }
513
- .ingredients-list {
514
- max-height: 200px;
515
  gap: 8px;
516
  }
517
- .ingredient-item {
518
- width: 140px;
519
  }
520
- .ingredient-image {
521
- height: 100px;
522
  }
523
- .ingredient-name {
524
- font-size: 13px;
525
  }
526
- .menu-item-field {
527
  font-size: 10px;
528
  }
529
- .show-desc-button {
530
  font-size: 10px;
531
- padding: 4px 8px;
 
532
  }
533
  .option-button {
534
  font-size: 12px;
@@ -564,25 +477,4 @@ body {
564
  width: 50px;
565
  font-size: 12px;
566
  }
567
- .dietary-button {
568
- font-size: 10px;
569
- padding: 4px 8px;
570
- }
571
- .popup-content {
572
- padding: 10px;
573
- }
574
- .popup-image {
575
- width: 60px;
576
- height: 60px;
577
- }
578
- .popup-content h3 {
579
- font-size: 13px;
580
- }
581
- .popup-content p {
582
- font-size: 10px;
583
- }
584
- .popup-add-button, .popup-close-button {
585
- font-size: 10px;
586
- padding: 4px 8px;
587
- }
588
  }
 
27
  flex-shrink: 0;
28
  }
29
 
30
+ .chat messages {
31
  flex: 1;
32
  overflow-y: auto;
33
  padding: 5px;
 
96
  background-color: #f57c00;
97
  }
98
 
99
+ .items-grid {
100
+ display: flex;
101
+ flex-wrap: nowrap;
102
+ overflow-x: auto;
103
  padding: 8px;
104
  margin: 5px 0;
105
  background-color: #f9f9f9;
106
  border-radius: 5px;
 
 
107
  gap: 8px;
108
  scroll-behavior: smooth;
109
  }
110
 
111
+ .item-card {
112
+ flex: 0 0 150px;
 
 
 
113
  background-color: white;
114
  border: 1px solid #ddd;
115
  border-radius: 6px;
 
117
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
118
  }
119
 
120
+ .item-card:active {
121
  transform: scale(0.98);
122
  }
123
 
124
+ .item-image {
125
  width: 100%;
126
  height: 100px;
127
  object-fit: cover;
 
129
  margin-bottom: 5px;
130
  }
131
 
132
+ .item-content {
133
  width: 100%;
134
  }
135
 
136
+ .item-name {
137
+ font-size: 12px;
138
  font-weight: bold;
139
  color: #333;
140
  margin-bottom: 3px;
141
  }
142
 
143
+ .item-field {
144
  font-size: 10px;
145
  margin: 2px 0;
146
  color: #555;
147
  }
148
 
149
+ .item-field strong {
150
  color: #0288d1;
151
  }
152
 
153
+ .item-description {
154
+ font-size: 10px;
155
+ margin: 5px 0;
156
+ color: #555;
157
+ }
158
+
159
+ .button-container {
160
+ display: flex;
161
+ gap: 5px;
162
+ margin-top: 5px;
163
+ }
164
+
165
+ .show-button {
166
+ padding: 4px;
167
+ background-color: #0288d1;
168
+ color: white;
169
+ border: none;
170
+ border-radius: 5px;
171
+ cursor: pointer;
172
+ font-size: 10px;
173
+ flex: 1;
174
+ min-width: 40px;
175
+ }
176
+
177
+ .show-button:active {
178
+ background-color: #0277bd;
179
+ }
180
+
181
+ .add-button {
182
+ padding: 4px;
183
  background-color: #4caf50;
184
  color: white;
185
  border: none;
186
  border-radius: 5px;
187
  cursor: pointer;
188
  font-size: 10px;
189
+ flex: 1;
190
+ min-width: 40px;
191
  }
192
 
193
+ .add-button:active {
194
  background-color: #45a049;
195
  }
196
 
 
309
  width: 100px;
310
  }
311
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
312
  @media (max-width: 480px) {
313
  .chat-header {
314
  font-size: 14px;
 
333
  padding: 5px 8px;
334
  min-width: 50px;
335
  }
336
+ .items-grid {
337
+ flex-direction: column;
338
+ overflow-x: hidden;
339
  gap: 6px;
340
  padding: 6px;
341
  }
342
+ .item-card {
343
+ width: 100%;
344
+ flex: 0 0 auto;
345
+ max-width: 120px;
346
  }
347
+ .item-image {
348
  height: 80px;
349
  }
350
+ .item-name {
351
+ font-size: 10px;
352
  }
353
+ .item-field, .item-description {
354
  font-size: 9px;
355
  }
356
+ .show-button, .add-button {
357
  font-size: 9px;
358
+ padding: 3px;
359
+ min-width: 35px;
360
  }
361
  .options-container {
362
  gap: 3px;
 
401
  font-size: 11px;
402
  padding: 3px;
403
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
404
  }
405
 
406
  @media (min-width: 481px) and (max-width: 768px) {
 
423
  min-height: 35px;
424
  padding: 6px 10px;
425
  }
426
+ .items-grid {
 
427
  gap: 8px;
428
  }
429
+ .item-card {
430
+ flex: 0 0 140px;
431
  }
432
+ .item-image {
433
+ height: 90px;
434
  }
435
+ .item-name {
436
+ font-size: 11px;
437
  }
438
+ .item-field, .item-description {
439
  font-size: 10px;
440
  }
441
+ .show-button, .add-button {
442
  font-size: 10px;
443
+ padding: 4px;
444
+ min-width: 40px;
445
  }
446
  .option-button {
447
  font-size: 12px;
 
477
  width: 50px;
478
  font-size: 12px;
479
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
480
  }