nagasurendra commited on
Commit
1474f05
·
verified ·
1 Parent(s): 8b05216

Update templates/cart.html

Browse files
Files changed (1) hide show
  1. 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
- text-align: left;
115
- margin-top: 15px;
116
- padding: 20px;
117
- background-color: #fff;
118
- border-radius: 12px;
119
- box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
120
- }
121
- .bill-details {
122
- display: grid;
123
- grid-template-columns: 1fr 1fr; /* Two-column layout */
124
- grid-gap: 10px;
125
- margin-bottom: 10px;
126
- }
127
- .bill-details .label {
128
- font-weight: 600;
129
- font-size: 1rem;
130
- }
131
- .bill-details .amount {
132
- text-align: right;
133
- font-weight: 600;
134
- font-size: 1rem;
135
- }
136
- .dotted-line {
137
- border-bottom: 2px dotted #ccc;
138
- margin: 15px 0;
139
- }
140
- .total-bill {
141
- display: grid;
142
- grid-template-columns: 1fr 1fr;
143
- font-weight: 600;
144
- font-size: 1.2rem;
145
- margin-top: 10px;
146
- }
147
- .total-bill .label {
148
- font-size: 1.1rem;
149
- }
150
- .total-bill .amount {
151
- text-align: right;
152
- font-size: 1.1rem;
153
- color: #0FAA39; /* Green color for total */
154
- }
155
- .checkout-button {
156
- background-color: #0FAA39;
157
- color: #fff;
158
- padding: 12px;
159
- border-radius: 8px;
160
- border: none;
161
- width: 100%;
162
- font-size: 1.2rem;
163
- cursor: pointer;
164
- transition: background-color 0.3s, color 0.3s;
165
- }
166
 
167
  .suggestion-section {
168
  margin-top: 20px;
@@ -171,37 +175,37 @@
171
  border-radius: 10px;
172
  }
173
  .suggestion-item {
174
- display: flex;
175
- align-items: center; /* Vertically align image and text */
176
- justify-content: space-between; /* Space between the image/text and the button */
177
- padding: 10px 0;
178
- }
179
- .suggestion-item img {
180
- width: 50px;
181
- height: 50px;
182
- object-fit: cover;
183
- border-radius: 5px;
184
- margin-right: 10px; /* Spacing between the image and the text */
185
- }
186
- .suggestion-item div {
187
- display: flex;
188
- flex-direction: column;
189
- justify-content: center;
190
- flex-grow: 1; /* Allow the text to take up the available space */
191
- }
192
- .suggestion-item button {
193
- padding: 5px 15px;
194
- font-size: 0.9rem;
195
- border-radius: 5px;
196
- border: 2px solid #0FAA39;
197
- color: #0FAA39;
198
- background-color: #fff;
199
- font-weight: 600;
200
- height: 44px;
201
- cursor: pointer;
202
- transition: background-color 0.3s, color 0.3s, border-color 0.3s;
203
- margin-left: auto; /* Push button to the right */
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>