Skip to content

Commit 37f8c88

Browse files
Fixed navigation overlay menu getting too low on landscape view (mobiles).
1 parent 8aea90e commit 37f8c88

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

_sass/style.scss

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,20 +197,29 @@ a {
197197
margin-top: 30px;
198198
}
199199

200-
@media screen and (max-width: 850px) and (orientation: landscape) {
200+
@media screen and (max-width: 767px) and (orientation: landscape) {
201201
.navigation__overlay-content {
202202
top: 15%;
203203
}
204204
}
205205

206206
.navigation__overlay .navigation__link {
207-
padding: 0.25em;
208207
text-decoration: none;
209208
font-size: 2em;
210209
font-family: 'Encode Sans Expanded', sans-serif;
211210
color: #818181;
212211
display: block;
213-
transition: 0.4s;
212+
transition: all 0.5s ease-in-out;
213+
}
214+
215+
@media (max-width: 767px) and (orientation: landscape) {
216+
padding: 0;
217+
}
218+
219+
@media (min-width: 768px), (orientation: portrait) {
220+
.navigation__overlay .navigation__link {
221+
padding: 0.25em;
222+
}
214223
}
215224

216225
.navigation__link:hover {
@@ -363,6 +372,7 @@ a {
363372
color: #7fa0c2;
364373
border: #035E9A 1px solid;
365374
min-width: 30%;
375+
transition: all 0.5s ease-in-out;
366376
&:hover {
367377
color: antiquewhite;
368378
background: rgba(0, 0, 0, 0.4);

0 commit comments

Comments
 (0)