Sticky menu est barre admin sticky ok

This commit is contained in:
fredtempez 2019-02-07 17:26:39 +01:00
parent b2ba00c297
commit 632ccfa567
3 changed files with 15 additions and 17 deletions

View File

@ -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%;
}

View File

@ -135,9 +135,9 @@ class theme extends common {
'25px 15px' => 'Très grande'
];
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 = [

View File

@ -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;
}
});