lokesh341 commited on
Commit
b6bc52b
·
verified ·
1 Parent(s): 53f36cf

Update static/styles.css

Browse files
Files changed (1) hide show
  1. static/styles.css +44 -66
static/styles.css CHANGED
@@ -100,7 +100,7 @@ body {
100
  background-color: #f57c00;
101
  }
102
 
103
- .suggestions-list, .ingredients-list {
104
  max-height: 150px;
105
  overflow-x: auto;
106
  overflow-y: hidden;
@@ -114,60 +114,40 @@ body {
114
  }
115
 
116
  .ingredient-item {
117
- display: flex;
118
  flex-direction: column;
119
  align-items: center;
120
- margin: 10px;
121
  cursor: pointer;
122
- max-width: 120px;
123
- text-align: center;
124
  }
125
 
126
- .item-image {
127
- width: 100px;
128
- height: 100px;
129
  object-fit: cover;
130
- border-radius: 10px;
131
- margin-bottom: 5px;
132
  }
133
 
134
- .item-name {
135
- font-size: 14px;
136
- margin-bottom: 5px;
 
137
  color: #333;
138
  }
139
 
140
- .button-container {
141
- display: flex;
142
- gap: 5px;
143
- justify-content: center;
144
- }
145
-
146
- .show-desc-button, .add-button {
147
- padding: 6px 12px;
148
  margin-top: 5px;
 
 
149
  border: none;
150
  border-radius: 5px;
151
  cursor: pointer;
152
- font-size: 12px;
153
- width: 100px;
154
- }
155
-
156
- .show-desc-button {
157
- background-color: #0288d1;
158
- color: white;
159
  }
160
 
161
  .show-desc-button:hover {
162
- background-color: #0277bd;
163
- }
164
-
165
- .add-button {
166
- background-color: #4caf50;
167
- color: white;
168
- }
169
-
170
- .add-button:hover {
171
  background-color: #45a049;
172
  }
173
 
@@ -295,8 +275,8 @@ body {
295
 
296
  .popup-content {
297
  background-color: #ffffff;
298
- padding: 20px;
299
- border-radius: 10px;
300
  max-width: 90%;
301
  max-height: 80vh;
302
  overflow-y: auto;
@@ -305,21 +285,27 @@ body {
305
  }
306
 
307
  .popup-image {
308
- width: 100px;
309
- height: 100px;
310
  object-fit: cover;
311
  border-radius: 5px;
312
  margin-bottom: 10px;
313
  }
314
 
 
 
 
 
 
 
 
315
  .popup-add-button {
316
- padding: 8px 15px;
317
  background-color: #4caf50;
318
  color: white;
319
  border: none;
320
  border-radius: 5px;
321
  cursor: pointer;
322
- margin: 10px 5px 0 0;
323
  }
324
 
325
  .popup-add-button:hover {
@@ -327,13 +313,12 @@ body {
327
  }
328
 
329
  .popup-close-button {
330
- padding: 8px 15px;
331
  background-color: #d32f2f;
332
  color: white;
333
  border: none;
334
  border-radius: 5px;
335
  cursor: pointer;
336
- margin: 10px 0 0 5px;
337
  }
338
 
339
  .popup-close-button:hover {
@@ -358,37 +343,30 @@ body {
358
  min-height: 35px;
359
  }
360
  .ingredients-list {
361
- max-height: 200px;
362
- flex-wrap: wrap;
363
- justify-content: center;
364
- }
365
- .ingredient-item {
366
- max-width: 100px;
367
- margin: 5px;
368
- }
369
- .item-image {
370
- width: 80px;
371
- height: 80px;
372
  }
373
- .item-name {
374
- font-size: 12px;
 
375
  }
376
- .show-desc-button, .add-button {
377
- width: 80px;
378
- padding: 4px 8px;
379
  font-size: 10px;
380
  }
 
 
 
 
381
  .popup-content {
382
  max-width: 85%;
383
- padding: 15px;
384
  }
385
  .popup-image {
386
- width: 80px;
387
- height: 80px;
388
  }
389
  .popup-add-button, .popup-close-button {
390
- padding: 6px 12px;
391
- font-size: 12px;
392
  }
393
  .selection-box {
394
  gap: 5px;
 
100
  background-color: #f57c00;
101
  }
102
 
103
+ .ingredients-list {
104
  max-height: 150px;
105
  overflow-x: auto;
106
  overflow-y: hidden;
 
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 {
139
+ padding: 5px 10px;
 
 
 
 
 
 
140
  margin-top: 5px;
141
+ background-color: #4caf50;
142
+ color: white;
143
  border: none;
144
  border-radius: 5px;
145
  cursor: pointer;
146
+ font-size: 10px;
147
+ width: 100%;
 
 
 
 
 
148
  }
149
 
150
  .show-desc-button:hover {
 
 
 
 
 
 
 
 
 
151
  background-color: #45a049;
152
  }
153
 
 
275
 
276
  .popup-content {
277
  background-color: #ffffff;
278
+ padding: 15px;
279
+ border-radius: 8px;
280
  max-width: 90%;
281
  max-height: 80vh;
282
  overflow-y: auto;
 
285
  }
286
 
287
  .popup-image {
288
+ width: 80px;
289
+ height: 80px;
290
  object-fit: cover;
291
  border-radius: 5px;
292
  margin-bottom: 10px;
293
  }
294
 
295
+ .button-container {
296
+ display: flex;
297
+ justify-content: center;
298
+ gap: 10px;
299
+ margin-top: 10px;
300
+ }
301
+
302
  .popup-add-button {
303
+ padding: 6px 12px;
304
  background-color: #4caf50;
305
  color: white;
306
  border: none;
307
  border-radius: 5px;
308
  cursor: pointer;
 
309
  }
310
 
311
  .popup-add-button:hover {
 
313
  }
314
 
315
  .popup-close-button {
316
+ padding: 6px 12px;
317
  background-color: #d32f2f;
318
  color: white;
319
  border: none;
320
  border-radius: 5px;
321
  cursor: pointer;
 
322
  }
323
 
324
  .popup-close-button:hover {
 
343
  min-height: 35px;
344
  }
345
  .ingredients-list {
346
+ max-height: 120px;
 
 
 
 
 
 
 
 
 
 
347
  }
348
+ .ingredient-image {
349
+ width: 40px;
350
+ height: 40px;
351
  }
352
+ .ingredient-name {
 
 
353
  font-size: 10px;
354
  }
355
+ .show-desc-button {
356
+ font-size: 8px;
357
+ padding: 3px 6px;
358
+ }
359
  .popup-content {
360
  max-width: 85%;
361
+ padding: 10px;
362
  }
363
  .popup-image {
364
+ width: 60px;
365
+ height: 60px;
366
  }
367
  .popup-add-button, .popup-close-button {
368
+ padding: 4px 8px;
369
+ font-size: 10px;
370
  }
371
  .selection-box {
372
  gap: 5px;