Make navbar fixed, if the window is tall enough

gh-pages
rubenwardy 2015-09-03 19:45:59 +01:00
parent 252f306793
commit 04c2363209
1 changed files with 7 additions and 1 deletions

View File

@ -61,7 +61,7 @@ figure {
}
#navbar {
position: absolute;
position: fixed;
left: 0;
width: 250px;
top: 0;
@ -172,6 +172,12 @@ h3 {
display: none;
}
@media all and (max-height: 568px) {
#navbar {
position: absolute;
}
}
@media all and (max-width: 780px) {
#navbar {
position: static;