-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
189 lines (181 loc) · 3.45 KB
/
style.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
header {
background-color: #00a65a; /* Background color */
color: white; /* Text color */
padding: 10px 0; /* Padding top and bottom */
text-align: center; /* Center-align text */
}
/* Style for the shop name */
h1 {
font-family: 'Pacifico', cursive;
font-size: 24px; /* Font size */
margin: 0; /* Remove default margin */
}/* Style the navigation bar */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #333;
color: white;
padding: 10px 20px;
}
/* Style the logo (left side) */
.logo {
width: 0px;
height: 20px;
object-fit: contain;
}
/* Style the navigation links (right side) */
.nav-links {
list-style: none;
margin: 0;
padding: 0;
display: flex;
}
.nav-links li {
margin-right: 20px;
}
.nav-links a {
text-decoration: none;
color: white;
font-weight: bold;
}body{
background-color: #E3E7E8;
font-family: system-ui;
}
.container{
width: 1000px;
margin: auto;
transition: 0.5s;
}
header{
display: grid;
grid-template-columns: 1fr 50px;
margin-top: 50px;
}
header .shopping{
position: relative;
text-align: right;
}
header .shopping img{
width: 40px;
}
header .shopping span{
background: red;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
position: absolute;
top: -5px;
left: 80%;
padding: 3px 10px;
}
.list{
display: grid;
grid-template-columns: repeat(3, 1fr);
column-gap: 20px;
row-gap: 20px;
margin-top: 50px;
}
.list .item{
text-align: center;
background-color: #DCE0E1;
padding: 20px;
box-shadow: 0 50px 50px #757676;
letter-spacing: 1px;
}
.list .item img{
width: 90%;
height: 430px;
object-fit: cover;
}
.list .item .title{
font-weight: 600;
}
.list .item .price{
margin: 10px;
}
.list .item button{
background-color: #1C1F25;
color: #fff;
width: 100%;
padding: 10px;
}
.card{
position: fixed;
top:0;
left: 100%;
width: 500px;
background-color: #453E3B;
height: 100vh;
transition: 0.5s;
}
.active .card{
left: calc(100% - 500px);
}
.active .container{
transform: translateX(-200px);
}
.card h1{
color: #E8BC0E;
font-weight: 100;
margin: 0;
padding: 0 20px;
height: 80px;
display: flex;
align-items: center;
}
.card .checkOut{
position: absolute;
bottom: 0;
width: 100%;
display: grid;
grid-template-columns: repeat(2, 1fr);
}
.card .checkOut div{
background-color: #E8BC0E;
width: 100%;
height: 70px;
display: flex;
justify-content: center;
align-items: center;
font-weight: bold;
cursor: pointer;
}
.card .checkOut div:nth-child(2){
background-color: #1C1F25;
color: #fff;
}
.listCard li{
display: grid;
grid-template-columns: 100px repeat(3, 1fr);
color: #fff;
row-gap: 10px;
}
.listCard li div{
display: flex;
justify-content: center;
align-items: center;
}
.listCard li img{
width: 90%;
}
.listCard li button{
background-color: #fff5;
border: none;
}
.listCard .count{
margin: 0 10px;
}
footer {
background-color: #333; /* Background color */
color: #fff; /* Text color */
padding: 10px 0; /* Padding */
text-align: center; /* Center-align text */
}
/* Style the copyright text */
footer p {
margin: 0; /* Remove default margin */
font-size: 18px; /* Font size */
}