diff --git a/core/layout/common.css b/core/layout/common.css index 810a595b..c3bacbdb 100755 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -326,10 +326,7 @@ header .container { body > nav { margin: 0 -10px; } - - /* Items du menu */ - nav a > img { margin: -4px 0; vertical-align: middle; @@ -405,21 +402,19 @@ nav a:hover { padding-left: 40px !important; } } - /* 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; +#navfixedlogout { + position: fixed; + top:0; + z-index:18; + width:100%; } -nav #navStickyConnected { - position: fixed !important; - top:45px !important; - position: -webkit-sticky; /* Safari */ - position: sticky; +#navfixedconnected { + position: fixed; + top:45; + z-index:18; + width:100%; } diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index e7d4cac4..323d3e47 100755 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -134,10 +134,10 @@ class theme extends common { '20px 15px' => 'Grande', '25px 15px' => 'Très grande' ]; - public static $menuPositionsSite = [ + public static $menuPositionsSite = [ + 'top' => 'En-dehors du site', 'site-first' => 'Dans le site avant la bannière', 'site-second' => 'Dans le site après la bannière', - 'top' => 'En-dehors du site', 'hide' => 'Caché' ]; public static $menuPositionsBody = [ diff --git a/core/module/theme/view/menu/menu.js.php b/core/module/theme/view/menu/menu.js.php index f80ee924..86537874 100755 --- a/core/module/theme/view/menu/menu.js.php +++ b/core/module/theme/view/menu/menu.js.php @@ -69,6 +69,7 @@ $("input, select").on("change", function() { case 'body-first': $("nav").show().insertAfter("#bar"); $("#menu").removeClass('container-large'); + $("nav").removeClass('#navfixedconnected'); $("#menu").addClass('container'); break; case 'body-second': @@ -78,11 +79,13 @@ $("input, select").on("change", function() { else { $("nav").show().insertAfter("#bar"); } + $("nav").removeClass('#navfixedconnected'); break; case 'top': $("nav").show().insertAfter("#bar"); $("#menu").removeClass('container'); $("#menu").addClass('container-large'); + $("nav").addClass('#navfixedconnected'); break; } });