Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +11 -12
templates/cart.html
CHANGED
|
@@ -279,20 +279,18 @@
|
|
| 279 |
|
| 280 |
/* Card styling */
|
| 281 |
.suggestion-item {
|
| 282 |
-
display: flex;
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
justify-content: center;
|
| 286 |
flex-shrink: 0;
|
| 287 |
-
width:
|
| 288 |
padding: 10px;
|
| 289 |
border-radius: 10px;
|
| 290 |
background-color: #fff;
|
| 291 |
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
| 292 |
transition: transform 0.3s ease;
|
| 293 |
margin-right: 15px; /* Ensure there's space between the cards */
|
| 294 |
-
|
| 295 |
-
position: relative; /* Position relative for positioning the + icon */
|
| 296 |
}
|
| 297 |
|
| 298 |
.suggestion-item:hover {
|
|
@@ -300,19 +298,20 @@
|
|
| 300 |
}
|
| 301 |
|
| 302 |
.suggestion-item img {
|
| 303 |
-
width:
|
| 304 |
-
height:
|
| 305 |
object-fit: cover; /* Ensure image fits correctly without distortion */
|
| 306 |
border-radius: 5px;
|
| 307 |
-
margin-
|
| 308 |
}
|
| 309 |
|
| 310 |
.suggestion-item div {
|
| 311 |
flex-grow: 1;
|
| 312 |
-
margin-
|
|
|
|
| 313 |
}
|
| 314 |
|
| 315 |
-
/*
|
| 316 |
.add-icon {
|
| 317 |
position: absolute;
|
| 318 |
top: 10px; /* Position at the top */
|
|
|
|
| 279 |
|
| 280 |
/* Card styling */
|
| 281 |
.suggestion-item {
|
| 282 |
+
display: flex; /* Use flexbox for horizontal layout */
|
| 283 |
+
align-items: center; /* Center content vertically */
|
| 284 |
+
justify-content: space-between; /* Space out content */
|
|
|
|
| 285 |
flex-shrink: 0;
|
| 286 |
+
width: 250px; /* Set fixed width for each suggestion item */
|
| 287 |
padding: 10px;
|
| 288 |
border-radius: 10px;
|
| 289 |
background-color: #fff;
|
| 290 |
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
| 291 |
transition: transform 0.3s ease;
|
| 292 |
margin-right: 15px; /* Ensure there's space between the cards */
|
| 293 |
+
position: relative; /* Make sure button is placed correctly */
|
|
|
|
| 294 |
}
|
| 295 |
|
| 296 |
.suggestion-item:hover {
|
|
|
|
| 298 |
}
|
| 299 |
|
| 300 |
.suggestion-item img {
|
| 301 |
+
width: 80px; /* Adjust image size */
|
| 302 |
+
height: 80px;
|
| 303 |
object-fit: cover; /* Ensure image fits correctly without distortion */
|
| 304 |
border-radius: 5px;
|
| 305 |
+
margin-left: 10px; /* Add space between the image and text */
|
| 306 |
}
|
| 307 |
|
| 308 |
.suggestion-item div {
|
| 309 |
flex-grow: 1;
|
| 310 |
+
margin-right: 10px; /* Space between the image and text */
|
| 311 |
+
text-align: left; /* Align text to the left */
|
| 312 |
}
|
| 313 |
|
| 314 |
+
/* Styling for the + symbol button (with no borders) */
|
| 315 |
.add-icon {
|
| 316 |
position: absolute;
|
| 317 |
top: 10px; /* Position at the top */
|