Spaces:
Sleeping
Sleeping
Update static/styles.css
Browse files- static/styles.css +16 -52
static/styles.css
CHANGED
@@ -135,7 +135,7 @@ body {
|
|
135 |
color: #333;
|
136 |
}
|
137 |
|
138 |
-
.show-desc-button {
|
139 |
padding: 5px 10px;
|
140 |
margin-top: 5px;
|
141 |
background-color: #4caf50;
|
@@ -147,7 +147,7 @@ body {
|
|
147 |
width: 100%;
|
148 |
}
|
149 |
|
150 |
-
.show-desc-button:hover {
|
151 |
background-color: #45a049;
|
152 |
}
|
153 |
|
@@ -244,51 +244,6 @@ body {
|
|
244 |
margin-left: 10px;
|
245 |
}
|
246 |
|
247 |
-
.text-input-container {
|
248 |
-
position: relative;
|
249 |
-
display: inline-block;
|
250 |
-
}
|
251 |
-
|
252 |
-
.suggestion-box {
|
253 |
-
position: absolute;
|
254 |
-
top: 100%;
|
255 |
-
left: 0;
|
256 |
-
background-color: white;
|
257 |
-
border: 1px solid #ccc;
|
258 |
-
border-radius: 5px;
|
259 |
-
max-height: 150px;
|
260 |
-
overflow-y: auto;
|
261 |
-
width: 100%;
|
262 |
-
z-index: 1000;
|
263 |
-
display: none;
|
264 |
-
}
|
265 |
-
|
266 |
-
.suggestion-item {
|
267 |
-
padding: 5px 10px;
|
268 |
-
cursor: pointer;
|
269 |
-
font-size: 12px;
|
270 |
-
}
|
271 |
-
|
272 |
-
.suggestion-item:hover {
|
273 |
-
background-color: #f0f0f0;
|
274 |
-
}
|
275 |
-
|
276 |
-
.dietary-button {
|
277 |
-
padding: 5px 10px;
|
278 |
-
margin-right: 5px;
|
279 |
-
border: none;
|
280 |
-
border-radius: 5px;
|
281 |
-
cursor: pointer;
|
282 |
-
font-size: 12px;
|
283 |
-
color: white;
|
284 |
-
}
|
285 |
-
|
286 |
-
.dietary-button.green { background-color: #4caf50; }
|
287 |
-
.dietary-button.red { background-color: #d32f2f; }
|
288 |
-
.dietary-button.gray { background-color: #616161; }
|
289 |
-
.dietary-button:hover { opacity: 0.9; }
|
290 |
-
|
291 |
-
/* Popup Styles */
|
292 |
.description-popup {
|
293 |
position: fixed;
|
294 |
top: 0;
|
@@ -313,6 +268,16 @@ body {
|
|
313 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
314 |
}
|
315 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
.popup-image {
|
317 |
width: 80px;
|
318 |
height: 80px;
|
@@ -381,7 +346,7 @@ body {
|
|
381 |
.ingredient-name {
|
382 |
font-size: 10px;
|
383 |
}
|
384 |
-
.show-desc-button {
|
385 |
font-size: 8px;
|
386 |
padding: 3px 6px;
|
387 |
}
|
@@ -389,6 +354,9 @@ body {
|
|
389 |
max-width: 85%;
|
390 |
padding: 10px;
|
391 |
}
|
|
|
|
|
|
|
392 |
.popup-image {
|
393 |
width: 60px;
|
394 |
height: 60px;
|
@@ -410,8 +378,4 @@ body {
|
|
410 |
.manual-input {
|
411 |
width: 120px;
|
412 |
}
|
413 |
-
.suggestion-box {
|
414 |
-
max-height: 120px;
|
415 |
-
font-size: 10px;
|
416 |
-
}
|
417 |
}
|
|
|
135 |
color: #333;
|
136 |
}
|
137 |
|
138 |
+
.show-desc-button, .add-button {
|
139 |
padding: 5px 10px;
|
140 |
margin-top: 5px;
|
141 |
background-color: #4caf50;
|
|
|
147 |
width: 100%;
|
148 |
}
|
149 |
|
150 |
+
.show-desc-button:hover, .add-button:hover {
|
151 |
background-color: #45a049;
|
152 |
}
|
153 |
|
|
|
244 |
margin-left: 10px;
|
245 |
}
|
246 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
.description-popup {
|
248 |
position: fixed;
|
249 |
top: 0;
|
|
|
268 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
269 |
}
|
270 |
|
271 |
+
.popup-content ul {
|
272 |
+
text-align: left;
|
273 |
+
margin: 10px 0;
|
274 |
+
}
|
275 |
+
|
276 |
+
.popup-content ul li {
|
277 |
+
margin: 5px 0;
|
278 |
+
font-size: 12px;
|
279 |
+
}
|
280 |
+
|
281 |
.popup-image {
|
282 |
width: 80px;
|
283 |
height: 80px;
|
|
|
346 |
.ingredient-name {
|
347 |
font-size: 10px;
|
348 |
}
|
349 |
+
.show-desc-button, .add-button {
|
350 |
font-size: 8px;
|
351 |
padding: 3px 6px;
|
352 |
}
|
|
|
354 |
max-width: 85%;
|
355 |
padding: 10px;
|
356 |
}
|
357 |
+
.popup-content ul li {
|
358 |
+
font-size: 10px;
|
359 |
+
}
|
360 |
.popup-image {
|
361 |
width: 60px;
|
362 |
height: 60px;
|
|
|
378 |
.manual-input {
|
379 |
width: 120px;
|
380 |
}
|
|
|
|
|
|
|
|
|
381 |
}
|