Skip to content

Commit ae0ad07

Browse files
committed
feat: responding to small laptops
1 parent bcb4fe0 commit ae0ad07

File tree

2 files changed

+21
-0
lines changed

2 files changed

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

starter/07-Omnifood-Desktop/index.html

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

1616
<link rel="stylesheet" href="css/general.css" />
1717
<link rel="stylesheet" href="css/style.css" />
18+
<link rel="stylesheet" href="css/queries.css" />
1819
</head>
1920
<body>
2021
<header class="header">

0 commit comments

Comments
 (0)