diff --git a/views/blocks/d.nav.html b/views/blocks/d.nav.html index 8e45292..8e9b06c 100755 --- a/views/blocks/d.nav.html +++ b/views/blocks/d.nav.html @@ -5,10 +5,18 @@ - Carte - - Contribuer + Restauration + de refuges pastoraux + Métallerie + agricole + + Inventaire + des cabanes de montagne + + Carte + Contribuer + + if ($user->id == 0) { ?> diff --git a/views/css/d.index.css b/views/css/d.index.css index 361d85f..d62d708 100755 --- a/views/css/d.index.css +++ b/views/css/d.index.css @@ -122,6 +122,16 @@ header li a { header li a:hover, header li a:focus-within { color: white; } +header li.with-subtitle a { + padding: 15px 15px 25px; +} + +header li .subtitle { + font-size: 80%; + font-style: italic; + white-space: nowrap; + padding-left: 5px; +} header li:hover a, header li:focus-within a { border-bottom: 6px solid blue; @@ -160,6 +170,12 @@ header li.has-sub ul { background: #212121; } +header li.with-subtitle ul { + right: unset; + position: relative; + min-width: 100%; +} + header li.has-sub ul li { display: block; height: 46px; diff --git a/views/js/d.header.js b/views/js/d.header.js index 742521d..904b5cd 100755 --- a/views/js/d.header.js +++ b/views/js/d.header.js @@ -21,12 +21,18 @@ function reduce() { }, 100, function() { // Animation complete. }); - $( "header a.on-bar" ).animate({ + $( "header li:not(.with-subtitle) a.on-bar" ).animate({ paddingTop: "15px", paddingBottom: "5px" }, 100, function() { // Animation complete. }); + $( "header li.with-subtitle a.on-bar" ).animate({ + paddingTop: "5px", + paddingBottom: "15px" + }, 100, function() { + // Animation complete. + }); } function enlarge() { @@ -50,12 +56,18 @@ function enlarge() { }, 100, function() { // Animation complete. }); - $( "header a.on-bar" ).animate({ + $( "header li:not(.with-subtitle) a.on-bar" ).animate({ paddingTop: "25px", paddingBottom: "15px" }, 100, function() { // Animation complete. }); + $( "header li.with-subtitle a.on-bar" ).animate({ + paddingTop: "15px", + paddingBottom: "25px" + }, 100, function() { + // Animation complete. + }); } $(window).scroll(function() {