diff --git a/www/themes/versionecologique/css/global.css b/www/themes/versionecologique/css/global.css index 0326842..0768269 100644 --- a/www/themes/versionecologique/css/global.css +++ b/www/themes/versionecologique/css/global.css @@ -193,7 +193,8 @@ body.noScroll { overflow-y:hidden;} } #header #mainmenu:hover .menu-icon { color:#5986d5; } #header #mainmenu:hover .block-mainmenu { display:block; } - #header #mainmenu li:hover .main-submenu { display:block; } + /*#header #mainmenu li:hover .main-submenu { display:block; }*/ + #header #mainmenu li.open .main-submenu { display:block; } #header #mainmenu .main-submenu .backButton { display:none; } #header #mainmenu .main-submenu .main-submenu-img { @@ -269,6 +270,9 @@ body.noScroll { overflow-y:hidden;} margin:13px 0; font-size:0; } + #header #mainmenu .main-submenu .main-submenu-infos .submenu-infos-list li:first-child { display:block;} + #header #mainmenu .main-submenu .main-submenu-infos .submenu-infos-list li:first-child a { color: #606064; font-size: 16px; font-family: "RubikMedium"; padding: 7px 4px; margin-bottom: 5px;} + #header #mainmenu .main-submenu .main-submenu-infos .submenu-infos-list li:first-child a:hover { color: #fff;} #header #mainmenu .main-submenu .main-submenu-infos .submenu-infos-list a { font-family:"RubikRegular"; display: inline-block; @@ -316,6 +320,8 @@ body.noScroll { overflow-y:hidden;} } #header #mainmenu .menu-content > li:last-child > * { } + #header #mainmenu .menu-content > li.open > a, + #header #mainmenu .menu-content > li.open > span, #header #mainmenu .menu-content > li:hover > a, #header #mainmenu .menu-content > li:hover > span { color: #5986d5; diff --git a/www/themes/versionecologique/js/global.js b/www/themes/versionecologique/js/global.js index 329865b..1b6aa11 100644 --- a/www/themes/versionecologique/js/global.js +++ b/www/themes/versionecologique/js/global.js @@ -353,6 +353,10 @@ $(document).ready(function() { } }); + $("#mainmenu").mouseleave(function(){ + $(this).find("li.open").removeClass("open"); + }); + $("#cms .matrice p").find("strong").parent().css("marginBottom",5); $("#cms .cms-banner").length ? $("#breadcrumbs *").css("color","#fff") : $("#breadcrumbs .crumb").css("color","#000"); @@ -729,6 +733,7 @@ function advancedDropdownMenu() $menuLinks.on('click', function(e) { $that = $(this); + $thatBro = $(this).siblings("li"); $hasSubMenu = $that.find('.main-submenu').length ? true : false; $subMenuLinks = $that.find('li'); @@ -739,7 +744,7 @@ function advancedDropdownMenu() { e.preventDefault(); } - + $thatBro.removeClass("open"); $that.addClass('open'); $subMenuLinks.on('click', function(e) { diff --git a/www/themes/versionecologique/modules/advmenu/advmenu.tpl b/www/themes/versionecologique/modules/advmenu/advmenu.tpl index 491f766..fa1c49b 100644 --- a/www/themes/versionecologique/modules/advmenu/advmenu.tpl +++ b/www/themes/versionecologique/modules/advmenu/advmenu.tpl @@ -20,7 +20,8 @@ {foreach $menuLinks item='rootLink' name='rootlink'}