Sticky menu est barre admin sticky ok
This commit is contained in:
parent
b2ba00c297
commit
632ccfa567
@ -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%;
|
||||
}
|
||||
|
||||
|
||||
|
@ -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 = [
|
||||
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user