Skip to content

Commit 0b0d666

Browse files
committed
Responding to Smaller Tablets
1 parent 14e4052 commit 0b0d666

File tree

3 files changed

+39
-8
lines changed

3 files changed

+39
-8
lines changed

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,35 @@
172172
font-size: 3rem;
173173
}
174174
}
175+
176+
/**************************/
177+
/* Below 704px (Smaller Tablets) */
178+
/**************************/
179+
@media (max-width: 44em) {
180+
.grid--3-cols,
181+
.grid--4-cols {
182+
grid-template-columns: repeat(2, 1fr);
183+
}
184+
.diets {
185+
grid-column: 1 / -1;
186+
justify-self: center;
187+
}
188+
.heading-primary {
189+
margin-bottom: 4.8rem;
190+
}
191+
.pricing-plan {
192+
width: 100%;
193+
}
194+
.grid--footer {
195+
grid-template-columns: repeat(6, 1fr);
196+
}
197+
.logo-col,
198+
.address-col {
199+
grid-column: span 3;
200+
}
201+
.nav-col {
202+
grid-row: 1;
203+
grid-column: span 2;
204+
margin-bottom: 3.2rem;
205+
}
206+
}

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -382,26 +382,25 @@
382382
padding: 9.6rem 0;
383383
}
384384

385-
.princing-plan {
385+
.pricing-plan {
386386
border-radius: 11px;
387-
388387
width: 75%;
389388
}
390389

391-
.princing-plan--starter {
390+
.pricing-plan--starter {
392391
justify-self: end;
393392
border: 2px solid #fdf2e9;
394393
padding: 4.6rem;
395394
}
396395

397-
.princing-plan--complete {
396+
.pricing-plan--complete {
398397
background-color: #fdf2e9;
399398
padding: 4.8rem;
400399
position: relative;
401400
overflow: hidden;
402401
}
403402

404-
.princing-plan--complete::after {
403+
.pricing-plan--complete::after {
405404
content: "Best value";
406405
position: absolute;
407406
top: 6%;

starter/08-Omnifood-Responsive/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<title>Omnifood</title>
2828
</head>
2929
<body>
30-
<header class="header nav-open">
30+
<header class="header">
3131
<a href="#">
3232
<img class="logo" alt="Omnifood logo" src="img/omnifood-logo.png" />
3333
</a>
@@ -454,7 +454,7 @@ <h2 class="heading-secondary">
454454
</div>
455455

456456
<div class="container grid grid--2-cols margin-bottom-md">
457-
<div class="princing-plan princing-plan--starter">
457+
<div class="pricing-plan pricing-plan--starter">
458458
<header class="plan-header">
459459
<p class="plan-name">Starter</p>
460460
<p class="plan-price"><span>$</span>399</p>
@@ -482,7 +482,7 @@ <h2 class="heading-secondary">
482482
</div>
483483
</div>
484484

485-
<div class="princing-plan princing-plan--complete">
485+
<div class="pricing-plan pricing-plan--complete">
486486
<header class="plan-header">
487487
<p class="plan-name">Complete</p>
488488
<p class="plan-price"><span>$</span>649</p>

0 commit comments

Comments
 (0)