Sticky menu est barre admin sticky ok
This commit is contained in:
parent
b2ba00c297
commit
632ccfa567
@ -326,10 +326,7 @@ header .container {
|
|||||||
body > nav {
|
body > nav {
|
||||||
margin: 0 -10px;
|
margin: 0 -10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Items du menu */
|
/* Items du menu */
|
||||||
|
|
||||||
nav a > img {
|
nav a > img {
|
||||||
margin: -4px 0;
|
margin: -4px 0;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
@ -405,21 +402,19 @@ nav a:hover {
|
|||||||
padding-left: 40px !important;
|
padding-left: 40px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Barre de navigation fixe quand le menu est en-dehors du site */
|
/* Barre de navigation fixe quand le menu est en-dehors du site */
|
||||||
|
#navfixedlogout {
|
||||||
nav #navStickyLogout {
|
position: fixed;
|
||||||
position: fixed !important;
|
top:0;
|
||||||
top:0px;
|
z-index:18;
|
||||||
position: -webkit-sticky; /* Safari */
|
width:100%;
|
||||||
position: sticky;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nav #navStickyConnected {
|
#navfixedconnected {
|
||||||
position: fixed !important;
|
position: fixed;
|
||||||
top:45px !important;
|
top:45;
|
||||||
position: -webkit-sticky; /* Safari */
|
z-index:18;
|
||||||
position: sticky;
|
width:100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -135,9 +135,9 @@ class theme extends common {
|
|||||||
'25px 15px' => 'Très 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-first' => 'Dans le site avant la bannière',
|
||||||
'site-second' => 'Dans le site après la bannière',
|
'site-second' => 'Dans le site après la bannière',
|
||||||
'top' => 'En-dehors du site',
|
|
||||||
'hide' => 'Caché'
|
'hide' => 'Caché'
|
||||||
];
|
];
|
||||||
public static $menuPositionsBody = [
|
public static $menuPositionsBody = [
|
||||||
|
@ -69,6 +69,7 @@ $("input, select").on("change", function() {
|
|||||||
case 'body-first':
|
case 'body-first':
|
||||||
$("nav").show().insertAfter("#bar");
|
$("nav").show().insertAfter("#bar");
|
||||||
$("#menu").removeClass('container-large');
|
$("#menu").removeClass('container-large');
|
||||||
|
$("nav").removeClass('#navfixedconnected');
|
||||||
$("#menu").addClass('container');
|
$("#menu").addClass('container');
|
||||||
break;
|
break;
|
||||||
case 'body-second':
|
case 'body-second':
|
||||||
@ -78,11 +79,13 @@ $("input, select").on("change", function() {
|
|||||||
else {
|
else {
|
||||||
$("nav").show().insertAfter("#bar");
|
$("nav").show().insertAfter("#bar");
|
||||||
}
|
}
|
||||||
|
$("nav").removeClass('#navfixedconnected');
|
||||||
break;
|
break;
|
||||||
case 'top':
|
case 'top':
|
||||||
$("nav").show().insertAfter("#bar");
|
$("nav").show().insertAfter("#bar");
|
||||||
$("#menu").removeClass('container');
|
$("#menu").removeClass('container');
|
||||||
$("#menu").addClass('container-large');
|
$("#menu").addClass('container-large');
|
||||||
|
$("nav").addClass('#navfixedconnected');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user