Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +99 -82
templates/cart.html
CHANGED
@@ -46,51 +46,6 @@
|
|
46 |
border-radius: 8px; /* Optional: rounded corners */
|
47 |
transition: transform 0.3s;
|
48 |
}
|
49 |
-
/* Make the parent container position relative */
|
50 |
-
.cart-summary {
|
51 |
-
position: relative; /* Make sure dropdown is positioned relative to this container */
|
52 |
-
}
|
53 |
-
|
54 |
-
/* Coupon Dropdown styling */
|
55 |
-
#couponDropdown {
|
56 |
-
width: 30%; /* Set dropdown to 30% of the width */
|
57 |
-
position: absolute; /* Position it absolutely */
|
58 |
-
top: 40px; /* Adjust dropdown position to be a bit below the Apply Coupon link */
|
59 |
-
right: 0; /* Align it to the right of the container */
|
60 |
-
display: none; /* Hidden by default */
|
61 |
-
background-color: #fff; /* Dropdown background */
|
62 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow */
|
63 |
-
z-index: 10; /* Ensure it's above other content */
|
64 |
-
margin-top: 10px; /* Add space from the link */
|
65 |
-
}
|
66 |
-
|
67 |
-
/* Show the dropdown when it's active */
|
68 |
-
#couponDropdown.show {
|
69 |
-
display: block;
|
70 |
-
}
|
71 |
-
|
72 |
-
/* Ensure Apply Coupon section aligns correctly */
|
73 |
-
.coupon-selection {
|
74 |
-
display: flex;
|
75 |
-
justify-content: space-between;
|
76 |
-
align-items: center;
|
77 |
-
font-size: 1rem;
|
78 |
-
margin-bottom: 20px; /* Add space below Apply Coupon section */
|
79 |
-
}
|
80 |
-
|
81 |
-
/* Apply Coupon link and label styles */
|
82 |
-
.coupon-selection label {
|
83 |
-
font-weight: bold;
|
84 |
-
color: black;
|
85 |
-
}
|
86 |
-
|
87 |
-
.coupon-selection a {
|
88 |
-
color: #007bff; /* Blue for the link */
|
89 |
-
font-size: 1rem;
|
90 |
-
text-decoration: none;
|
91 |
-
text-align: right;
|
92 |
-
}
|
93 |
-
|
94 |
|
95 |
.cart-item img:hover {
|
96 |
transform: scale(1.05);
|
@@ -160,43 +115,105 @@
|
|
160 |
font-size: 1rem;
|
161 |
margin: 0 5px;
|
162 |
}
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
.total-bill .amount {
|
201 |
text-align: right;
|
202 |
font-size: 1.1rem;
|
|
|
46 |
border-radius: 8px; /* Optional: rounded corners */
|
47 |
transition: transform 0.3s;
|
48 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
.cart-item img:hover {
|
51 |
transform: scale(1.05);
|
|
|
115 |
font-size: 1rem;
|
116 |
margin: 0 5px;
|
117 |
}
|
118 |
+
|
119 |
+
/* Make the parent container position relative */
|
120 |
+
.cart-summary {
|
121 |
+
position: relative; /* Make sure 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 |
+
}
|
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; /* Show the dropdown when active */
|
143 |
+
}
|
144 |
+
|
145 |
+
/* Ensure Apply Coupon section aligns correctly */
|
146 |
+
.coupon-selection {
|
147 |
+
display: flex;
|
148 |
+
justify-content: space-between;
|
149 |
+
align-items: center;
|
150 |
+
font-size: 1rem;
|
151 |
+
margin-bottom: 20px; /* Add space below Apply Coupon section */
|
152 |
+
}
|
153 |
+
|
154 |
+
/* Apply Coupon link and label styles */
|
155 |
+
.coupon-selection label {
|
156 |
+
font-weight: bold;
|
157 |
+
color: black;
|
158 |
+
}
|
159 |
+
|
160 |
+
.coupon-selection a {
|
161 |
+
color: #007bff; /* Blue for the link */
|
162 |
+
font-size: 1rem;
|
163 |
+
text-decoration: none;
|
164 |
+
text-align: right;
|
165 |
+
}
|
166 |
+
|
167 |
+
/* Bill details grid structure */
|
168 |
+
.bill-details {
|
169 |
+
display: grid;
|
170 |
+
grid-template-columns: 1fr 1fr; /* Two-column layout */
|
171 |
+
grid-gap: 10px;
|
172 |
+
margin-bottom: 10px;
|
173 |
+
}
|
174 |
+
|
175 |
+
/* Adjust label and amount for bill details */
|
176 |
+
.bill-details .label {
|
177 |
+
font-weight: 600;
|
178 |
+
font-size: 1rem;
|
179 |
+
}
|
180 |
+
|
181 |
+
.bill-details .amount {
|
182 |
+
text-align: right;
|
183 |
+
font-weight: 600;
|
184 |
+
font-size: 1rem;
|
185 |
+
}
|
186 |
+
|
187 |
+
/* Divider line between bill sections */
|
188 |
+
.dotted-line {
|
189 |
+
border-bottom: 2px dotted #ccc;
|
190 |
+
margin: 15px 0;
|
191 |
+
}
|
192 |
+
|
193 |
+
/* Total bill grid layout */
|
194 |
+
.total-bill {
|
195 |
+
display: grid;
|
196 |
+
grid-template-columns: 1fr 1fr;
|
197 |
+
font-weight: 600;
|
198 |
+
font-size: 1.2rem;
|
199 |
+
margin-top: 10px;
|
200 |
+
}
|
201 |
+
|
202 |
+
.total-bill .label {
|
203 |
+
font-size: 1.1rem;
|
204 |
+
}
|
205 |
+
|
206 |
+
.total-bill .amount {
|
207 |
+
text-align: right;
|
208 |
+
font-size: 1.1rem;
|
209 |
+
color: #000; /* Changed from green to black */
|
210 |
+
}
|
211 |
+
|
212 |
+
/* Margin to add space for dropdown when visible */
|
213 |
+
.cart-summary.has-dropdown {
|
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;
|