forked from ZwiiCMS-Team/ZwiiCMS
Sticky menu
This commit is contained in:
parent
104089eb05
commit
8bdb61a914
@ -326,15 +326,10 @@ header .container {
|
|||||||
body > nav {
|
body > nav {
|
||||||
margin: 0 -10px;
|
margin: 0 -10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Items du menu */
|
/* 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 {
|
nav a > img {
|
||||||
margin: -4px 0;
|
margin: -4px 0;
|
||||||
vertical-align: middle;
|
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 */
|
/* Corps */
|
||||||
section {
|
section {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
Loading…
Reference in New Issue
Block a user