Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +19 -16
templates/cart.html
CHANGED
|
@@ -271,10 +271,9 @@
|
|
| 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 |
/* Styling for the suggestion item card */
|
|
@@ -283,13 +282,14 @@
|
|
| 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; /*
|
| 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:
|
|
|
|
| 293 |
text-align: left; /* Align text to the left */
|
| 294 |
}
|
| 295 |
|
|
@@ -300,7 +300,7 @@
|
|
| 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 |
}
|
|
@@ -309,26 +309,29 @@
|
|
| 309 |
flex-grow: 1; /* Allow the text section to expand and fill available space */
|
| 310 |
}
|
| 311 |
|
| 312 |
-
/*
|
| 313 |
.add-back-button {
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
|
|
|
| 318 |
background-color: #fff; /* White background */
|
| 319 |
-
color: #
|
|
|
|
|
|
|
| 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: #
|
| 327 |
-
color: #
|
| 328 |
border-color: #0FAA39; /* Green border on hover */
|
| 329 |
}
|
| 330 |
|
| 331 |
-
/*
|
| 332 |
.suggestion-items-container::-webkit-scrollbar {
|
| 333 |
height: 8px; /* Height of the scrollbar */
|
| 334 |
}
|
|
|
|
| 271 |
.suggestion-items-container {
|
| 272 |
display: flex;
|
| 273 |
overflow-x: auto; /* Horizontal scrolling */
|
| 274 |
+
gap: 10px; /* Space between items */
|
| 275 |
padding-bottom: 10px;
|
| 276 |
+
padding-top: 10px;
|
|
|
|
| 277 |
}
|
| 278 |
|
| 279 |
/* Styling for the suggestion item card */
|
|
|
|
| 282 |
align-items: center; /* Center image and text vertically */
|
| 283 |
justify-content: flex-start; /* Align items to the start (left side) */
|
| 284 |
flex-shrink: 0;
|
| 285 |
+
width: 160px; /* Set fixed width for each suggestion item */
|
| 286 |
padding: 10px;
|
| 287 |
border-radius: 8px; /* Rounded corners */
|
| 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 |
text-align: left; /* Align text to the left */
|
| 294 |
}
|
| 295 |
|
|
|
|
| 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 correctly without distortion */
|
| 304 |
border-radius: 5px; /* Rounded corners for the image */
|
| 305 |
margin-right: 12px; /* Space between the image and text */
|
| 306 |
}
|
|
|
|
| 309 |
flex-grow: 1; /* Allow the text section to expand and fill available space */
|
| 310 |
}
|
| 311 |
|
| 312 |
+
/* Styling for the + symbol button (with green border, white background, and black text) */
|
| 313 |
.add-back-button {
|
| 314 |
+
position: absolute;
|
| 315 |
+
top: 5px; /* Position at the top */
|
| 316 |
+
right: 5px; /* Position at the top-right */
|
| 317 |
+
font-size: 1.3rem; /* Increase size of the + symbol */
|
| 318 |
+
padding: 6px 10px; /* Button padding */
|
| 319 |
background-color: #fff; /* White background */
|
| 320 |
+
color: #000; /* Black color for the + symbol */
|
| 321 |
+
border: 2px solid #0FAA39; /* Green border */
|
| 322 |
+
border-radius: 50%; /* Circular button */
|
| 323 |
cursor: pointer;
|
| 324 |
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
|
| 325 |
+
z-index: 1; /* Ensure the button is above content */
|
| 326 |
}
|
| 327 |
|
|
|
|
| 328 |
.add-back-button:hover {
|
| 329 |
+
background-color: #0FAA39; /* Green background on hover */
|
| 330 |
+
color: #fff; /* White color for the + symbol when hovered */
|
| 331 |
border-color: #0FAA39; /* Green border on hover */
|
| 332 |
}
|
| 333 |
|
| 334 |
+
/* Ensure the scroll container works fine */
|
| 335 |
.suggestion-items-container::-webkit-scrollbar {
|
| 336 |
height: 8px; /* Height of the scrollbar */
|
| 337 |
}
|