Skip to content

Commit da3dbc4

Browse files
authored
new media query for mobile nav (#1123)
1 parent c8e6d4c commit da3dbc4

File tree

1 file changed

+28
-24
lines changed

1 file changed

+28
-24
lines changed

sass/main.scss

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,11 +1197,38 @@ footer {
11971197
}
11981198
}
11991199

1200-
@media screen and (max-width: 900px) {
1200+
@media screen and (max-width: 955px) {
12011201

12021202
// Redefine only for mobile
12031203
$nav-height: 60px;
12041204

1205+
nav {
1206+
height: $nav-height;
1207+
position: absolute;
1208+
1209+
#logo img {
1210+
width: $nav-height;
1211+
height: $nav-height;
1212+
}
1213+
1214+
#mlh-badge {
1215+
width: 90px;
1216+
}
1217+
1218+
.link {
1219+
display: none;
1220+
}
1221+
1222+
#login {
1223+
padding: 8px 30px;
1224+
margin: 0;
1225+
font-size: 0.8em;
1226+
}
1227+
}
1228+
}
1229+
1230+
@media screen and (max-width: 900px) {
1231+
12051232
h1, section > p {
12061233
text-align: center;
12071234
}
@@ -1226,23 +1253,6 @@ footer {
12261253
padding: 20px;
12271254
}
12281255

1229-
nav {
1230-
height: $nav-height;
1231-
position: absolute;
1232-
1233-
#logo img {
1234-
width: $nav-height;
1235-
height: $nav-height;
1236-
}
1237-
1238-
#mlh-badge {
1239-
width: 90px;
1240-
}
1241-
1242-
.link {
1243-
display: none;
1244-
}
1245-
}
12461256

12471257
#hero {
12481258
#hero-content {
@@ -1440,12 +1450,6 @@ footer {
14401450
padding: 20px;
14411451
}
14421452

1443-
nav #login {
1444-
padding: 8px 30px;
1445-
margin: 0;
1446-
font-size: 0.8em;
1447-
}
1448-
14491453
#hero {
14501454

14511455
p {

0 commit comments

Comments
 (0)