Skip to content

Commit 1687714

Browse files
committed
Building the smaller tablets
1 parent 4d4111b commit 1687714

File tree

3 files changed

+44
-5
lines changed

3 files changed

+44
-5
lines changed

starter/07-Omnifood-Desktop/css/general.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,6 @@ body {
110110
grid-template-columns: repeat(4, 1fr);
111111
}
112112

113-
.grid--5-cols {
114-
grid-template-columns: repeat(5, 1fr);
115-
}
116-
117113
.heading-primary,
118114
.heading-secondary,
119115
.heading-tertiary {

starter/07-Omnifood-Desktop/css/queries.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,47 @@ Instead, 1rem = 1em = 16px */
170170
.main-nav-link:visited {
171171
font-size: 3rem;
172172
}
173+
174+
.pricing-plan {
175+
width: 85%;
176+
}
177+
}
178+
179+
/*************************************/
180+
/* BELOW 704px (Smaller tablets) */
181+
/*************************************/
182+
183+
@media (max-width: 44em) {
184+
.heading-secondary {
185+
margin-bottom: 4.8rem;
186+
}
187+
188+
.grid--3-cols,
189+
.grid--4-cols {
190+
grid-template-columns: repeat(2, 1fr);
191+
}
192+
193+
.diets {
194+
grid-column: 1 / -1;
195+
justify-self: center;
196+
}
197+
198+
.pricing-plan {
199+
width: 100%;
200+
}
201+
202+
.grid--footer {
203+
grid-template-columns: repeat(6, 1fr);
204+
}
205+
206+
.nav-col {
207+
grid-row: 1;
208+
grid-column: span 2;
209+
margin-bottom: 3.2rem;
210+
}
211+
212+
.logo-col,
213+
.address-col {
214+
grid-column: span 3;
215+
}
173216
}

starter/07-Omnifood-Desktop/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<link rel="stylesheet" href="css/queries.css" />
1919
</head>
2020
<body>
21-
<header class="header nav-open">
21+
<header class="header">
2222
<a href="#">
2323
<img src="img/omnifood-logo.png" alt="Omnifood logo" class="logo" />
2424
</a>

0 commit comments

Comments
 (0)