nagasurendra commited on
Commit
73a2738
·
verified ·
1 Parent(s): 1e8d3c3

Update templates/cart.html

Browse files
Files changed (1) hide show
  1. templates/cart.html +33 -36
templates/cart.html CHANGED
@@ -271,67 +271,64 @@
271
  .suggestion-items-container {
272
  display: flex;
273
  overflow-x: auto; /* Horizontal scrolling */
274
- gap: 10px; /* Reduce space between items */
275
  padding-bottom: 10px;
276
- padding-top: 10px;
 
277
  }
278
 
279
- /* Smaller and more compact card styling */
280
  .suggestion-item {
281
- display: flex; /* Use flexbox for horizontal layout */
282
- align-items: center; /* Center content vertically */
283
- justify-content: space-between; /* Space out content */
284
  flex-shrink: 0;
285
- width: 140px; /* Reduced width for smaller cards */
286
- padding: 8px; /* Reduced padding */
287
- border-radius: 8px; /* Slightly smaller border radius */
288
  background-color: #fff;
289
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
290
  transition: transform 0.3s ease;
291
- margin-right: 10px; /* Ensure there's space between the cards */
292
- position: relative; /* For positioning the + icon */
293
  }
294
 
295
  .suggestion-item:hover {
296
- transform: scale(1.05); /* Add zoom effect on hover */
297
  }
298
 
299
  .suggestion-item img {
300
- width: 50px; /* Smaller image */
301
- height: 50px; /* Smaller image */
302
- object-fit: cover; /* Ensure image fits correctly without distortion */
303
- border-radius: 5px;
304
- margin-left: 8px; /* Space between the image and text */
305
  }
306
 
307
  .suggestion-item div {
308
- flex-grow: 1;
309
- text-align: left; /* Align text to the left */
310
- margin-right: 8px; /* Space between text and image */
311
  }
312
 
313
- /* Styling for the + symbol button (with no borders) */
314
- .add-icon {
315
- position: absolute;
316
- top: 5px; /* Position at the top */
317
- right: 5px; /* Position at the top-right */
318
- font-size: 1.2rem; /* Adjust size of the + symbol */
319
- padding: 6px 10px; /* Button padding */
320
  background-color: #fff; /* White background */
321
- color: #0FAA39; /* Green color for the + symbol */
322
- border: none; /* No border */
323
- border-radius: 50%; /* Circular button */
324
  cursor: pointer;
325
- transition: background-color 0.3s, color 0.3s;
326
- z-index: 1; /* Ensure the button is above content */
327
  }
328
 
329
- .add-icon:hover {
330
- background-color: #0FAA39; /* Green background on hover */
331
- color: #fff; /* White color for the + symbol when hovered */
 
 
332
  }
333
 
334
- /* Ensure the scroll container works fine */
335
  .suggestion-items-container::-webkit-scrollbar {
336
  height: 8px; /* Height of the scrollbar */
337
  }
 
271
  .suggestion-items-container {
272
  display: flex;
273
  overflow-x: auto; /* Horizontal scrolling */
274
+ gap: 15px; /* Space between items */
275
  padding-bottom: 10px;
276
+ margin-left: 5px;
277
+ padding-top: 5px;
278
  }
279
 
280
+ /* Styling for the suggestion item card */
281
  .suggestion-item {
282
+ display: flex; /* Align items horizontally */
283
+ align-items: center; /* Center image and text vertically */
284
+ justify-content: flex-start; /* Align items to the start (left side) */
285
  flex-shrink: 0;
286
+ width: 160px; /* Adjust width for compactness */
287
+ padding: 10px;
288
+ border-radius: 8px; /* Rounded corners */
289
  background-color: #fff;
290
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
291
  transition: transform 0.3s ease;
292
+ margin-right: 15px; /* Space between the cards */
293
+ text-align: left; /* Align text to the left */
294
  }
295
 
296
  .suggestion-item:hover {
297
+ transform: scale(1.05); /* Slight zoom effect on hover */
298
  }
299
 
300
  .suggestion-item img {
301
+ width: 50px; /* Set a fixed width for the image */
302
+ height: 50px; /* Set a fixed height for the image */
303
+ object-fit: cover; /* Ensure image fits without distortion */
304
+ border-radius: 5px; /* Rounded corners for the image */
305
+ margin-right: 12px; /* Space between the image and text */
306
  }
307
 
308
  .suggestion-item div {
309
+ flex-grow: 1; /* Allow the text section to expand and fill available space */
 
 
310
  }
311
 
312
+ /* Adjust the + button styles */
313
+ .add-back-button {
314
+ padding: 6px 20px;
315
+ font-size: 0.9rem;
316
+ border-radius: 20px;
317
+ border: 1px solid #0FAA39; /* Green border */
 
318
  background-color: #fff; /* White background */
319
+ color: #0FAA39; /* Green text */
 
 
320
  cursor: pointer;
321
+ transition: background-color 0.3s, color 0.3s, border-color 0.3s;
 
322
  }
323
 
324
+ /* On hover, keep text green and border green */
325
+ .add-back-button:hover {
326
+ background-color: #fff;
327
+ color: #0FAA39; /* Green color stays on hover */
328
+ border-color: #0FAA39; /* Green border on hover */
329
  }
330
 
331
+ /* Styling for the scrolling section */
332
  .suggestion-items-container::-webkit-scrollbar {
333
  height: 8px; /* Height of the scrollbar */
334
  }