Skip to content

Commit acb76ce

Browse files
afhtbm
authored andcommitted
Make navigation responsive
by wrapping the menu on narrower width and increasing the header height.
1 parent d4c5b8e commit acb76ce

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

source/stylesheets/site.css.scss

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ main {
1212
}
1313

1414
header {
15-
height:65px;
15+
min-height:65px;
1616
border-bottom:3px solid gray;
1717
padding:1em;
1818
}
1919

2020
header li {
21-
display:inline;
22-
margin:1em;
21+
display:inline-block;
22+
margin: 0 2em 0 0;
2323
}
2424

2525
header a {
@@ -91,3 +91,13 @@ pre code {
9191
}
9292

9393
.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}
94+
95+
@media screen and (max-width: 765px) {
96+
header li {
97+
margin: 1em 2em 0 0;
98+
}
99+
nav li:has(a[href="/"]) {
100+
display: block;
101+
margin: 0;
102+
}
103+
}

0 commit comments

Comments
 (0)