Skip to content

Commit 747db6c

Browse files
committed
Shifted extra mobile section height to tablet
1 parent f682aef commit 747db6c

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/index.scss

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ $mobile-width: 750px;
1414
@mixin desktop {
1515
@media(min-width: #{$desktop-width}) { @content; }
1616
}
17+
@mixin tablet-only {
18+
@media(max-width: #{$desktop-width}) { @media(min-width: #{$mobile-width}) {@content; } }
19+
}
1720
/*tablet mixin also applies to mobile*/
1821
@mixin tablet {
1922
@media(max-width: #{$desktop-width}) { @content; }
@@ -167,11 +170,13 @@ html, body, #root, #app, .full-height {
167170
}
168171

169172
.section {
170-
height: 100%;
171173
display: flex;
172174
flex-direction: column;
173175
@include desktop {
174-
min-height: 775px;
176+
min-height: 750px;
177+
}
178+
@include tablet-only {
179+
height: calc(100% - 74.5px);
175180
}
176181
}
177182

@@ -196,7 +201,7 @@ html, body, #root, #app, .full-height {
196201
@extend .right-half;
197202
margin-bottom: 2.5vh;
198203

199-
@include tablet {
204+
@include tablet-only {
200205
margin-bottom: 20vh;
201206
}
202207
}

0 commit comments

Comments
 (0)