Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +24 -24
templates/cart.html
CHANGED
|
@@ -269,37 +269,38 @@
|
|
| 269 |
|
| 270 |
.suggestion-items-container {
|
| 271 |
display: flex;
|
| 272 |
-
overflow-x: auto; /* Horizontal
|
| 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
|
| 281 |
align-items: center; /* Center content horizontally */
|
| 282 |
justify-content: center;
|
| 283 |
flex-shrink: 0;
|
| 284 |
-
width: 150px; /*
|
| 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; /*
|
| 293 |
}
|
| 294 |
|
| 295 |
.suggestion-item:hover {
|
| 296 |
-
transform: scale(1.05); /*
|
| 297 |
}
|
| 298 |
|
| 299 |
.suggestion-item img {
|
| 300 |
-
width: 100%; /*
|
| 301 |
-
height: 120px; /*
|
| 302 |
-
object-fit: cover; /* Ensure image
|
| 303 |
border-radius: 5px;
|
| 304 |
margin-bottom: 10px; /* Space below the image */
|
| 305 |
}
|
|
@@ -309,34 +310,34 @@
|
|
| 309 |
margin-bottom: 10px; /* Space below the text */
|
| 310 |
}
|
| 311 |
|
| 312 |
-
/* Styling for the
|
| 313 |
.add-icon {
|
| 314 |
position: absolute;
|
| 315 |
-
top: 10px; /* Position
|
| 316 |
-
right: 10px; /* Position
|
| 317 |
-
font-size: 1.5rem;
|
| 318 |
-
padding: 8px 12px;
|
| 319 |
-
background-color: #
|
| 320 |
-
color:
|
| 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; /*
|
| 326 |
}
|
| 327 |
|
| 328 |
.add-icon:hover {
|
| 329 |
-
background-color: #
|
| 330 |
-
color: #
|
| 331 |
}
|
| 332 |
|
| 333 |
-
/* Ensure the
|
| 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,7 +345,6 @@
|
|
| 344 |
background-color: #f1f1f1;
|
| 345 |
}
|
| 346 |
|
| 347 |
-
|
| 348 |
.remove-icon {
|
| 349 |
border: none;
|
| 350 |
background: none;
|
|
|
|
| 269 |
|
| 270 |
.suggestion-items-container {
|
| 271 |
display: flex;
|
| 272 |
+
overflow-x: auto; /* Horizontal scrolling */
|
| 273 |
gap: 15px; /* Space between items */
|
| 274 |
padding-bottom: 10px;
|
| 275 |
+
margin-left: 5px;
|
| 276 |
padding-top: 5px;
|
| 277 |
}
|
| 278 |
|
| 279 |
.suggestion-item {
|
| 280 |
display: flex;
|
| 281 |
+
flex-direction: column; /* Stack content vertically */
|
| 282 |
align-items: center; /* Center content horizontally */
|
| 283 |
justify-content: center;
|
| 284 |
flex-shrink: 0;
|
| 285 |
+
width: 150px; /* Set fixed width for each suggestion item */
|
| 286 |
padding: 10px;
|
| 287 |
border-radius: 10px;
|
| 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: 15px; /* Ensure there's space between the cards */
|
| 292 |
+
text-align: center; /* Center content */
|
| 293 |
+
position: relative; /* Make sure button is placed correctly */
|
| 294 |
}
|
| 295 |
|
| 296 |
.suggestion-item:hover {
|
| 297 |
+
transform: scale(1.05); /* Add zoom effect on hover */
|
| 298 |
}
|
| 299 |
|
| 300 |
.suggestion-item img {
|
| 301 |
+
width: 100%; /* Make the image fill the width of the card */
|
| 302 |
+
height: 120px; /* Fixed height for image */
|
| 303 |
+
object-fit: cover; /* Ensure image fits correctly without distortion */
|
| 304 |
border-radius: 5px;
|
| 305 |
margin-bottom: 10px; /* Space below the image */
|
| 306 |
}
|
|
|
|
| 310 |
margin-bottom: 10px; /* Space below the text */
|
| 311 |
}
|
| 312 |
|
| 313 |
+
/* Styling for the + symbol button (with no borders) */
|
| 314 |
.add-icon {
|
| 315 |
position: absolute;
|
| 316 |
+
top: 10px; /* Position at the top of the card */
|
| 317 |
+
right: 10px; /* Position at the top-right */
|
| 318 |
+
font-size: 1.5rem; /* Increase size of the + symbol */
|
| 319 |
+
padding: 8px 12px; /* Button padding */
|
| 320 |
+
background-color: #fff; /* White background */
|
| 321 |
+
color: #0FAA39; /* Green color for the + symbol */
|
| 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 |
.add-icon:hover {
|
| 330 |
+
background-color: #fff; /* Green background on hover */
|
| 331 |
+
color: #0FAA39; /* White color for the + symbol when hovered */
|
| 332 |
}
|
| 333 |
|
| 334 |
+
/* Ensure the scroll container works fine */
|
| 335 |
.suggestion-items-container::-webkit-scrollbar {
|
| 336 |
height: 8px; /* Height of the scrollbar */
|
| 337 |
}
|
| 338 |
|
| 339 |
.suggestion-items-container::-webkit-scrollbar-thumb {
|
| 340 |
+
background-color: #0FAA39; /* Green color for scrollbar thumb */
|
| 341 |
border-radius: 4px;
|
| 342 |
}
|
| 343 |
|
|
|
|
| 345 |
background-color: #f1f1f1;
|
| 346 |
}
|
| 347 |
|
|
|
|
| 348 |
.remove-icon {
|
| 349 |
border: none;
|
| 350 |
background: none;
|