-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckout.css
290 lines (270 loc) · 5.65 KB
/
checkout.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
body{
/* font-family: monospace;
overflow-x: hidden;
font-synthesis: 15px; */
background-color:#c8ecc4;
}
a{
text-decoration: none;
}
.containerchekout{
width: 1200px;
margin: auto;
max-width: 90%;
transition: transform 1s;
}
.unanamed img{
width: 30px;
margin-left: 5px;
transform: translateX(5px);
}
.unanamed{
display: flex;
align-items: center;
justify-content: space-between;
}
.unanamed h1{
font-size: 25px;
text-align: center;
font-weight: bold;
}
.unanamed .iconCart{
position: relative;
z-index: 1;
}
.unanamed .totalQuantity{
position: absolute;
top: 0;
right: 0;
font-size:10px;
background-color: #0dcc4d;
width: 20px;
height: 20px;
color: #fff;
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
transform: translateX(20px);
}
.listProduct{
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.listProduct .item img{
width: 100%;
/* height: 200px;
height: 200px; */
object-fit: cover;
}
.listProduct .item{
position: relative;
margin-bottom: 10px;
}
.listProduct .item h2{
font-weight: 700;
font-size: x-large;
}
.listProduct .item .price{
font-size: x-large;
}
.listProduct .item button{
position: absolute;
top: 50px;
left: 40px;
background-color: green;
color: #fff;
width: 90px;
border: none;
padding: 10px 10px;
box-shadow: 0 10px 50px #000;
cursor: pointer;
transform: translateX(200px) , translateY(40px);
opacity: 0;
}
.listProduct .item:hover button{
transition: 0.5s;
opacity: 1;
transform: translateX(2%) translateY(0);
transform: scale(1.1);
}
.cart{
color: #fff;
position: fixed;
width: 400px;
max-width: 80vw;
height: 100vh;
background-color: #0E0F11;
top: 0px;
right: -100%;
display: grid;
grid-template-rows: 50px 1fr 50px;
gap: 20px;
transition: right 1s;
}
.cart .buttons .checkout{
background-color:#49D8B9 ;
color: #000;
}
.cart h2{
color: green;
padding: 20px;
height: 30px;
margin: 0;
}
.cart .listCart .item{
display: grid;
grid-template-columns: 50px 1fr 70px;
align-items: center;
gap: 20px;
margin-bottom: 20px;
}
.cart .listCart img{
width: 100%;
height: 70px;
object-fit: cover;
border-radius: 10px;
}
.cart .listCart .item .name{
font-weight: bold;
color: green;
}
.cart .listCart .item .quantity{
display: flex;
justify-content: end;
align-items: center;
}
.cart .listCart .item .quantity span{
display: block;
width: 50px;
text-align: center;
}
.cart .listCart{
padding: 20px;
overflow: auto;
}
.cart .listCart::-webkit-scrollbar{
width: 0;
}
.cart .buttons{
display: grid;
grid-template-columns: repeat(2, 1fr);
text-align: center;
}
.cart .buttons div{
background-color: #000;
display: flex;
justify-content: center;
align-items: center;
font-weight: bold;
cursor: pointer;
}
.cart .buttons a{
color: #fff;
text-decoration: none;
}
.checkoutLayout{
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 50px;
padding: 20px;
}
.checkoutLayout .right{
background-color: #0dcc4d;
border-radius: 20px;
padding: 40px;
color: #fff;
}
.checkoutLayout .right .form{
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
border-bottom: 1px solid #7a7fe2;
padding-bottom: 20px;
}
.checkoutLayout .form h1,
.checkoutLayout .form .group:nth-child(-n+3){
grid-column-start: 1;
grid-column-end: 3;
}
.checkoutLayout .form input,
.checkoutLayout .form select
{
width: 100%;
padding: 10px 20px;
box-sizing: border-box;
border-radius: 20px;
margin-top: 10px;
border:none;
background-color: #93b3ae;
color: #fff;
}
.checkoutLayout .right .return .row{
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10px;
}
.checkoutLayout .right .return .row div:nth-child(2){
font-weight: bold;
font-size: x-large;
}
.buttonCheckout{
width: 100%;
height: 40px;
border: none;
border-radius: 20px;
background-color: red;
margin-top: 20px;
font-weight: bold;
color: #fff;
}
.returnCart h1{
border-top: 1px solid #eee;
padding: 20px 0;
text-align: center;
color: #fff;
border-radius: 2%;
background-color: green;
}
.returnCart .list .item img{
height: 80px;
}
.returnCart .list .item{
display: grid;
grid-template-columns: 80px 1fr 50px 80px;
align-items: center;
gap: 20px;
margin-bottom: 30px;
padding: 0 10px;
box-shadow: 0 10px 20px #5555;
border-radius: 20px;
}
.returnCart .list .item .name,
.returnCart .list .item .returnPrice{
font-size: large;
font-weight: bold;
}
.listProduct .item img{
max-width: 200px;
max-height: 100px;
}
@media only screen and (max-width: 768px) {
.checkoutLayout .right{
padding: 40px;
transform: translateX(-200px)
translateY(250px);
margin-left: -100%;
height: 70%;
}
.buttonCheckout{
width: 90px;
height: 40px;
border: none;
border-radius: 20px;
margin-top: 20px;
font-weight: bold;
}
}