Skip to content

Commit b044aaa

Browse files
committed
Responding to Small Laptops
1 parent cdee258 commit b044aaa

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* rem and em do NOT depend on html font-size in media queries!
2+
Instead, 1rem = 1em = 16px */
3+
4+
/* 1350 / 16 = 84.375 */
5+
6+
/**************************/
7+
/* Below 1344px (Smaller desktops) */
8+
/**************************/
9+
@media (max-width: 84em) {
10+
.hero {
11+
max-width: 120rem;
12+
}
13+
.heading-primary {
14+
font-size: 4.4rem;
15+
}
16+
.gallery {
17+
grid-template-columns: repeat(2, 1fr);
18+
}
19+
}

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,6 @@
6565
padding: 4.8rem 0 9.6rem 0;
6666
}
6767

68-
@media (max-width: 1200px) {
69-
.section-hero {
70-
background-color: orangered;
71-
}
72-
}
73-
74-
@media (max-width: 600px) {
75-
.section-hero {
76-
border: 20px dashed blue;
77-
background-color: greenyellow;
78-
}
79-
}
80-
8168
.hero {
8269
max-width: 130rem;
8370
margin: 0 auto;

starter/08-Omnifood-Responsive/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
<link rel="stylesheet" href="css/general.css" />
1515
<link rel="stylesheet" href="css/style.css" />
16+
<link rel="stylesheet" href="css/queries.css" />
1617

1718
<script
1819
type="module"

0 commit comments

Comments
 (0)