Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +88 -84
templates/cart.html
CHANGED
@@ -53,6 +53,10 @@
|
|
53 |
font-size: 1.1rem;
|
54 |
font-weight: 600;
|
55 |
}
|
|
|
|
|
|
|
|
|
56 |
.checkout-button {
|
57 |
background-color: #0FAA39; /* Green background */
|
58 |
color: #fff; /* White text */
|
@@ -111,58 +115,58 @@
|
|
111 |
margin: 0 5px;
|
112 |
}
|
113 |
.cart-summary {
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
}
|
121 |
-
.bill-details {
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
}
|
127 |
-
.bill-details .label {
|
128 |
-
|
129 |
-
|
130 |
-
}
|
131 |
-
.bill-details .amount {
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
}
|
136 |
-
.dotted-line {
|
137 |
-
|
138 |
-
|
139 |
-
}
|
140 |
-
.total-bill {
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
}
|
147 |
-
.total-bill .label {
|
148 |
-
|
149 |
-
}
|
150 |
-
.total-bill .amount {
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
}
|
155 |
-
.checkout-button {
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
}
|
166 |
|
167 |
.suggestion-section {
|
168 |
margin-top: 20px;
|
@@ -171,37 +175,37 @@
|
|
171 |
border-radius: 10px;
|
172 |
}
|
173 |
.suggestion-item {
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
}
|
179 |
-
.suggestion-item img {
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
}
|
186 |
-
.suggestion-item div {
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
}
|
192 |
-
.suggestion-item button {
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
}
|
205 |
.suggestion-item button:hover {
|
206 |
background-color: #0FAA39; /* Change background to green on hover */
|
207 |
color: #fff; /* Change text color to white on hover */
|
@@ -252,7 +256,7 @@
|
|
252 |
<div>
|
253 |
<button class="remove-icon" onclick="removeItemFromCart('{{ item.Name }}')">🗑️</button>
|
254 |
</div>
|
255 |
-
<div class="text-primary">
|
256 |
$<span class="base-price">{{ item.Price__c }}</span>
|
257 |
</div>
|
258 |
</div>
|
|
|
53 |
font-size: 1.1rem;
|
54 |
font-weight: 600;
|
55 |
}
|
56 |
+
.cart-item-actions .text-primary {
|
57 |
+
color: #000 !important; /* Changed from blue to black */
|
58 |
+
}
|
59 |
+
|
60 |
.checkout-button {
|
61 |
background-color: #0FAA39; /* Green background */
|
62 |
color: #fff; /* White text */
|
|
|
115 |
margin: 0 5px;
|
116 |
}
|
117 |
.cart-summary {
|
118 |
+
text-align: left;
|
119 |
+
margin-top: 15px;
|
120 |
+
padding: 20px;
|
121 |
+
background-color: #fff;
|
122 |
+
border-radius: 12px;
|
123 |
+
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
|
124 |
+
}
|
125 |
+
.bill-details {
|
126 |
+
display: grid;
|
127 |
+
grid-template-columns: 1fr 1fr; /* Two-column layout */
|
128 |
+
grid-gap: 10px;
|
129 |
+
margin-bottom: 10px;
|
130 |
+
}
|
131 |
+
.bill-details .label {
|
132 |
+
font-weight: 600;
|
133 |
+
font-size: 1rem;
|
134 |
+
}
|
135 |
+
.bill-details .amount {
|
136 |
+
text-align: right;
|
137 |
+
font-weight: 600;
|
138 |
+
font-size: 1rem;
|
139 |
+
}
|
140 |
+
.dotted-line {
|
141 |
+
border-bottom: 2px dotted #ccc;
|
142 |
+
margin: 15px 0;
|
143 |
+
}
|
144 |
+
.total-bill {
|
145 |
+
display: grid;
|
146 |
+
grid-template-columns: 1fr 1fr;
|
147 |
+
font-weight: 600;
|
148 |
+
font-size: 1.2rem;
|
149 |
+
margin-top: 10px;
|
150 |
+
}
|
151 |
+
.total-bill .label {
|
152 |
+
font-size: 1.1rem;
|
153 |
+
}
|
154 |
+
.total-bill .amount {
|
155 |
+
text-align: right;
|
156 |
+
font-size: 1.1rem;
|
157 |
+
color: #000; /* Changed from green to black */
|
158 |
+
}
|
159 |
+
.checkout-button {
|
160 |
+
background-color: #0FAA39;
|
161 |
+
color: #fff;
|
162 |
+
padding: 12px;
|
163 |
+
border-radius: 8px;
|
164 |
+
border: none;
|
165 |
+
width: 100%;
|
166 |
+
font-size: 1.2rem;
|
167 |
+
cursor: pointer;
|
168 |
+
transition: background-color 0.3s, color 0.3s;
|
169 |
+
}
|
170 |
|
171 |
.suggestion-section {
|
172 |
margin-top: 20px;
|
|
|
175 |
border-radius: 10px;
|
176 |
}
|
177 |
.suggestion-item {
|
178 |
+
display: flex;
|
179 |
+
align-items: center; /* Vertically align image and text */
|
180 |
+
justify-content: space-between; /* Space between the image/text and the button */
|
181 |
+
padding: 10px 0;
|
182 |
+
}
|
183 |
+
.suggestion-item img {
|
184 |
+
width: 50px;
|
185 |
+
height: 50px;
|
186 |
+
object-fit: cover;
|
187 |
+
border-radius: 5px;
|
188 |
+
margin-right: 10px; /* Spacing between the image and the text */
|
189 |
+
}
|
190 |
+
.suggestion-item div {
|
191 |
+
display: flex;
|
192 |
+
flex-direction: column;
|
193 |
+
justify-content: center;
|
194 |
+
flex-grow: 1; /* Allow the text to take up the available space */
|
195 |
+
}
|
196 |
+
.suggestion-item button {
|
197 |
+
padding: 5px 15px;
|
198 |
+
font-size: 0.9rem;
|
199 |
+
border-radius: 5px;
|
200 |
+
border: 2px solid #0FAA39;
|
201 |
+
color: #0FAA39;
|
202 |
+
background-color: #fff;
|
203 |
+
font-weight: 600;
|
204 |
+
height: 44px;
|
205 |
+
cursor: pointer;
|
206 |
+
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
|
207 |
+
margin-left: auto; /* Push button to the right */
|
208 |
+
}
|
209 |
.suggestion-item button:hover {
|
210 |
background-color: #0FAA39; /* Change background to green on hover */
|
211 |
color: #fff; /* Change text color to white on hover */
|
|
|
256 |
<div>
|
257 |
<button class="remove-icon" onclick="removeItemFromCart('{{ item.Name }}')">🗑️</button>
|
258 |
</div>
|
259 |
+
<div class="text-primary" style="color: #000 !important;"> <!-- Inline style to ensure it's black -->
|
260 |
$<span class="base-price">{{ item.Price__c }}</span>
|
261 |
</div>
|
262 |
</div>
|