Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +16 -17
templates/cart.html
CHANGED
|
@@ -271,26 +271,25 @@
|
|
| 271 |
.suggestion-items-container {
|
| 272 |
display: flex;
|
| 273 |
overflow-x: auto; /* Horizontal scrolling */
|
| 274 |
-
gap:
|
| 275 |
padding-bottom: 10px;
|
| 276 |
-
|
| 277 |
-
padding-top: 5px;
|
| 278 |
}
|
| 279 |
|
| 280 |
-
/*
|
| 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:
|
| 287 |
-
padding:
|
| 288 |
-
border-radius:
|
| 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:
|
| 293 |
-
position: relative; /*
|
| 294 |
}
|
| 295 |
|
| 296 |
.suggestion-item:hover {
|
|
@@ -298,26 +297,26 @@
|
|
| 298 |
}
|
| 299 |
|
| 300 |
.suggestion-item img {
|
| 301 |
-
width:
|
| 302 |
-
height:
|
| 303 |
object-fit: cover; /* Ensure image fits correctly without distortion */
|
| 304 |
border-radius: 5px;
|
| 305 |
-
margin-left:
|
| 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:
|
| 318 |
-
right:
|
| 319 |
-
font-size: 1.
|
| 320 |
-
padding:
|
| 321 |
background-color: #fff; /* White background */
|
| 322 |
color: #0FAA39; /* Green color for the + symbol */
|
| 323 |
border: none; /* No border */
|
|
|
|
| 271 |
.suggestion-items-container {
|
| 272 |
display: flex;
|
| 273 |
overflow-x: auto; /* Horizontal scrolling */
|
| 274 |
+
gap: 10px; /* Reduce space between items */
|
| 275 |
padding-bottom: 10px;
|
| 276 |
+
padding-top: 10px;
|
|
|
|
| 277 |
}
|
| 278 |
|
| 279 |
+
/* Smaller and more compact card styling */
|
| 280 |
.suggestion-item {
|
| 281 |
display: flex; /* Use flexbox for horizontal layout */
|
| 282 |
align-items: center; /* Center content vertically */
|
| 283 |
justify-content: space-between; /* Space out content */
|
| 284 |
flex-shrink: 0;
|
| 285 |
+
width: 140px; /* Reduced width for smaller cards */
|
| 286 |
+
padding: 8px; /* Reduced padding */
|
| 287 |
+
border-radius: 8px; /* Slightly smaller border radius */
|
| 288 |
background-color: #fff;
|
| 289 |
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
| 290 |
transition: transform 0.3s ease;
|
| 291 |
+
margin-right: 10px; /* Ensure there's space between the cards */
|
| 292 |
+
position: relative; /* For positioning the + icon */
|
| 293 |
}
|
| 294 |
|
| 295 |
.suggestion-item:hover {
|
|
|
|
| 297 |
}
|
| 298 |
|
| 299 |
.suggestion-item img {
|
| 300 |
+
width: 50px; /* Smaller image */
|
| 301 |
+
height: 50px; /* Smaller image */
|
| 302 |
object-fit: cover; /* Ensure image fits correctly without distortion */
|
| 303 |
border-radius: 5px;
|
| 304 |
+
margin-left: 8px; /* Space between the image and text */
|
| 305 |
}
|
| 306 |
|
| 307 |
.suggestion-item div {
|
| 308 |
flex-grow: 1;
|
|
|
|
| 309 |
text-align: left; /* Align text to the left */
|
| 310 |
+
margin-right: 8px; /* Space between text and image */
|
| 311 |
}
|
| 312 |
|
| 313 |
/* Styling for the + symbol button (with no borders) */
|
| 314 |
.add-icon {
|
| 315 |
position: absolute;
|
| 316 |
+
top: 5px; /* Position at the top */
|
| 317 |
+
right: 5px; /* Position at the top-right */
|
| 318 |
+
font-size: 1.2rem; /* Adjust size of the + symbol */
|
| 319 |
+
padding: 6px 10px; /* Button padding */
|
| 320 |
background-color: #fff; /* White background */
|
| 321 |
color: #0FAA39; /* Green color for the + symbol */
|
| 322 |
border: none; /* No border */
|