Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +8 -7
templates/cart.html
CHANGED
|
@@ -115,7 +115,7 @@
|
|
| 115 |
font-size: 1rem;
|
| 116 |
margin: 0 5px;
|
| 117 |
}
|
| 118 |
-
|
| 119 |
.cart-summary {
|
| 120 |
position: relative; /* Make sure dropdown is positioned relative to this container */
|
| 121 |
text-align: left;
|
|
@@ -128,20 +128,20 @@
|
|
| 128 |
|
| 129 |
/* Coupon Dropdown styling */
|
| 130 |
#couponDropdown {
|
| 131 |
-
width: 30%; /* Set dropdown
|
|
|
|
|
|
|
|
|
|
| 132 |
display: none; /* Hidden by default */
|
| 133 |
background-color: #fff;
|
| 134 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow */
|
| 135 |
-
z-index: 10; /* Ensure it
|
| 136 |
margin-top: 10px; /* Add space from the link */
|
| 137 |
-
position: absolute; /* Position it absolutely */
|
| 138 |
-
top: 40px; /* Adjust dropdown position to be below the Apply Coupon link */
|
| 139 |
-
right: 0; /* Align it to the right of the container */
|
| 140 |
}
|
| 141 |
|
| 142 |
/* Show the dropdown when it's active */
|
| 143 |
#couponDropdown.show {
|
| 144 |
-
display: block;
|
| 145 |
}
|
| 146 |
|
| 147 |
/* Ensure Apply Coupon section aligns correctly */
|
|
@@ -216,6 +216,7 @@
|
|
| 216 |
margin-bottom: 80px; /* Create space below the content when dropdown is visible */
|
| 217 |
}
|
| 218 |
|
|
|
|
| 219 |
.checkout-button {
|
| 220 |
background-color: #0FAA39;
|
| 221 |
color: #fff;
|
|
|
|
| 115 |
font-size: 1rem;
|
| 116 |
margin: 0 5px;
|
| 117 |
}
|
| 118 |
+
/* Make the parent container position relative */
|
| 119 |
.cart-summary {
|
| 120 |
position: relative; /* Make sure dropdown is positioned relative to this container */
|
| 121 |
text-align: left;
|
|
|
|
| 128 |
|
| 129 |
/* Coupon Dropdown styling */
|
| 130 |
#couponDropdown {
|
| 131 |
+
width: 30%; /* Set dropdown to 30% of the width */
|
| 132 |
+
position: absolute; /* Position it absolutely within the parent container */
|
| 133 |
+
right: 0; /* Align it to the right side of the container */
|
| 134 |
+
top: 40px; /* Adjust dropdown position to be just below the Apply Coupon link */
|
| 135 |
display: none; /* Hidden by default */
|
| 136 |
background-color: #fff;
|
| 137 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow */
|
| 138 |
+
z-index: 10; /* Ensure it's above other content */
|
| 139 |
margin-top: 10px; /* Add space from the link */
|
|
|
|
|
|
|
|
|
|
| 140 |
}
|
| 141 |
|
| 142 |
/* Show the dropdown when it's active */
|
| 143 |
#couponDropdown.show {
|
| 144 |
+
display: block;
|
| 145 |
}
|
| 146 |
|
| 147 |
/* Ensure Apply Coupon section aligns correctly */
|
|
|
|
| 216 |
margin-bottom: 80px; /* Create space below the content when dropdown is visible */
|
| 217 |
}
|
| 218 |
|
| 219 |
+
|
| 220 |
.checkout-button {
|
| 221 |
background-color: #0FAA39;
|
| 222 |
color: #fff;
|