Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +26 -3
templates/cart.html
CHANGED
@@ -126,17 +126,39 @@
|
|
126 |
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
|
127 |
}
|
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 */
|
@@ -144,6 +166,7 @@
|
|
144 |
display: block;
|
145 |
}
|
146 |
|
|
|
147 |
/* Ensure Apply Coupon section aligns correctly */
|
148 |
.coupon-selection {
|
149 |
display: flex;
|
|
|
126 |
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
|
127 |
}
|
128 |
|
129 |
+
/* Coupon Section styling */
|
130 |
+
.coupon-selection {
|
131 |
+
display: flex; /* Use flexbox to align items */
|
132 |
+
justify-content: space-between; /* Space between the label and the link */
|
133 |
+
align-items: center;
|
134 |
+
font-size: 1rem;
|
135 |
+
margin-bottom: 20px; /* Add space below Apply Coupon section */
|
136 |
+
position: relative; /* Ensure dropdown is within this container */
|
137 |
+
}
|
138 |
+
|
139 |
+
/* Ensure the Apply Coupon label and link are aligned correctly */
|
140 |
+
.coupon-selection label {
|
141 |
+
font-weight: bold;
|
142 |
+
color: black;
|
143 |
+
}
|
144 |
+
|
145 |
+
.coupon-selection a {
|
146 |
+
color: #007bff; /* Blue for the link */
|
147 |
+
font-size: 1rem;
|
148 |
+
text-decoration: none;
|
149 |
+
text-align: right;
|
150 |
+
}
|
151 |
+
|
152 |
/* Coupon Dropdown styling */
|
153 |
#couponDropdown {
|
154 |
width: 30%; /* Set dropdown to 30% of the width */
|
|
|
|
|
|
|
155 |
display: none; /* Hidden by default */
|
156 |
background-color: #fff;
|
157 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow */
|
158 |
z-index: 10; /* Ensure it's above other content */
|
159 |
margin-top: 10px; /* Add space from the link */
|
160 |
+
margin-left: auto; /* Push it to the right side */
|
161 |
+
margin-right: 0; /* Ensure it doesn't overflow outside */
|
162 |
}
|
163 |
|
164 |
/* Show the dropdown when it's active */
|
|
|
166 |
display: block;
|
167 |
}
|
168 |
|
169 |
+
|
170 |
/* Ensure Apply Coupon section aligns correctly */
|
171 |
.coupon-selection {
|
172 |
display: flex;
|