From 1e973c31b26e24d0b41d51078a5734c74e5c3f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rn=20A=CC=8Ane?= Date: Tue, 13 Feb 2018 16:06:54 +0100 Subject: [PATCH] Concentrate position statement in one rule --- www/css/style.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/css/style.css b/www/css/style.css index 9e1dfb7..34559e7 100644 --- a/www/css/style.css +++ b/www/css/style.css @@ -73,6 +73,10 @@ nav li.active, nav li:hover { } @media(max-width: 800px){ + nav #menu, nav #menu li.active, nav #menu_toggle, nav #menu:target li.active a, nav #login { + position: fixed; + } + nav { z-index: 1000; } @@ -83,7 +87,6 @@ nav li.active, nav li:hover { border: none; } nav #menu { - position: fixed; text-align: left; top: 3em; left: 0; @@ -104,14 +107,12 @@ nav li.active, nav li:hover { display: block; } nav #menu li.active { - position: fixed; top: 0; left: 0; } nav #menu_toggle, nav #menu:target li.active a { display: block; - position: fixed; top: 0; left: 0; right: 0; @@ -124,7 +125,6 @@ nav li.active, nav li:hover { } nav #login { - position: fixed; right: 0; top: 0; }