Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +41 -22
templates/cart.html
CHANGED
|
@@ -25,16 +25,7 @@
|
|
| 25 |
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
|
| 26 |
}
|
| 27 |
|
| 28 |
-
|
| 29 |
-
display: flex;
|
| 30 |
-
align-items: flex-start;
|
| 31 |
-
justify-content: space-between;
|
| 32 |
-
border: 1px solid ;
|
| 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 |
.remove-icon {
|
| 39 |
border: none;
|
| 40 |
background: none;
|
|
@@ -68,13 +59,45 @@
|
|
| 68 |
.cart-item img:hover {
|
| 69 |
transform: scale(1.05);
|
| 70 |
}
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
|
| 79 |
.checkout-button {
|
| 80 |
background-color: #0FAA39; /* Green background */
|
|
@@ -105,11 +128,7 @@
|
|
| 105 |
background-color: #fff;
|
| 106 |
color: #0FAA39;
|
| 107 |
}
|
| 108 |
-
|
| 109 |
-
.cart-item-details {
|
| 110 |
-
flex: 1;
|
| 111 |
-
margin-left: 15px;
|
| 112 |
-
}
|
| 113 |
|
| 114 |
.cart-item-quantity {
|
| 115 |
display: flex;
|
|
|
|
| 25 |
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
|
| 26 |
}
|
| 27 |
|
| 28 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
.remove-icon {
|
| 30 |
border: none;
|
| 31 |
background: none;
|
|
|
|
| 59 |
.cart-item img:hover {
|
| 60 |
transform: scale(1.05);
|
| 61 |
}
|
| 62 |
+
.cart-item {
|
| 63 |
+
display: flex;
|
| 64 |
+
align-items: center;
|
| 65 |
+
justify-content: space-between;
|
| 66 |
+
padding: 15px;
|
| 67 |
+
box-sizing: border-box;
|
| 68 |
+
min-height: 100px;
|
| 69 |
+
position: relative;
|
| 70 |
+
border: none !important; /* Remove border */
|
| 71 |
+
background-color: white;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
.cart-item-title {
|
| 75 |
+
font-size: 1.1rem;
|
| 76 |
+
font-weight: 600;
|
| 77 |
+
flex-grow: 1; /* Allow name to take available space */
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
.cart-item-details {
|
| 81 |
+
display: flex;
|
| 82 |
+
align-items: center;
|
| 83 |
+
justify-content: space-between; /* Keep details well aligned */
|
| 84 |
+
width: 100%;
|
| 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 |
|
| 102 |
.checkout-button {
|
| 103 |
background-color: #0FAA39; /* Green background */
|
|
|
|
| 128 |
background-color: #fff;
|
| 129 |
color: #0FAA39;
|
| 130 |
}
|
| 131 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
|
| 133 |
.cart-item-quantity {
|
| 134 |
display: flex;
|