nagasurendra commited on
Commit
091d3e9
·
verified ·
1 Parent(s): fd60b3d

Update templates/cart.html

Browse files
Files changed (1) hide show
  1. templates/cart.html +25 -78
templates/cart.html CHANGED
@@ -25,22 +25,27 @@
25
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
26
  }
27
 
28
-
29
- .remove-icon {
 
 
 
 
 
 
 
 
 
 
30
  border: none;
31
  background: none;
32
  color: red;
33
  font-size: 1.2rem;
34
  cursor: pointer;
35
  position: relative;
36
- top: -25px !important; /* Moves the icon 5px above its current position */
37
  }
38
 
39
-
40
-
41
-
42
-
43
-
44
  .image-wrapper {
45
  width: 80px; /* Width of the image container */
46
  height: 140px !important; /* Height of the image container */
@@ -55,49 +60,16 @@
55
  border-radius: 8px; /* Optional: rounded corners */
56
  transition: transform 0.3s;
57
  }
58
-
59
  .cart-item img:hover {
60
  transform: scale(1.05);
61
  }
62
-
63
- .cart-item {
64
- display: flex;
65
- align-items: center;
66
- justify-content: space-between;
67
- padding: 15px;
68
- box-sizing: border-box;
69
- min-height: 100px;
70
- position: relative;
71
- border: 1px solid transparent !important; /* Makes the border invisible */
72
- background-color: white; /* Keeps a clean structure */
73
- }
74
- .cart-item-details {
75
- display: flex;
76
- align-items: center;
77
- justify-content: space-between; /* Keep details well aligned */
78
- width: 100%;
79
- }
80
-
81
- .cart-item-title {
82
- font-size: 1.1rem;
83
- font-weight: 600;
84
- flex-grow: 1; /* Allows the name to take available space */
85
- }
86
-
87
- .cart-item-actions {
88
- display: flex;
89
- align-items: center; /* Align price with the name */
90
- justify-content: flex-end;
91
- min-width: 100px; /* Ensures proper alignment */
92
- }
93
-
94
- .cart-item-actions .text-primary {
95
- color: black !important; /* Ensure price is black */
96
- font-weight: bold;
97
- }
98
-
99
-
100
-
101
  .checkout-button {
102
  background-color: #0FAA39; /* Green background */
103
  color: #fff; /* White text */
@@ -127,7 +99,11 @@
127
  background-color: #fff;
128
  color: #0FAA39;
129
  }
130
-
 
 
 
 
131
 
132
  .cart-item-quantity {
133
  display: flex;
@@ -161,7 +137,6 @@
161
  border-radius: 12px;
162
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
163
  }
164
-
165
  /* Coupon Section styling */
166
  .coupon-selection {
167
  display: flex; /* Use flexbox to align items */
@@ -171,20 +146,17 @@
171
  margin-bottom: 20px; /* Add space below Apply Coupon section */
172
  position: relative; /* Ensure dropdown is within this container */
173
  }
174
-
175
  /* Ensure the Apply Coupon label and link are aligned correctly */
176
  .coupon-selection label {
177
  font-weight: bold;
178
  color: black;
179
  }
180
-
181
  .coupon-selection a {
182
  color: #007bff; /* Blue for the link */
183
  font-size: 1rem;
184
  text-decoration: none;
185
  text-align: right;
186
  }
187
-
188
  /* Coupon Dropdown styling */
189
  #couponDropdown {
190
  width: 30%; /* Set dropdown to 30% of the width */
@@ -196,13 +168,10 @@
196
  margin-left: auto; /* Push it to the right side */
197
  margin-right: 0; /* Ensure it doesn't overflow outside */
198
  }
199
-
200
  /* Show the dropdown when it's active */
201
  #couponDropdown.show {
202
  display: block;
203
  }
204
-
205
-
206
  /* Ensure Apply Coupon section aligns correctly */
207
  .coupon-selection {
208
  display: flex;
@@ -211,20 +180,17 @@
211
  font-size: 1rem;
212
  margin-bottom: 20px; /* Add space below Apply Coupon section */
213
  }
214
-
215
  /* Apply Coupon link and label styles */
216
  .coupon-selection label {
217
  font-weight: bold;
218
  color: black;
219
  }
220
-
221
  .coupon-selection a {
222
  color: #007bff; /* Blue for the link */
223
  font-size: 1rem;
224
  text-decoration: none;
225
  text-align: right;
226
  }
227
-
228
  /* Bill details grid structure */
229
  .bill-details {
230
  display: grid;
@@ -232,25 +198,21 @@
232
  grid-gap: 10px;
233
  margin-bottom: 10px;
234
  }
235
-
236
  /* Adjust label and amount for bill details */
237
  .bill-details .label {
238
  font-weight: 600;
239
  font-size: 1rem;
240
  }
241
-
242
  .bill-details .amount {
243
  text-align: right;
244
  font-weight: 600;
245
  font-size: 1rem;
246
  }
247
-
248
  /* Divider line between bill sections */
249
  .dotted-line {
250
  border-bottom: 2px dotted #ccc;
251
  margin: 15px 0;
252
  }
253
-
254
  /* Total bill grid layout */
255
  .total-bill {
256
  display: grid;
@@ -260,17 +222,14 @@
260
  margin-top: 10px;
261
  margin-bottom: 10px; /* Add 10px space between To Pay and Submit Button */
262
  }
263
-
264
  .total-bill .label {
265
  font-size: 1.1rem;
266
  }
267
-
268
  .total-bill .amount {
269
  text-align: right;
270
  font-size: 1.1rem;
271
  color: #000; /* Changed from green to black */
272
  }
273
-
274
  /* Margin to add space for dropdown when visible */
275
  .cart-summary.has-dropdown {
276
  margin-bottom: 80px; /* Create space below the content when dropdown is visible */
@@ -291,14 +250,12 @@
291
  align-items: center;
292
  text-align: center;
293
  }
294
-
295
  .suggestion-section {
296
  margin-top: 25px;
297
  padding: 15px;
298
  background-color: #f8f9fa;
299
  border-radius: 10px;
300
  }
301
-
302
  .suggestion-items-container {
303
  display: flex;
304
  overflow-x: auto; /* Horizontal scrolling */
@@ -306,7 +263,6 @@
306
  padding-bottom: 10px;
307
  padding-top: 10px;
308
  }
309
-
310
  /* Styling for the suggestion item card */
311
  .suggestion-item {
312
  display: flex; /* Align items horizontally */
@@ -324,11 +280,9 @@
324
  text-align: left; /* Align text to the left */
325
  overflow: visible; /* Allow the button to overflow outside */
326
  }
327
-
328
  .suggestion-item:hover {
329
  transform: scale(1.05); /* Slight zoom effect on hover */
330
  }
331
-
332
  .suggestion-item img {
333
  width: 50px; /* Set a fixed width for the image */
334
  height: 50px; /* Set a fixed height for the image */
@@ -336,12 +290,10 @@
336
  border-radius: 5px; /* Rounded corners for the image */
337
  margin-right: 12px; /* Space between the image and text */
338
  }
339
-
340
  .suggestion-item div {
341
  flex-grow: 1; /* Allow the text section to expand and fill available space */
342
  text-align: left; /* Align text to the left */
343
  }
344
-
345
  /* Styling for the + symbol button (with green border, white background, and black text) */
346
  .add-back-button {
347
  position: absolute;
@@ -357,27 +309,22 @@
357
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
358
  z-index: 1; /* Ensure the button is above content */
359
  }
360
-
361
  .add-back-button:hover {
362
  background-color: #fff; /* Green background on hover */
363
  color: #0FAA39; /* White color for the + symbol when hovered */
364
  border-color: #0FAA39; /* Green border on hover */
365
  }
366
-
367
  /* Ensure the scroll container works fine */
368
  .suggestion-items-container::-webkit-scrollbar {
369
  height: 8px; /* Height of the scrollbar */
370
  }
371
-
372
  .suggestion-items-container::-webkit-scrollbar-thumb {
373
  background-color: #fff; /* Green color for scrollbar thumb */
374
  border-radius: 4px;
375
  }
376
-
377
  .suggestion-items-container::-webkit-scrollbar-track {
378
  background-color: #f1f1f1;
379
  }
380
-
381
 
382
  </style>
383
  </head>
 
25
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
26
  }
27
 
28
+ .cart-item {
29
+ display: flex;
30
+ align-items: flex-start;
31
+ justify-content: space-between;
32
+ border: 1px solid transparent; /* Set the border to transparent */
33
+ padding: 15px; /* Padding for the content */
34
+ box-sizing: border-box;
35
+ min-height: 100px;
36
+ position: relative; /* Make the cart item a reference for the absolute positioning of the remove icon */
37
+ }
38
+
39
+ .remove-icon {
40
  border: none;
41
  background: none;
42
  color: red;
43
  font-size: 1.2rem;
44
  cursor: pointer;
45
  position: relative;
46
+ top: -25px !important; /* Move icon 5px up and force apply */
47
  }
48
 
 
 
 
 
 
49
  .image-wrapper {
50
  width: 80px; /* Width of the image container */
51
  height: 140px !important; /* Height of the image container */
 
60
  border-radius: 8px; /* Optional: rounded corners */
61
  transition: transform 0.3s;
62
  }
 
63
  .cart-item img:hover {
64
  transform: scale(1.05);
65
  }
66
+ .cart-item-title {
67
+ font-size: 1.1rem;
68
+ font-weight: 600;
69
+ }
70
+ .cart-item-actions .text-primary {
71
+ color: #000 !important; /* Changed from blue to black */
72
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  .checkout-button {
74
  background-color: #0FAA39; /* Green background */
75
  color: #fff; /* White text */
 
99
  background-color: #fff;
100
  color: #0FAA39;
101
  }
102
+
103
+ .cart-item-details {
104
+ flex: 1;
105
+ margin-left: 15px;
106
+ }
107
 
108
  .cart-item-quantity {
109
  display: flex;
 
137
  border-radius: 12px;
138
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
139
  }
 
140
  /* Coupon Section styling */
141
  .coupon-selection {
142
  display: flex; /* Use flexbox to align items */
 
146
  margin-bottom: 20px; /* Add space below Apply Coupon section */
147
  position: relative; /* Ensure dropdown is within this container */
148
  }
 
149
  /* Ensure the Apply Coupon label and link are aligned correctly */
150
  .coupon-selection label {
151
  font-weight: bold;
152
  color: black;
153
  }
 
154
  .coupon-selection a {
155
  color: #007bff; /* Blue for the link */
156
  font-size: 1rem;
157
  text-decoration: none;
158
  text-align: right;
159
  }
 
160
  /* Coupon Dropdown styling */
161
  #couponDropdown {
162
  width: 30%; /* Set dropdown to 30% of the width */
 
168
  margin-left: auto; /* Push it to the right side */
169
  margin-right: 0; /* Ensure it doesn't overflow outside */
170
  }
 
171
  /* Show the dropdown when it's active */
172
  #couponDropdown.show {
173
  display: block;
174
  }
 
 
175
  /* Ensure Apply Coupon section aligns correctly */
176
  .coupon-selection {
177
  display: flex;
 
180
  font-size: 1rem;
181
  margin-bottom: 20px; /* Add space below Apply Coupon section */
182
  }
 
183
  /* Apply Coupon link and label styles */
184
  .coupon-selection label {
185
  font-weight: bold;
186
  color: black;
187
  }
 
188
  .coupon-selection a {
189
  color: #007bff; /* Blue for the link */
190
  font-size: 1rem;
191
  text-decoration: none;
192
  text-align: right;
193
  }
 
194
  /* Bill details grid structure */
195
  .bill-details {
196
  display: grid;
 
198
  grid-gap: 10px;
199
  margin-bottom: 10px;
200
  }
 
201
  /* Adjust label and amount for bill details */
202
  .bill-details .label {
203
  font-weight: 600;
204
  font-size: 1rem;
205
  }
 
206
  .bill-details .amount {
207
  text-align: right;
208
  font-weight: 600;
209
  font-size: 1rem;
210
  }
 
211
  /* Divider line between bill sections */
212
  .dotted-line {
213
  border-bottom: 2px dotted #ccc;
214
  margin: 15px 0;
215
  }
 
216
  /* Total bill grid layout */
217
  .total-bill {
218
  display: grid;
 
222
  margin-top: 10px;
223
  margin-bottom: 10px; /* Add 10px space between To Pay and Submit Button */
224
  }
 
225
  .total-bill .label {
226
  font-size: 1.1rem;
227
  }
 
228
  .total-bill .amount {
229
  text-align: right;
230
  font-size: 1.1rem;
231
  color: #000; /* Changed from green to black */
232
  }
 
233
  /* Margin to add space for dropdown when visible */
234
  .cart-summary.has-dropdown {
235
  margin-bottom: 80px; /* Create space below the content when dropdown is visible */
 
250
  align-items: center;
251
  text-align: center;
252
  }
 
253
  .suggestion-section {
254
  margin-top: 25px;
255
  padding: 15px;
256
  background-color: #f8f9fa;
257
  border-radius: 10px;
258
  }
 
259
  .suggestion-items-container {
260
  display: flex;
261
  overflow-x: auto; /* Horizontal scrolling */
 
263
  padding-bottom: 10px;
264
  padding-top: 10px;
265
  }
 
266
  /* Styling for the suggestion item card */
267
  .suggestion-item {
268
  display: flex; /* Align items horizontally */
 
280
  text-align: left; /* Align text to the left */
281
  overflow: visible; /* Allow the button to overflow outside */
282
  }
 
283
  .suggestion-item:hover {
284
  transform: scale(1.05); /* Slight zoom effect on hover */
285
  }
 
286
  .suggestion-item img {
287
  width: 50px; /* Set a fixed width for the image */
288
  height: 50px; /* Set a fixed height for the image */
 
290
  border-radius: 5px; /* Rounded corners for the image */
291
  margin-right: 12px; /* Space between the image and text */
292
  }
 
293
  .suggestion-item div {
294
  flex-grow: 1; /* Allow the text section to expand and fill available space */
295
  text-align: left; /* Align text to the left */
296
  }
 
297
  /* Styling for the + symbol button (with green border, white background, and black text) */
298
  .add-back-button {
299
  position: absolute;
 
309
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
310
  z-index: 1; /* Ensure the button is above content */
311
  }
 
312
  .add-back-button:hover {
313
  background-color: #fff; /* Green background on hover */
314
  color: #0FAA39; /* White color for the + symbol when hovered */
315
  border-color: #0FAA39; /* Green border on hover */
316
  }
 
317
  /* Ensure the scroll container works fine */
318
  .suggestion-items-container::-webkit-scrollbar {
319
  height: 8px; /* Height of the scrollbar */
320
  }
 
321
  .suggestion-items-container::-webkit-scrollbar-thumb {
322
  background-color: #fff; /* Green color for scrollbar thumb */
323
  border-radius: 4px;
324
  }
 
325
  .suggestion-items-container::-webkit-scrollbar-track {
326
  background-color: #f1f1f1;
327
  }
 
328
 
329
  </style>
330
  </head>