nagasurendra commited on
Commit
930dc2e
·
verified ·
1 Parent(s): b39f8d5

Update templates/cart.html

Browse files
Files changed (1) hide show
  1. templates/cart.html +16 -15
templates/cart.html CHANGED
@@ -47,18 +47,17 @@
47
 
48
  .cart-item-actions {
49
  display: flex;
50
- flex-direction: column; /* Stack the delete icon and price vertically */
51
- align-items: center; /* Center-align both the icon and the price */
52
- justify-content: center; /* Vertically center the items in the container */
53
  }
54
 
55
- .remove-icon {
56
- border: none;
57
- background: none;
58
- color: red; /* Keep the color red for the icon */
59
- font-size: 1.2rem;
60
- cursor: pointer;
61
- margin-bottom: 10px; /* Add space between icon and price */
62
  }
63
 
64
  .text-primary {
@@ -68,6 +67,7 @@
68
 
69
 
70
 
 
71
  .image-wrapper {
72
  width: 80px; /* Width of the image container */
73
  height: 140px !important; /* Height of the image container */
@@ -395,11 +395,12 @@
395
  </div>
396
  <div class="cart-item-actions">
397
  <div>
398
- <button class="remove-icon" onclick="removeItemFromCart('{{ item.Name }}')">
399
- <!-- SVG Recycle Bin Icon -->
400
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
401
- <path d="M6 19C6 20.1 6.9 21 8 21H16C17.1 21 18 20.1 18 19V7H6V19ZM8 3C8 2.45 8.45 2 9 2H15C15.55 2 16 2.45 16 3V5H8V3Z" fill="none" stroke="black" stroke-width="2"/>
402
- </svg>
 
403
  </button>
404
  </div>
405
  <div class="text-primary" style="color: #000 !important;">
 
47
 
48
  .cart-item-actions {
49
  display: flex;
50
+ flex-direction: column; /* Stack the icon and price vertically */
51
+ align-items: center; /* Center-align the contents */
52
+ justify-content: center; /* Vertically center the items */
53
  }
54
 
55
+ .remove-btn {
56
+ border: none; /* Remove the border around the button */
57
+ background-color: transparent; /* Transparent background */
58
+ cursor: pointer; /* Change cursor to pointer */
59
+ font-size: 1.5rem; /* Adjust the size of the trash icon */
60
+ margin-bottom: 10px; /* Add space below the delete icon */
 
61
  }
62
 
63
  .text-primary {
 
67
 
68
 
69
 
70
+
71
  .image-wrapper {
72
  width: 80px; /* Width of the image container */
73
  height: 140px !important; /* Height of the image container */
 
395
  </div>
396
  <div class="cart-item-actions">
397
  <div>
398
+ <!-- Link to Bootstrap Icons CSS -->
399
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">
400
+
401
+ <!-- Delete Button with Trash Icon -->
402
+ <button type="button" class="btn btn-light text-dark remove-btn">
403
+ <i class="bi bi-trash"></i>
404
  </button>
405
  </div>
406
  <div class="text-primary" style="color: #000 !important;">