nagasurendra commited on
Commit
7ce2d8b
·
verified ·
1 Parent(s): b9b9b49

Update templates/cart.html

Browse files
Files changed (1) hide show
  1. templates/cart.html +38 -29
templates/cart.html CHANGED
@@ -260,31 +260,18 @@
260
  align-items: center;
261
  text-align: center;
262
  }
263
- .suggestion-section {
264
- margin-top: 20px;
265
- padding: 15px;
266
- background-color: #f8f9fa;
267
- border-radius: 10px;
268
- }
269
-
270
- .suggestion-items-container {
271
- display: flex; /* Align the items in a row */
272
- overflow-x: auto; /* Make the container scrollable horizontally */
273
- gap: 15px; /* Add space between items */
274
- padding-bottom: 10px; /* Add padding at the bottom for scrollbar */
275
- }
276
-
277
  .suggestion-item {
278
  display: flex;
279
  align-items: center;
280
  justify-content: center;
281
- flex-shrink: 0; /* Prevent items from shrinking */
282
  width: 150px; /* Set a fixed width for each suggestion item */
283
  padding: 10px;
284
  border-radius: 10px;
285
  background-color: #fff;
286
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
287
  transition: transform 0.3s ease;
 
288
  }
289
 
290
  .suggestion-item:hover {
@@ -300,36 +287,58 @@
300
  }
301
 
302
  .suggestion-item div {
303
- flex-grow: 1; /* Allow text to take up available space */
 
304
  }
305
 
 
306
  .add-back-button {
307
  padding: 6px 20px;
308
  font-size: 0.9rem;
309
  border-radius: 20px;
310
- border: 1px solid #fff;
311
- background-color: #fff;
312
- color: #0FAA39;
313
  cursor: pointer;
314
- transition: background-color 0.3s, color 0.3s;
315
  }
316
 
 
317
  .add-back-button:hover {
318
- background-color: #0FAA39;
319
- color: #fff;
320
- border-color: #0FAA39;
321
  }
322
 
323
- .bi-cart-plus {
324
- font-size: 1.2rem;
325
- margin-right: 5px; /* Space between icon and text */
326
  }
327
 
 
 
 
 
 
 
 
 
 
328
 
329
-
330
-
 
 
 
 
 
 
 
 
 
 
 
331
 
332
-
333
  .remove-icon {
334
  border: none;
335
  background: none;
 
260
  align-items: center;
261
  text-align: center;
262
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
263
  .suggestion-item {
264
  display: flex;
265
  align-items: center;
266
  justify-content: center;
267
+ flex-shrink: 0;
268
  width: 150px; /* Set a fixed width for each suggestion item */
269
  padding: 10px;
270
  border-radius: 10px;
271
  background-color: #fff;
272
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
273
  transition: transform 0.3s ease;
274
+ margin-right: 15px; /* Ensure there's space between the cards */
275
  }
276
 
277
  .suggestion-item:hover {
 
287
  }
288
 
289
  .suggestion-item div {
290
+ flex-grow: 1;
291
+ margin-right: 10px; /* Add space between the image and the text */
292
  }
293
 
294
+ /* Adjust the Add button styles */
295
  .add-back-button {
296
  padding: 6px 20px;
297
  font-size: 0.9rem;
298
  border-radius: 20px;
299
+ border: 1px solid #0FAA39; /* Green border */
300
+ background-color: #fff; /* White background */
301
+ color: #0FAA39; /* Green text */
302
  cursor: pointer;
303
+ transition: background-color 0.3s, color 0.3s, border-color 0.3s;
304
  }
305
 
306
+ /* Change background to white and keep the text green on hover */
307
  .add-back-button:hover {
308
+ background-color: #fff;
309
+ color: #0FAA39; /* Green color stays on hover */
310
+ border-color: #0FAA39; /* Green border on hover */
311
  }
312
 
313
+ /* The "+" symbol should be green */
314
+ .add-back-button i {
315
+ color: #0FAA39; /* Green color for the icon */
316
  }
317
 
318
+ /* Ensure the scroll container works fine */
319
+ .suggestion-items-container {
320
+ display: flex;
321
+ overflow-x: auto;
322
+ gap: 15px;
323
+ padding-bottom: 10px;
324
+ margin-left: 5px; /* Prevent item cards from touching the left edge */
325
+ padding-top: 5px; /* Add some space at the top of the scrollable container */
326
+ }
327
 
328
+ /* Styling for the scrolling section */
329
+ .suggestion-items-container::-webkit-scrollbar {
330
+ height: 8px; /* Height of the scrollbar */
331
+ }
332
+
333
+ .suggestion-items-container::-webkit-scrollbar-thumb {
334
+ background-color: #0FAA39; /* Green color for scrollbar thumb */
335
+ border-radius: 4px;
336
+ }
337
+
338
+ .suggestion-items-container::-webkit-scrollbar-track {
339
+ background-color: #f1f1f1;
340
+ }
341
 
 
342
  .remove-icon {
343
  border: none;
344
  background: none;