Skip to content

Commit 4a08160

Browse files
committed
Responding to Tablets
1 parent 7b4f6dc commit 4a08160

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ body {
249249
display: flex;
250250
align-items: center;
251251
gap: 1.6rem;
252+
line-height: 1.2;
252253
}
253254

254255
.list-icon {

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

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,67 @@
5757
padding: 9.6rem 3.2rem;
5858
}
5959
}
60+
61+
/* 59 * 16 = 944px
62+
/**************************/
63+
/* Below 944px (Tablets) */
64+
/**************************/
65+
@media (max-width: 59em) {
66+
html {
67+
/* 8px / 16px = 0.5 = 50% */
68+
font-size: 50%;
69+
}
70+
71+
.hero {
72+
grid-template-columns: 1fr;
73+
padding: 0 8rem;
74+
gap: 6.4rem;
75+
}
76+
77+
.hero-text-box,
78+
.hero-img-box {
79+
text-align: center;
80+
}
81+
82+
.hero-img {
83+
width: 60%;
84+
}
85+
86+
.delivered-meals {
87+
justify-content: center;
88+
margin-top: 3.2rem;
89+
}
90+
91+
.logos img {
92+
height: 2.4rem;
93+
}
94+
95+
.step-number {
96+
font-size: 7.4rem;
97+
}
98+
99+
.meal-content {
100+
padding: 2.4rem 3.2rem 3.2rem 3.2rem;
101+
}
102+
103+
.section-testimonials {
104+
grid-template-columns: 1fr;
105+
}
106+
107+
.gallery {
108+
grid-template-columns: repeat(6, 1fr);
109+
}
110+
111+
.cta {
112+
/* 3/5 = 60% 2/5= 40% */
113+
grid-template-columns: 3fr 2fr;
114+
}
115+
116+
.cta-form {
117+
grid-template-columns: 1fr;
118+
}
119+
120+
.btn--form {
121+
margin-top: 1.2rem;
122+
}
123+
}

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

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

478478
.cta {
479479
display: grid;
480+
/* 2/3 = 66.6% 1/3 = 33.3% */
480481
grid-template-columns: 2fr 1fr;
481482
/* background-color: #e67e22; */
482483
box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.15);

0 commit comments

Comments
 (0)