lokesh341 commited on
Commit
f41b688
·
verified ·
1 Parent(s): f39babe

Update static/styles.css

Browse files
Files changed (1) hide show
  1. static/styles.css +70 -28
static/styles.css CHANGED
@@ -101,38 +101,62 @@ body {
101
  }
102
 
103
  .ingredients-list {
104
- max-height: 150px;
105
  overflow-x: auto;
106
- overflow-y: hidden;
107
- white-space: nowrap;
108
  padding: 10px;
109
  margin: 10px 0;
110
  background-color: #f9f9f9;
111
  border-radius: 5px;
112
  display: flex;
 
113
  gap: 10px;
114
  }
115
 
116
  .ingredient-item {
117
- display: inline-flex;
118
  flex-direction: column;
119
- align-items: center;
120
- margin-right: 10px;
121
- cursor: pointer;
 
 
 
 
 
 
 
 
 
122
  }
123
 
124
  .ingredient-image {
125
- width: 50px;
126
- height: 50px;
127
  object-fit: cover;
128
  border-radius: 5px;
 
 
 
 
 
129
  }
130
 
131
  .ingredient-name {
132
- text-align: center;
133
- margin-top: 5px;
134
- font-size: 12px;
135
  color: #333;
 
 
 
 
 
 
 
 
 
 
 
136
  }
137
 
138
  .show-desc-button {
@@ -143,8 +167,9 @@ body {
143
  border: none;
144
  border-radius: 5px;
145
  cursor: pointer;
146
- font-size: 10px;
147
  width: 100%;
 
148
  }
149
 
150
  .show-desc-button:hover {
@@ -244,6 +269,24 @@ body {
244
  margin-left: 10px;
245
  }
246
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
247
  .description-popup {
248
  position: fixed;
249
  top: 0;
@@ -276,12 +319,6 @@ body {
276
  margin-bottom: 10px;
277
  }
278
 
279
- .menu-item-field {
280
- margin: 5px 0;
281
- font-size: 12px;
282
- text-align: left;
283
- }
284
-
285
  .button-container {
286
  display: flex;
287
  justify-content: center;
@@ -347,18 +384,23 @@ body {
347
  min-height: 35px;
348
  }
349
  .ingredients-list {
350
- max-height: 120px;
 
 
 
351
  }
352
  .ingredient-image {
353
- width: 40px;
354
- height: 40px;
355
  }
356
  .ingredient-name {
 
 
 
357
  font-size: 10px;
358
  }
359
  .show-desc-button {
360
- font-size: 8px;
361
- padding: 3px 6px;
362
  }
363
  .popup-content {
364
  max-width: 85%;
@@ -372,9 +414,6 @@ body {
372
  padding: 4px 8px;
373
  font-size: 10px;
374
  }
375
- .menu-item-field {
376
- font-size: 10px;
377
- }
378
  .selection-box {
379
  gap: 5px;
380
  }
@@ -385,7 +424,10 @@ body {
385
  padding: 3px 8px;
386
  font-size: 10px;
387
  }
388
- .manual-input {
389
  width: 120px;
390
  }
 
 
 
391
  }
 
101
  }
102
 
103
  .ingredients-list {
104
+ max-height: 300px;
105
  overflow-x: auto;
106
+ overflow-y: auto;
 
107
  padding: 10px;
108
  margin: 10px 0;
109
  background-color: #f9f9f9;
110
  border-radius: 5px;
111
  display: flex;
112
+ flex-wrap: wrap;
113
  gap: 10px;
114
  }
115
 
116
  .ingredient-item {
117
+ display: flex;
118
  flex-direction: column;
119
+ align-items: flex-start;
120
+ width: 220px;
121
+ background-color: white;
122
+ border: 1px solid #ddd;
123
+ border-radius: 8px;
124
+ padding: 10px;
125
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
126
+ transition: transform 0.2s;
127
+ }
128
+
129
+ .ingredient-item:hover {
130
+ transform: translateY(-5px);
131
  }
132
 
133
  .ingredient-image {
134
+ width: 100%;
135
+ height: 120px;
136
  object-fit: cover;
137
  border-radius: 5px;
138
+ margin-bottom: 10px;
139
+ }
140
+
141
+ .ingredient-content {
142
+ width: 100%;
143
  }
144
 
145
  .ingredient-name {
146
+ font-size: 16px;
147
+ font-weight: bold;
 
148
  color: #333;
149
+ margin-bottom: 5px;
150
+ }
151
+
152
+ .menu-item-field {
153
+ font-size: 12px;
154
+ margin: 3px 0;
155
+ color: #555;
156
+ }
157
+
158
+ .menu-item-field strong {
159
+ color: #0288d1;
160
  }
161
 
162
  .show-desc-button {
 
167
  border: none;
168
  border-radius: 5px;
169
  cursor: pointer;
170
+ font-size: 12px;
171
  width: 100%;
172
+ transition: background-color 0.3s;
173
  }
174
 
175
  .show-desc-button:hover {
 
269
  margin-left: 10px;
270
  }
271
 
272
+ .quantity-input {
273
+ padding: 5px;
274
+ border: 1px solid #0288d1;
275
+ border-radius: 5px;
276
+ font-size: 14px;
277
+ width: 60px;
278
+ margin-left: 10px;
279
+ }
280
+
281
+ .order-name-input {
282
+ padding: 5px;
283
+ border: 1px solid #0288d1;
284
+ border-radius: 5px;
285
+ font-size: 14px;
286
+ width: 150px;
287
+ margin-left: 10px;
288
+ }
289
+
290
  .description-popup {
291
  position: fixed;
292
  top: 0;
 
319
  margin-bottom: 10px;
320
  }
321
 
 
 
 
 
 
 
322
  .button-container {
323
  display: flex;
324
  justify-content: center;
 
384
  min-height: 35px;
385
  }
386
  .ingredients-list {
387
+ max-height: 250px;
388
+ }
389
+ .ingredient-item {
390
+ width: 180px;
391
  }
392
  .ingredient-image {
393
+ height: 100px;
 
394
  }
395
  .ingredient-name {
396
+ font-size: 14px;
397
+ }
398
+ .menu-item-field {
399
  font-size: 10px;
400
  }
401
  .show-desc-button {
402
+ font-size: 10px;
403
+ padding: 4px 8px;
404
  }
405
  .popup-content {
406
  max-width: 85%;
 
414
  padding: 4px 8px;
415
  font-size: 10px;
416
  }
 
 
 
417
  .selection-box {
418
  gap: 5px;
419
  }
 
424
  padding: 3px 8px;
425
  font-size: 10px;
426
  }
427
+ .manual-input, .order-name-input {
428
  width: 120px;
429
  }
430
+ .quantity-input {
431
+ width: 50px;
432
+ }
433
  }