Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +33 -36
templates/cart.html
CHANGED
|
@@ -271,67 +271,64 @@
|
|
| 271 |
.suggestion-items-container {
|
| 272 |
display: flex;
|
| 273 |
overflow-x: auto; /* Horizontal scrolling */
|
| 274 |
-
gap:
|
| 275 |
padding-bottom: 10px;
|
| 276 |
-
|
|
|
|
| 277 |
}
|
| 278 |
|
| 279 |
-
/*
|
| 280 |
.suggestion-item {
|
| 281 |
-
display: flex; /*
|
| 282 |
-
align-items: center; /* Center
|
| 283 |
-
justify-content:
|
| 284 |
flex-shrink: 0;
|
| 285 |
-
width:
|
| 286 |
-
padding:
|
| 287 |
-
border-radius: 8px; /*
|
| 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:
|
| 292 |
-
|
| 293 |
}
|
| 294 |
|
| 295 |
.suggestion-item:hover {
|
| 296 |
-
transform: scale(1.05); /*
|
| 297 |
}
|
| 298 |
|
| 299 |
.suggestion-item img {
|
| 300 |
-
width: 50px; /*
|
| 301 |
-
height: 50px; /*
|
| 302 |
-
object-fit: cover; /* Ensure image fits
|
| 303 |
-
border-radius: 5px;
|
| 304 |
-
margin-
|
| 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 |
-
/*
|
| 314 |
-
.add-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
padding: 6px 10px; /* Button padding */
|
| 320 |
background-color: #fff; /* White background */
|
| 321 |
-
color: #0FAA39; /* Green
|
| 322 |
-
border: none; /* No border */
|
| 323 |
-
border-radius: 50%; /* Circular button */
|
| 324 |
cursor: pointer;
|
| 325 |
-
transition: background-color 0.3s, color 0.3s;
|
| 326 |
-
z-index: 1; /* Ensure the button is above content */
|
| 327 |
}
|
| 328 |
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
color: #fff;
|
|
|
|
|
|
|
| 332 |
}
|
| 333 |
|
| 334 |
-
/*
|
| 335 |
.suggestion-items-container::-webkit-scrollbar {
|
| 336 |
height: 8px; /* Height of the scrollbar */
|
| 337 |
}
|
|
|
|
| 271 |
.suggestion-items-container {
|
| 272 |
display: flex;
|
| 273 |
overflow-x: auto; /* Horizontal scrolling */
|
| 274 |
+
gap: 15px; /* Space between items */
|
| 275 |
padding-bottom: 10px;
|
| 276 |
+
margin-left: 5px;
|
| 277 |
+
padding-top: 5px;
|
| 278 |
}
|
| 279 |
|
| 280 |
+
/* Styling for the suggestion item card */
|
| 281 |
.suggestion-item {
|
| 282 |
+
display: flex; /* Align items horizontally */
|
| 283 |
+
align-items: center; /* Center image and text vertically */
|
| 284 |
+
justify-content: flex-start; /* Align items to the start (left side) */
|
| 285 |
flex-shrink: 0;
|
| 286 |
+
width: 160px; /* Adjust width for compactness */
|
| 287 |
+
padding: 10px;
|
| 288 |
+
border-radius: 8px; /* Rounded corners */
|
| 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; /* Space between the cards */
|
| 293 |
+
text-align: left; /* Align text to the left */
|
| 294 |
}
|
| 295 |
|
| 296 |
.suggestion-item:hover {
|
| 297 |
+
transform: scale(1.05); /* Slight zoom effect on hover */
|
| 298 |
}
|
| 299 |
|
| 300 |
.suggestion-item img {
|
| 301 |
+
width: 50px; /* Set a fixed width for the image */
|
| 302 |
+
height: 50px; /* Set a fixed height for the image */
|
| 303 |
+
object-fit: cover; /* Ensure image fits without distortion */
|
| 304 |
+
border-radius: 5px; /* Rounded corners for the image */
|
| 305 |
+
margin-right: 12px; /* Space between the image and text */
|
| 306 |
}
|
| 307 |
|
| 308 |
.suggestion-item div {
|
| 309 |
+
flex-grow: 1; /* Allow the text section to expand and fill available space */
|
|
|
|
|
|
|
| 310 |
}
|
| 311 |
|
| 312 |
+
/* Adjust the + button styles */
|
| 313 |
+
.add-back-button {
|
| 314 |
+
padding: 6px 20px;
|
| 315 |
+
font-size: 0.9rem;
|
| 316 |
+
border-radius: 20px;
|
| 317 |
+
border: 1px solid #0FAA39; /* Green border */
|
|
|
|
| 318 |
background-color: #fff; /* White background */
|
| 319 |
+
color: #0FAA39; /* Green text */
|
|
|
|
|
|
|
| 320 |
cursor: pointer;
|
| 321 |
+
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
|
|
|
|
| 322 |
}
|
| 323 |
|
| 324 |
+
/* On hover, keep text green and border green */
|
| 325 |
+
.add-back-button:hover {
|
| 326 |
+
background-color: #fff;
|
| 327 |
+
color: #0FAA39; /* Green color stays on hover */
|
| 328 |
+
border-color: #0FAA39; /* Green border on hover */
|
| 329 |
}
|
| 330 |
|
| 331 |
+
/* Styling for the scrolling section */
|
| 332 |
.suggestion-items-container::-webkit-scrollbar {
|
| 333 |
height: 8px; /* Height of the scrollbar */
|
| 334 |
}
|