File tree Expand file tree Collapse file tree 9 files changed +331
-110
lines changed Expand file tree Collapse file tree 9 files changed +331
-110
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,21 @@ body {
120
120
}
121
121
122
122
/* Shopping Cart */
123
+ # shopping-cart-button {
124
+ position : relative;
125
+ }
126
+
127
+ # shopping-cart-button .quantity-badge {
128
+ display : inline-block;
129
+ padding : 1px 5px ;
130
+ background-color : red;
131
+ border-radius : 6px ;
132
+ font-size : 0.8rem ;
133
+ position : absolute;
134
+ top : 0px ;
135
+ right : -10px ;
136
+ }
137
+
123
138
.shopping-cart {
124
139
position : absolute;
125
140
top : 100% ;
@@ -147,30 +162,85 @@ body {
147
162
}
148
163
149
164
.shopping-cart img {
150
- height : 6 rem ;
165
+ height : 4 rem ;
151
166
border-radius : 50% ;
152
167
}
153
168
154
169
.shopping-cart h3 {
155
170
font-size : 1.4rem ;
156
- padding-bottom : 0.5rem ;
157
171
}
158
172
159
173
.shopping-cart .item-price {
160
174
font-size : 1rem ;
161
175
}
162
176
163
- .shopping-cart .remove -item {
164
- position : absolute;
165
- right : 1 rem ;
166
- font-size : 1.2 rem ;
177
+ .shopping-cart .cart -item # add ,
178
+ . shopping-cart . cart-item # remove {
179
+ display : inline-block ;
180
+ padding : 2 px 5 px ;
167
181
cursor : pointer;
168
- color : var (--bg );
169
- transition : 0.3s ;
182
+ margin : 0 8px ;
183
+ background-color : var (--primary );
184
+ color : white;
185
+ font-weight : bold;
186
+ font-size : 1rem ;
187
+ border-radius : 6px ;
170
188
}
171
189
172
- .shopping-cart .remove-item : hover {
173
- color : var (--primary );
190
+ .shopping-cart h4 {
191
+ font-size : 1.6rem ;
192
+ margin-top : -1rem ;
193
+ text-align : center;
194
+ }
195
+
196
+ /* Checkout Form */
197
+ .form-container {
198
+ width : 100% ;
199
+ display : flex;
200
+ justify-content : center;
201
+ border-top : 1px dashed black;
202
+ margin-top : 1rem ;
203
+ padding : 1rem ;
204
+ }
205
+
206
+ .form-container h5 {
207
+ text-align : center;
208
+ font-size : 1rem ;
209
+ }
210
+
211
+ .form-container form {
212
+ width : 100% ;
213
+ text-align : center;
214
+ }
215
+
216
+ .form-container label {
217
+ display : flex;
218
+ justify-content : space-around;
219
+ align-items : center;
220
+ margin : 1rem 0 ;
221
+ }
222
+
223
+ .form-container span {
224
+ text-align : right;
225
+ }
226
+
227
+ .form-container input {
228
+ background-color : # ddd ;
229
+ padding : 5px ;
230
+ font-size : 0.9rem ;
231
+ width : 70% ;
232
+ }
233
+
234
+ .form-container .checkout-button {
235
+ display : block;
236
+ padding : 6px 14px ;
237
+ background-color : var (--primary );
238
+ color : white;
239
+ font-weight : bold;
240
+ font-size : 0.9rem ;
241
+ border-radius : 20px ;
242
+ margin : 1rem auto;
243
+ cursor : pointer;
174
244
}
175
245
176
246
/* Hero Section */
@@ -408,12 +478,6 @@ body {
408
478
font-weight : 700 ;
409
479
}
410
480
411
- .products .product-price span {
412
- text-decoration : line-through;
413
- font-weight : lighter;
414
- font-size : 1rem ;
415
- }
416
-
417
481
/* Contact Section */
418
482
.contact .row {
419
483
display : flex;
You can’t perform that action at this time.
0 commit comments