-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
259 lines (251 loc) · 4.02 KB
/
styles.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
/*
===============
Fonts
===============
*/
@import url('https://fonts.googleapis.com/css?family=Open+Sans|Roboto:400,700&display=swap');
/*
===============
Global Styles
===============
*/
*,
::after,
::before {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "'Open Sans', sans-serif;";
background: hsl(210, 36%, 96%);
color: hsl(209, 61%, 16%);
line-height: 1.5;
font-size: 0.875rem;
}
ul {
list-style-type: none;
}
a {
text-decoration: none;
}
img:not(.logo) {
width: 100%;
}
img {
display: block;
}
h1,
h2,
h3,
h4 {
letter-spacing: 0.25rem;
text-transform: capitalize;
line-height: 1.25;
margin-bottom: 0.75rem;
font-family: 'Roboto', sans-serif;
}
h1 {
font-size: 3rem;
}
h2 {
font-size: 2rem;
}
h3 {
font-size: 1.25rem;
}
h4 {
font-size: 0.875rem;
}
p {
margin-bottom: 1.25rem;
color: hsl(210, 22%, 49%);
}
@media screen and (min-width: 800px) {
h1 {
font-size: 4rem;
}
h2 {
font-size: 2.5rem;
}
h3 {
font-size: 1.75rem;
}
h4 {
font-size: 1rem;
}
body {
font-size: 1rem;
}
h1,
h2,
h3,
h4 {
line-height: 1;
}
}
/* global classes */
.btn {
text-transform: uppercase;
background: transparent;
color: #222;
padding: 0.375rem 0.75rem;
letter-spacing: 0.25rem;
display: inline-block;
transition: all 0.3s linear;
font-size: 0.875rem;
border: 2px solid #222;
cursor: pointer;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
border-radius: 0.5rem;
}
.btn:hover {
color: #fff;
background: #222;
}
/* section */
.section {
padding: 5rem 0;
}
main {
min-height: 100vh;
display: grid;
place-items: center;
}
.header {
background-color: hsl(205, 65%, 87%);
padding-top: 3rem;
overflow: hidden;
position: fixed;
top: 0;
width: 100%;
z-index: 1;
}
.product {
padding-bottom: 5rem;
}
.title {
text-align: center;
margin-bottom: 2rem;
color: #e75915;
}
.underline {
width: 5rem;
height: 0.25rem;
background: hsl(211, 39%, 23%);
margin-left: auto;
margin-right: auto;
}
.btn-container {
margin-bottom: 1.5rem;
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.colorfulBand {
display: flex;
flex-direction: row;
height: 8px;
background: linear-gradient(
to right,
#7622da 0%,
#7622da 11%,
#47c6eb 11%,
#47c6eb 29%,
#ed5f1f 29%,
#ed5f1f 60%,
#f59f28 60%,
#f59f28 75%,
#6b1e5b 75% 88%,
#45b794 88%,
#45b794 100%
);
}
.filter-btn {
background: transparent;
border-color: blue;
font-size: 1rem;
text-transform: capitalize;
margin: 0.5rem 0.5rem;
letter-spacing: 1px;
border-radius: 0.5rem;
padding: 0.375rem 0.75rem;
cursor: pointer;
transition: all 0.3s linear;
}
.filter-btn:hover {
background: blue;
color: #fff;
}
.section-center {
width: 100vw;
margin: 0 auto;
max-width: 1600px;
display: grid;
gap: 3rem 2rem;
justify-items: center;
margin-top: 280px;
}
.product-item {
display: grid;
gap: 1rem 2rem;
max-width: 30rem;
position: relative;
padding: 5px;
border: 2px solid rgb(208, 203, 203);
border-radius: 5px;
/* height:200px; */
}
.product-item:hover {
background-color: rgb(208, 203, 203);
cursor: pointer;
transition: all 0.3s linear;
}
.photo {
object-fit: fill;
width: 250px;
/* height: 200px; */
border: 0.25rem solid;
/* border-radius: 0.5rem; */
border-bottom-left-radius: 1rem;
border-top-right-radius: 1rem;
}
.item-info header {
border-bottom: 0.5px dashed hsl(210, 22%, 49%);
}
.item-info h4 {
margin-bottom: 0.5rem;
}
.price {
color: #f27a1a;
position: absolute;
bottom: 0;
right: 0;
}
.item-text {
margin-bottom: 0;
padding-top: 1rem;
}
@media screen and (min-width: 768px) {
.section-center {
width: 95vw;
grid-template-columns: 1fr 1fr;
}
.product-item {
grid-template-columns: 1fr 1fr;
gap: 0 1.25rem;
max-width: 40rem;
}
.photo {
height: 175px;
}
}
@media screen and (min-width: 1200px) {
.section-center {
width: 95vw;
grid-template-columns: 1fr 1fr 1fr;
}
/* .photo {
height: 200px;
} */
}