Spaces:
Build error
Build error
Update templates/cart.html
Browse files- templates/cart.html +14 -14
templates/cart.html
CHANGED
|
@@ -48,19 +48,20 @@
|
|
| 48 |
}
|
| 49 |
/* Make the parent container position relative */
|
| 50 |
.cart-summary {
|
| 51 |
-
position: relative; /*
|
| 52 |
}
|
| 53 |
|
| 54 |
-
/*
|
| 55 |
#couponDropdown {
|
| 56 |
-
width: 30%; /*
|
| 57 |
-
position: absolute; /* Position it absolutely
|
| 58 |
-
top: 40px; /*
|
| 59 |
-
right: 0; /*
|
| 60 |
display: none; /* Hidden by default */
|
| 61 |
-
background-color: #fff; /*
|
| 62 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow
|
| 63 |
-
z-index: 10; /* Ensure it
|
|
|
|
| 64 |
}
|
| 65 |
|
| 66 |
/* Show the dropdown when it's active */
|
|
@@ -68,30 +69,29 @@
|
|
| 68 |
display: block;
|
| 69 |
}
|
| 70 |
|
| 71 |
-
/* Coupon
|
| 72 |
.coupon-selection {
|
| 73 |
display: flex;
|
| 74 |
justify-content: space-between;
|
| 75 |
align-items: center;
|
| 76 |
font-size: 1rem;
|
|
|
|
| 77 |
}
|
| 78 |
|
| 79 |
-
/* Apply Coupon label
|
| 80 |
.coupon-selection label {
|
| 81 |
font-weight: bold;
|
| 82 |
color: black;
|
| 83 |
}
|
| 84 |
|
| 85 |
-
/* Apply Coupon link style */
|
| 86 |
.coupon-selection a {
|
| 87 |
-
color: #007bff; /* Blue
|
| 88 |
font-size: 1rem;
|
| 89 |
text-decoration: none;
|
| 90 |
text-align: right;
|
| 91 |
}
|
| 92 |
|
| 93 |
|
| 94 |
-
|
| 95 |
.cart-item img:hover {
|
| 96 |
transform: scale(1.05);
|
| 97 |
}
|
|
|
|
| 48 |
}
|
| 49 |
/* Make the parent container position relative */
|
| 50 |
.cart-summary {
|
| 51 |
+
position: relative; /* Make sure dropdown is positioned relative to this container */
|
| 52 |
}
|
| 53 |
|
| 54 |
+
/* Coupon Dropdown styling */
|
| 55 |
#couponDropdown {
|
| 56 |
+
width: 30%; /* Set dropdown to 30% of the width */
|
| 57 |
+
position: absolute; /* Position it absolutely */
|
| 58 |
+
top: 40px; /* Adjust dropdown position to be a bit below the Apply Coupon link */
|
| 59 |
+
right: 0; /* Align it to the right of the container */
|
| 60 |
display: none; /* Hidden by default */
|
| 61 |
+
background-color: #fff; /* Dropdown background */
|
| 62 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow */
|
| 63 |
+
z-index: 10; /* Ensure it's above other content */
|
| 64 |
+
margin-top: 10px; /* Add space from the link */
|
| 65 |
}
|
| 66 |
|
| 67 |
/* Show the dropdown when it's active */
|
|
|
|
| 69 |
display: block;
|
| 70 |
}
|
| 71 |
|
| 72 |
+
/* Ensure Apply Coupon section aligns correctly */
|
| 73 |
.coupon-selection {
|
| 74 |
display: flex;
|
| 75 |
justify-content: space-between;
|
| 76 |
align-items: center;
|
| 77 |
font-size: 1rem;
|
| 78 |
+
margin-bottom: 20px; /* Add space below Apply Coupon section */
|
| 79 |
}
|
| 80 |
|
| 81 |
+
/* Apply Coupon link and label styles */
|
| 82 |
.coupon-selection label {
|
| 83 |
font-weight: bold;
|
| 84 |
color: black;
|
| 85 |
}
|
| 86 |
|
|
|
|
| 87 |
.coupon-selection a {
|
| 88 |
+
color: #007bff; /* Blue for the link */
|
| 89 |
font-size: 1rem;
|
| 90 |
text-decoration: none;
|
| 91 |
text-align: right;
|
| 92 |
}
|
| 93 |
|
| 94 |
|
|
|
|
| 95 |
.cart-item img:hover {
|
| 96 |
transform: scale(1.05);
|
| 97 |
}
|