Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +10 -11
templates/cart.html
CHANGED
@@ -115,34 +115,33 @@
|
|
115 |
font-size: 1rem;
|
116 |
margin: 0 5px;
|
117 |
}
|
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 |
-
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%
|
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
|
140 |
-
z-index: 10; /* Ensure it
|
|
|
|
|
|
|
|
|
141 |
}
|
142 |
|
143 |
/* Show the dropdown when it's active */
|
144 |
#couponDropdown.show {
|
145 |
-
display: block; /*
|
146 |
}
|
147 |
|
148 |
/* Ensure Apply Coupon section aligns correctly */
|
|
|
115 |
font-size: 1rem;
|
116 |
margin: 0 5px;
|
117 |
}
|
118 |
+
/* Ensure the parent container is relative for absolute positioning */
|
|
|
119 |
.cart-summary {
|
120 |
+
position: relative; /* Make sure dropdown is positioned relative to this container */
|
121 |
text-align: left;
|
122 |
margin-top: 15px;
|
123 |
padding: 20px;
|
124 |
background-color: #fff;
|
125 |
border-radius: 12px;
|
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 width to 30% */
|
|
|
|
|
|
|
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 stays above other content */
|
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; /* Show the dropdown when active */
|
145 |
}
|
146 |
|
147 |
/* Ensure Apply Coupon section aligns correctly */
|