From 04c23632090944fc22ea85be1de9685a9bb98ceb Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 3 Sep 2015 19:45:59 +0100 Subject: [PATCH] Make navbar fixed, if the window is tall enough --- static/style.scss | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/static/style.scss b/static/style.scss index 07d64a4..2c9af27 100644 --- a/static/style.scss +++ b/static/style.scss @@ -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;