Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +2 -7
templates/cart.html
CHANGED
@@ -46,12 +46,9 @@
|
|
46 |
border-radius: 8px; /* Optional: rounded corners */
|
47 |
transition: transform 0.3s;
|
48 |
}
|
49 |
-
/* Ensure the dropdown takes 30%
|
50 |
#couponDropdown {
|
51 |
width: 30%; /* Set the dropdown width to 30% */
|
52 |
-
position: absolute; /* Position it absolutely relative to the parent */
|
53 |
-
top: 0; /* Align it at the same height as the parent container */
|
54 |
-
right: 0; /* Align it to the right of the parent container */
|
55 |
display: none; /* Hidden by default */
|
56 |
background-color: #fff; /* White background for the dropdown */
|
57 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow to dropdown */
|
@@ -59,9 +56,8 @@
|
|
59 |
margin-top: 10px; /* Space between the link and the dropdown */
|
60 |
}
|
61 |
|
62 |
-
/*
|
63 |
.coupon-selection {
|
64 |
-
position: relative; /* Make the parent container relative to position the dropdown */
|
65 |
display: flex;
|
66 |
justify-content: space-between;
|
67 |
align-items: center;
|
@@ -87,7 +83,6 @@
|
|
87 |
}
|
88 |
|
89 |
|
90 |
-
|
91 |
.cart-item img:hover {
|
92 |
transform: scale(1.05);
|
93 |
}
|
|
|
46 |
border-radius: 8px; /* Optional: rounded corners */
|
47 |
transition: transform 0.3s;
|
48 |
}
|
49 |
+
/* Ensure the dropdown only takes 30% of the width */
|
50 |
#couponDropdown {
|
51 |
width: 30%; /* Set the dropdown width to 30% */
|
|
|
|
|
|
|
52 |
display: none; /* Hidden by default */
|
53 |
background-color: #fff; /* White background for the dropdown */
|
54 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow to dropdown */
|
|
|
56 |
margin-top: 10px; /* Space between the link and the dropdown */
|
57 |
}
|
58 |
|
59 |
+
/* Positioning the Apply Coupon link and dropdown */
|
60 |
.coupon-selection {
|
|
|
61 |
display: flex;
|
62 |
justify-content: space-between;
|
63 |
align-items: center;
|
|
|
83 |
}
|
84 |
|
85 |
|
|
|
86 |
.cart-item img:hover {
|
87 |
transform: scale(1.05);
|
88 |
}
|