Make navbar fixed, if the window is tall enough

This commit is contained in:
rubenwardy 2015-09-03 19:45:59 +01:00
parent 252f306793
commit 04c2363209

View File

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