Rammohan0504 nagasurendra commited on
Commit
58a9a2e
·
verified ·
1 Parent(s): 51ab802

Update templates/cart.html (#6)

Browse files

- Update templates/cart.html (e1f36236d143d56790dfd49f25ab1b2473300c77)


Co-authored-by: Surendra <[email protected]>

Files changed (1) hide show
  1. templates/cart.html +25 -17
templates/cart.html CHANGED
@@ -42,13 +42,19 @@
42
  border: none; /* Remove the border around the button */
43
  background-color: transparent; /* Transparent background */
44
  cursor: pointer; /* Change cursor to pointer */
45
- font-size: 1.5rem; /* Adjust the size of the trash icon */
46
  margin-bottom: 10px; /* Add space below the delete icon */
47
  transition: color 0.3s ease; /* Smooth transition for icon color */
48
  position: relative; /* Make it relative for movement */
49
- top: -40px; /* Move the button 10px upwards */
50
  left: 50px; /* Move the button 30px to the right */
51
  }
 
 
 
 
 
 
52
  /* Hover effect */
53
  .remove-btn:hover {
54
  color: black; /* Change the icon color to black on hover */
@@ -62,33 +68,35 @@
62
  .text-primary {
63
  color: #000 !important; /* Ensure the price is black */
64
  text-align: right; /* Center-align the price */
 
65
  white-space: nowrap; /* Prevent price text from wrapping */
66
  }
67
- /* Default for larger screens like desktops */
68
  .image-wrapper {
69
  width: 80px; /* Width of the image container */
70
- height: 140px !important; /* Height of the image container */
71
- display: flex; /* Flex container for the image */
72
- align-items: flex-start; /* Align the image at the top */
73
- justify-content: center; /* Center image horizontally if it has space */
74
  }
75
 
76
- /* Responsive for mobile devices */
77
  .cart-item img {
78
- width: 70px;
79
- height: 70px;
80
- object-fit: cover;
81
- border-radius: 5px;
82
- border: 1px solid #ffcc80; /* Light orange border around images */
83
- }
 
84
 
85
-
86
  .cart-item img:hover {
87
  transform: scale(1.05);
88
  }
89
  .cart-item-title {
90
  font-size: 1.1rem;
91
- font-weight: 400;
92
  }
93
 
94
  .checkout-button {
@@ -259,7 +267,7 @@
259
  background-color: #0FAA39;
260
  color: #fff;
261
  padding: 12px;
262
- border-radius: 15px;
263
  border: none;
264
  height: 44px;
265
  width: 100%;
 
42
  border: none; /* Remove the border around the button */
43
  background-color: transparent; /* Transparent background */
44
  cursor: pointer; /* Change cursor to pointer */
45
+ font-size: 1.2rem; /* Slightly decrease the size of the trash icon */
46
  margin-bottom: 10px; /* Add space below the delete icon */
47
  transition: color 0.3s ease; /* Smooth transition for icon color */
48
  position: relative; /* Make it relative for movement */
49
+ top: -35px; /* Move the button 10px upwards */
50
  left: 50px; /* Move the button 30px to the right */
51
  }
52
+
53
+ .remove-btn i {
54
+ color: red; /* Make the trash icon red */
55
+ }
56
+
57
+
58
  /* Hover effect */
59
  .remove-btn:hover {
60
  color: black; /* Change the icon color to black on hover */
 
68
  .text-primary {
69
  color: #000 !important; /* Ensure the price is black */
70
  text-align: right; /* Center-align the price */
71
+ font-weight: bold; /* Make the price text bold */
72
  white-space: nowrap; /* Prevent price text from wrapping */
73
  }
74
+ /* For the image container */
75
  .image-wrapper {
76
  width: 80px; /* Width of the image container */
77
+ height: 80px !important; /* Set the height of the container to match the image */
78
+ display: flex; /* Flex container for the image */
79
+ align-items: center; /* Center image vertically */
80
+ justify-content: center; /* Center image horizontally */
81
  }
82
 
83
+ /* For the image */
84
  .cart-item img {
85
+ width: 70px; /* Set the width to 70px */
86
+ height: 70px; /* Set the height to 70px */
87
+ object-fit: cover; /* Ensure the image covers the container without stretching */
88
+ border-radius: 5px; /* Optional: rounded corners */
89
+ border: 1px solid #ffcc80; /* Light orange border around images */
90
+ margin: 0; /* Ensure no extra space around the image */
91
+ }
92
 
93
+
94
  .cart-item img:hover {
95
  transform: scale(1.05);
96
  }
97
  .cart-item-title {
98
  font-size: 1.1rem;
99
+ font-weight: bold; /* Make the title text bold */
100
  }
101
 
102
  .checkout-button {
 
267
  background-color: #0FAA39;
268
  color: #fff;
269
  padding: 12px;
270
+ border-radius: 8px;
271
  border: none;
272
  height: 44px;
273
  width: 100%;