File tree Expand file tree Collapse file tree 1 file changed +69
-0
lines changed
starter/07-Omnifood-Desktop/css Expand file tree Collapse file tree 1 file changed +69
-0
lines changed Original file line number Diff line number Diff line change @@ -219,3 +219,72 @@ font size in html media queries
219
219
grid-column : span 3 ;
220
220
}
221
221
}
222
+
223
+ /**********************/
224
+ /* Below 544px - Phones */
225
+ /**********************/
226
+
227
+ @media (max-width : 34em ) {
228
+ .grid {
229
+ row-gap : 4.8rem ;
230
+ }
231
+
232
+ .grid--2-cols ,
233
+ .grid--3-cols ,
234
+ .grid--4-cols ,
235
+ .testimonials ,
236
+ .cta {
237
+ grid-template-columns : 1fr ;
238
+ }
239
+
240
+ .hero {
241
+ padding : 0 3.2rem ;
242
+ }
243
+
244
+ .section-hero {
245
+ padding : 2.4rem 0 6.4rem 0 ;
246
+ }
247
+
248
+ .btn ,
249
+ .btn : link ,
250
+ .btn : visited {
251
+ padding : 2.4rem 1.6rem ;
252
+ }
253
+
254
+ .hero-img {
255
+ width : 80% ;
256
+ }
257
+
258
+ .logos img {
259
+ height : 1.2rem ;
260
+ }
261
+
262
+ /* 2 is the number of the child in the container
263
+ not of the class
264
+ */
265
+ .step-img-box : nth-child (2 ) {
266
+ grid-row : 1 ;
267
+ }
268
+
269
+ .step-img-box : nth-child (6 ) {
270
+ grid-row : 5 ;
271
+ }
272
+
273
+ .step-img-box {
274
+ transform : translateY (2.4rem );
275
+ }
276
+
277
+ .gallery {
278
+ grid-template-columns : repeat (4 , 1fr );
279
+ gap : 1.2rem ;
280
+ }
281
+
282
+ .cta-text-box {
283
+ padding : 3.2rem ;
284
+ }
285
+
286
+ .cta-img-box {
287
+ height : 32rem ;
288
+ grid-row : 1 ;
289
+ }
290
+ }
You can’t perform that action at this time.
0 commit comments