From 8bdb61a914ea31fb1b5be2afe906acefe033bf41 Mon Sep 17 00:00:00 2001 From: Fred <23246457+fredtempez@users.noreply.github.com> Date: Thu, 7 Feb 2019 14:59:05 +0100 Subject: [PATCH] Sticky menu --- core/layout/common.css | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/core/layout/common.css b/core/layout/common.css index 0cb34768..810a595b 100755 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -326,15 +326,10 @@ header .container { body > nav { margin: 0 -10px; } + + /* Items du menu */ -/* Barre de navigation fixe quand le menu est en-dehors du site */ -#navfixed { - position: fixed; - top:0; - width:100%; - z-index:100; -} nav a > img { margin: -4px 0; vertical-align: middle; @@ -411,6 +406,23 @@ nav a:hover { } } +/* Barre de navigation fixe quand le menu est en-dehors du site */ + +nav #navStickyLogout { + position: fixed !important; + top:0px; + position: -webkit-sticky; /* Safari */ + position: sticky; +} + +nav #navStickyConnected { + position: fixed !important; + top:45px !important; + position: -webkit-sticky; /* Safari */ + position: sticky; +} + + /* Corps */ section { padding: 20px;