Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +15 -3
templates/cart.html
CHANGED
@@ -47,12 +47,24 @@
|
|
47 |
transition: transform 0.3s;
|
48 |
}
|
49 |
/* Ensure the dropdown expands to the full width of the container */
|
|
|
50 |
#couponDropdown {
|
51 |
-
width:
|
52 |
-
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
54 |
}
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
/* Make the Apply Coupon link and label aligned properly */
|
57 |
.coupon-selection {
|
58 |
display: flex;
|
|
|
47 |
transition: transform 0.3s;
|
48 |
}
|
49 |
/* Ensure the dropdown expands to the full width of the container */
|
50 |
+
/* Ensure the dropdown expands to 30% width of the parent container */
|
51 |
#couponDropdown {
|
52 |
+
width: 30%; /* Set the dropdown width to 30% */
|
53 |
+
position: absolute; /* Position it absolutely */
|
54 |
+
top: 0; /* Align it to the top of the parent container */
|
55 |
+
right: 0; /* Align it to the right of the parent container */
|
56 |
+
display: none; /* Hidden by default */
|
57 |
+
background-color: #fff; /* Ensure the background is white */
|
58 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for dropdown */
|
59 |
+
z-index: 10; /* Ensure it stays above other content */
|
60 |
}
|
61 |
|
62 |
+
/* Ensure when it's visible, it aligns correctly */
|
63 |
+
#couponDropdown.show {
|
64 |
+
display: block; /* Show the dropdown when active */
|
65 |
+
}
|
66 |
+
|
67 |
+
|
68 |
/* Make the Apply Coupon link and label aligned properly */
|
69 |
.coupon-selection {
|
70 |
display: flex;
|