-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcart_style.css
More file actions
155 lines (152 loc) · 2.72 KB
/
Copy pathcart_style.css
File metadata and controls
155 lines (152 loc) · 2.72 KB
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
body{
margin: 0;
font-family: Poppins;
}
.container{
width: 900px;
margin: auto;
max-width: 90vw;
text-align: center;
padding-top: 10px;
transition: transform .5s;
}
svg{
width: 30px;
}
header{
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
}
.icon-cart{
position: relative;
}
.icon-cart span{
position: absolute;
background-color: red;
width: 30px;
height: 30px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
color: #fff;
top: 50%;
right: -20px;
}
.title{
font-size: xx-large;
}
.listProduct .item img{
width: 90%;
filter: drop-shadow(0 50px 20px #0009);
}
.listProduct{
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
.listProduct .item{
background-color: #EEEEE6;
padding: 20px;
border-radius: 20px;
}
.listProduct .item h2{
font-weight: 500;
font-size: large;
}
.listProduct .item .price{
letter-spacing: 7px;
font-size: small;
}
.listProduct .item button{
background-color: #353432;
color: #eee;
border: none;
padding: 5px 10px;
margin-top: 10px;
border-radius: 20px;
}
/* cart */
.cartTab{
width: 400px;
background-color: #353432;
color: #eee;
position: fixed;
top: 0;
right: -400px;
bottom: 0;
display: grid;
grid-template-rows: 70px 1fr 70px;
transition: .5s;
}
body.showCart .cartTab{
right: 0;
}
body.showCart .container{
transform: translateX(-250px);
}
.cartTab h1{
padding: 20px;
margin: 0;
font-weight: 300;
}
.cartTab .btn{
display: grid;
grid-template-columns: repeat(2, 1fr);
}
.cartTab button{
background-color: #E8BC0E;
border: none;
font-family: Poppins;
font-weight: 500;
cursor: pointer;
}
.cartTab .close{
background-color: #eee;
}
.listCart .item img{
width: 100%;
}
.listCart .item{
display: grid;
grid-template-columns: 70px 150px 50px 1fr;
gap: 10px;
text-align: center;
align-items: center;
}
.listCart .quantity span{
display: inline-block;
width: 25px;
height: 25px;
background-color: #eee;
border-radius: 50%;
color: #555;
cursor: pointer;
}
.listCart .quantity span:nth-child(2){
background-color: transparent;
color: #eee;
cursor: auto;
}
.listCart .item:nth-child(even){
background-color: #eee1;
}
.listCart{
overflow: auto;
}
.listCart::-webkit-scrollbar{
width: 0;
}
@media only screen and (max-width: 992px) {
.listProduct{
grid-template-columns: repeat(3, 1fr);
}
}
/* mobile */
@media only screen and (max-width: 768px) {
.listProduct{
grid-template-columns: repeat(2, 1fr);
}
}