Sticky menu

This commit is contained in:
Fred 2019-02-07 14:59:05 +01:00 committed by GitHub
parent 104089eb05
commit 8bdb61a914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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