Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +14 -2
templates/cart.html
CHANGED
|
@@ -56,7 +56,19 @@
|
|
| 56 |
margin-top: 10px; /* Space between the link and the dropdown */
|
| 57 |
}
|
| 58 |
|
| 59 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
.coupon-selection {
|
| 61 |
display: flex;
|
| 62 |
justify-content: space-between;
|
|
@@ -79,7 +91,7 @@
|
|
| 79 |
|
| 80 |
/* Show the dropdown when active */
|
| 81 |
#couponDropdown.show {
|
| 82 |
-
display: block;
|
| 83 |
}
|
| 84 |
|
| 85 |
|
|
|
|
| 56 |
margin-top: 10px; /* Space between the link and the dropdown */
|
| 57 |
}
|
| 58 |
|
| 59 |
+
/* Ensure the dropdown takes up 30% of the page width */
|
| 60 |
+
#couponDropdown {
|
| 61 |
+
width: 30%; /* Set the dropdown width to 30% */
|
| 62 |
+
position: absolute; /* Position it absolutely */
|
| 63 |
+
right: 0; /* Align it to the right of the page */
|
| 64 |
+
top: 50px; /* Position it below the Apply Coupon link */
|
| 65 |
+
display: none; /* Hidden by default */
|
| 66 |
+
background-color: #fff; /* White background for the dropdown */
|
| 67 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for dropdown */
|
| 68 |
+
z-index: 10; /* Ensure it stays above other content */
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
/* Coupon section styles for Apply Coupon and dropdown link */
|
| 72 |
.coupon-selection {
|
| 73 |
display: flex;
|
| 74 |
justify-content: space-between;
|
|
|
|
| 91 |
|
| 92 |
/* Show the dropdown when active */
|
| 93 |
#couponDropdown.show {
|
| 94 |
+
display: block; /* Show the dropdown when active */
|
| 95 |
}
|
| 96 |
|
| 97 |
|