Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +7 -9
templates/cart.html
CHANGED
@@ -118,28 +118,31 @@
|
|
118 |
|
119 |
/* Make the parent container position relative */
|
120 |
.cart-summary {
|
121 |
-
position: relative; /*
|
122 |
text-align: left;
|
123 |
margin-top: 15px;
|
124 |
padding: 20px;
|
125 |
background-color: #fff;
|
126 |
border-radius: 12px;
|
127 |
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
|
|
|
128 |
}
|
129 |
|
130 |
/* Coupon Dropdown styling */
|
131 |
#couponDropdown {
|
132 |
width: 30%; /* Set dropdown to 30% of the width */
|
|
|
|
|
|
|
133 |
display: none; /* Hidden by default */
|
134 |
background-color: #fff;
|
135 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow */
|
136 |
z-index: 10; /* Ensure it's above other content */
|
137 |
-
margin-top: 10px; /* Add space from the link */
|
138 |
}
|
139 |
|
140 |
/* Show the dropdown when it's active */
|
141 |
#couponDropdown.show {
|
142 |
-
display: block; /*
|
143 |
}
|
144 |
|
145 |
/* Ensure Apply Coupon section aligns correctly */
|
@@ -214,11 +217,6 @@
|
|
214 |
margin-bottom: 80px; /* Create space below the content when dropdown is visible */
|
215 |
}
|
216 |
|
217 |
-
.total-bill .amount {
|
218 |
-
text-align: right;
|
219 |
-
font-size: 1.1rem;
|
220 |
-
color: #000; /* Changed from green to black */
|
221 |
-
}
|
222 |
.checkout-button {
|
223 |
background-color: #0FAA39;
|
224 |
color: #fff;
|
|
|
118 |
|
119 |
/* Make the parent container position relative */
|
120 |
.cart-summary {
|
121 |
+
position: relative; /* Ensure dropdown is positioned relative to this container */
|
122 |
text-align: left;
|
123 |
margin-top: 15px;
|
124 |
padding: 20px;
|
125 |
background-color: #fff;
|
126 |
border-radius: 12px;
|
127 |
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
|
128 |
+
transition: margin-bottom 0.3s ease-in-out; /* Smooth transition when adding space for dropdown */
|
129 |
}
|
130 |
|
131 |
/* Coupon Dropdown styling */
|
132 |
#couponDropdown {
|
133 |
width: 30%; /* Set dropdown to 30% of the width */
|
134 |
+
position: absolute; /* Position it absolutely within the parent container */
|
135 |
+
top: 50px; /* Ensure it appears just below the Apply Coupon link */
|
136 |
+
right: 0; /* Align it to the right side of the container */
|
137 |
display: none; /* Hidden by default */
|
138 |
background-color: #fff;
|
139 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for dropdown */
|
140 |
z-index: 10; /* Ensure it's above other content */
|
|
|
141 |
}
|
142 |
|
143 |
/* Show the dropdown when it's active */
|
144 |
#couponDropdown.show {
|
145 |
+
display: block; /* Make it visible */
|
146 |
}
|
147 |
|
148 |
/* Ensure Apply Coupon section aligns correctly */
|
|
|
217 |
margin-bottom: 80px; /* Create space below the content when dropdown is visible */
|
218 |
}
|
219 |
|
|
|
|
|
|
|
|
|
|
|
220 |
.checkout-button {
|
221 |
background-color: #0FAA39;
|
222 |
color: #fff;
|