recette - ligne 20

This commit is contained in:
Rémy 2017-10-03 12:15:12 +02:00
parent c861fda0a7
commit 80a4bb59e8
3 changed files with 15 additions and 3 deletions

View File

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

View File

@ -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) {

View File

@ -20,7 +20,8 @@
{foreach $menuLinks item='rootLink' name='rootlink'}
<li>
{if !empty($rootLink.url)}
<a title="{$rootLink.title}" href="{if !$rootLink.external}{$link->getCategoryLink($rootLink.id_category)}{/if}" {if !empty($rootLink.classbloc)}class="{$rootLink.classbloc}"{/if} {if $rootLink.external}target="_blank"{/if}>{$rootLink.title}</a>
{*<a title="{$rootLink.title}" href="{if !$rootLink.external}{$link->getCategoryLink($rootLink.id_category)}{/if}" {if !empty($rootLink.classbloc)}class="{$rootLink.classbloc}"{/if} {if $rootLink.external}target="_blank"{/if}>{$rootLink.title}</a>*}
<a title="{$rootLink.title}" href="#" {if !empty($rootLink.classbloc)}class="{$rootLink.classbloc}"{/if} {if $rootLink.external}target="_blank"{/if}>{$rootLink.title}</a>
{else}
<span {if !empty($rootLink.classbloc)}class="{$rootLink.classbloc}"{/if}>{$rootLink.title}</span>
{/if}