Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +46 -40
templates/cart.html
CHANGED
@@ -260,78 +260,83 @@
|
|
260 |
align-items: center;
|
261 |
text-align: center;
|
262 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
263 |
.suggestion-item {
|
264 |
display: flex;
|
265 |
-
|
|
|
266 |
justify-content: center;
|
267 |
flex-shrink: 0;
|
268 |
-
width: 150px; /*
|
269 |
padding: 10px;
|
270 |
border-radius: 10px;
|
271 |
background-color: #fff;
|
272 |
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
273 |
transition: transform 0.3s ease;
|
274 |
-
margin-right: 15px;
|
|
|
|
|
275 |
}
|
276 |
|
277 |
.suggestion-item:hover {
|
278 |
-
transform: scale(1.05); /*
|
279 |
}
|
280 |
|
281 |
.suggestion-item img {
|
282 |
-
width:
|
283 |
-
height:
|
284 |
-
object-fit: cover;
|
285 |
border-radius: 5px;
|
286 |
-
margin-
|
287 |
}
|
288 |
|
289 |
.suggestion-item div {
|
290 |
flex-grow: 1;
|
291 |
-
margin-
|
292 |
}
|
293 |
|
294 |
-
/*
|
295 |
-
.add-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
color: #0FAA39; /* Green
|
|
|
|
|
|
|
302 |
cursor: pointer;
|
303 |
-
transition: background-color 0.3s, color 0.3s
|
304 |
-
|
305 |
-
|
306 |
-
/* Change background to white and keep the text green on hover */
|
307 |
-
.add-back-button:hover {
|
308 |
-
background-color: #fff;
|
309 |
-
color: #0FAA39; /* Green color stays on hover */
|
310 |
-
border-color: #0FAA39; /* Green border on hover */
|
311 |
-
}
|
312 |
-
|
313 |
-
/* The "+" symbol should be green */
|
314 |
-
.add-back-button i {
|
315 |
-
color: #0FAA39; /* Green color for the icon */
|
316 |
}
|
317 |
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
overflow-x: auto;
|
322 |
-
gap: 15px;
|
323 |
-
padding-bottom: 10px;
|
324 |
-
margin-left: 5px; /* Prevent item cards from touching the left edge */
|
325 |
-
padding-top: 5px; /* Add some space at the top of the scrollable container */
|
326 |
}
|
327 |
|
328 |
-
/*
|
329 |
.suggestion-items-container::-webkit-scrollbar {
|
330 |
height: 8px; /* Height of the scrollbar */
|
331 |
}
|
332 |
|
333 |
.suggestion-items-container::-webkit-scrollbar-thumb {
|
334 |
-
background-color: #0FAA39; /* Green
|
335 |
border-radius: 4px;
|
336 |
}
|
337 |
|
@@ -339,6 +344,7 @@
|
|
339 |
background-color: #f1f1f1;
|
340 |
}
|
341 |
|
|
|
342 |
.remove-icon {
|
343 |
border: none;
|
344 |
background: none;
|
|
|
260 |
align-items: center;
|
261 |
text-align: center;
|
262 |
}
|
263 |
+
.suggestion-section {
|
264 |
+
margin-top: 20px;
|
265 |
+
padding: 15px;
|
266 |
+
background-color: #f8f9fa;
|
267 |
+
border-radius: 10px;
|
268 |
+
}
|
269 |
+
|
270 |
+
.suggestion-items-container {
|
271 |
+
display: flex;
|
272 |
+
overflow-x: auto; /* Horizontal scroll for items */
|
273 |
+
gap: 15px; /* Space between items */
|
274 |
+
padding-bottom: 10px;
|
275 |
+
padding-top: 5px;
|
276 |
+
}
|
277 |
+
|
278 |
.suggestion-item {
|
279 |
display: flex;
|
280 |
+
flex-direction: column; /* Stack the contents vertically */
|
281 |
+
align-items: center; /* Center content horizontally */
|
282 |
justify-content: center;
|
283 |
flex-shrink: 0;
|
284 |
+
width: 150px; /* Fixed width for each suggestion item */
|
285 |
padding: 10px;
|
286 |
border-radius: 10px;
|
287 |
background-color: #fff;
|
288 |
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
289 |
transition: transform 0.3s ease;
|
290 |
+
margin-right: 15px;
|
291 |
+
text-align: center;
|
292 |
+
position: relative; /* Position relative for positioning the + icon */
|
293 |
}
|
294 |
|
295 |
.suggestion-item:hover {
|
296 |
+
transform: scale(1.05); /* Zoom effect on hover */
|
297 |
}
|
298 |
|
299 |
.suggestion-item img {
|
300 |
+
width: 100%; /* Ensure the image takes up the full width of the card */
|
301 |
+
height: 120px; /* Set fixed height for the image */
|
302 |
+
object-fit: cover; /* Ensure image fills without distortion */
|
303 |
border-radius: 5px;
|
304 |
+
margin-bottom: 10px; /* Space below the image */
|
305 |
}
|
306 |
|
307 |
.suggestion-item div {
|
308 |
flex-grow: 1;
|
309 |
+
margin-bottom: 10px; /* Space below the text */
|
310 |
}
|
311 |
|
312 |
+
/* Styling for the add icon button at the top of the card */
|
313 |
+
.add-icon {
|
314 |
+
position: absolute;
|
315 |
+
top: 10px; /* Position it at the top */
|
316 |
+
right: 10px; /* Position it to the right */
|
317 |
+
font-size: 1.5rem;
|
318 |
+
padding: 8px 12px;
|
319 |
+
background-color: #0FAA39; /* Green background */
|
320 |
+
color: white; /* White color for the + symbol */
|
321 |
+
border: none;
|
322 |
+
border-radius: 50%; /* Circular button */
|
323 |
cursor: pointer;
|
324 |
+
transition: background-color 0.3s, color 0.3s;
|
325 |
+
z-index: 1; /* Make sure the button is above the content */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
326 |
}
|
327 |
|
328 |
+
.add-icon:hover {
|
329 |
+
background-color: #0FAA39;
|
330 |
+
color: #fff;
|
|
|
|
|
|
|
|
|
|
|
331 |
}
|
332 |
|
333 |
+
/* Ensure the horizontal scroll container works correctly */
|
334 |
.suggestion-items-container::-webkit-scrollbar {
|
335 |
height: 8px; /* Height of the scrollbar */
|
336 |
}
|
337 |
|
338 |
.suggestion-items-container::-webkit-scrollbar-thumb {
|
339 |
+
background-color: #0FAA39; /* Green scrollbar thumb */
|
340 |
border-radius: 4px;
|
341 |
}
|
342 |
|
|
|
344 |
background-color: #f1f1f1;
|
345 |
}
|
346 |
|
347 |
+
|
348 |
.remove-icon {
|
349 |
border: none;
|
350 |
background: none;
|