Skip to content

Commit 16680bb

Browse files
committed
Responding to Phones
1 parent 0b0d666 commit 16680bb

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

starter/08-Omnifood-Responsive/css/queries.css

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,71 @@
204204
margin-bottom: 3.2rem;
205205
}
206206
}
207+
208+
/**************************/
209+
/* Below 544px (Phones) */
210+
/**************************/
211+
@media (max-width: 34em) {
212+
.grid {
213+
row-gap: 4.8rem;
214+
}
215+
216+
.grid--2-cols,
217+
.grid--3-cols,
218+
.grid--4-cols {
219+
grid-template-columns: 1fr;
220+
}
221+
222+
.btn,
223+
.btn:link,
224+
.btn:visited {
225+
padding: 2.4rem 1.6rem;
226+
}
227+
228+
.section-hero {
229+
padding: 2.4rem 0 6.4rem 0;
230+
}
231+
232+
.hero {
233+
padding: 0 3.2rem;
234+
}
235+
236+
.hero-img {
237+
width: 80%;
238+
}
239+
240+
.logos img {
241+
height: 1.2rem;
242+
}
243+
244+
.step-img-box:nth-child(2) {
245+
grid-row: 1;
246+
}
247+
.step-img-box:nth-child(6) {
248+
grid-row: 5;
249+
}
250+
.step-img-box {
251+
transform: translateY(2.4rem);
252+
}
253+
254+
.testimonials {
255+
grid-template-columns: 1fr;
256+
}
257+
.gallery {
258+
grid-template-columns: repeat(4, 1fr);
259+
gap: 1.2rem;
260+
}
261+
262+
.cta {
263+
grid-template-columns: 1fr;
264+
}
265+
266+
.cta-text-box {
267+
padding: 3.2rem;
268+
}
269+
270+
.cta-img-box {
271+
height: 32rem;
272+
grid-row: 1;
273+
}
274+
}

0 commit comments

Comments
 (0)