Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • woluweb Friend
    #198974

    Hi there,

    The layout of JA Biz for sub-submenus (ie third-level menus) is not ergonomic at all.
    See image attached : when hovering submenu “Notre équipe”, its submenu appears… but much too low.

    Actually, I tried playing with the following parameter margin-top (being 25 px in this case), but it is obviously not the good solution because it impacts not only my sub-submenu but also the whole submenu block itself…

    How to solve this and have sub-submenus showing just to the right of its parent… and not too low

    It is not only for having a nice layout for the eyes, it is above all to avoid the whole submenu to disappear when moving the mouse to the sub-subitem.

    Txs

    // The Dropdown
    // ————
    .mega-dropdown-menu {
    }

    .mega > .nav-child.mega-dropdown-menu {
    border: none;
    box-shadow: none;
    color: @white;
    background: @brand-primary;
    margin-top: @t3-global-margin + 5px;


    1. 2014-06-19_10h01_37
    Adam M Moderator
    #539617

    You go the right direction, just update the declaration a little bit as follows:

    .t3-megamenu .mega > .nav-child.mega-dropdown-menu {
    margin-top: 0;
    }
    .t3-megamenu .mega > .nav-child.mega-dropdown-menu .level3 {
    padding: 0;
    margin: -5px 0 0 -5px;
    }

    woluweb Friend
    #539719

    Hi,
    Txs for helping !

    I tried the solution, but it does not work as expected in the sense that
    – if you change the t3-megamenu .mega > .nav-child.mega-dropdown-menu
    then the submenu block also moves up… and the carret is not place properly any more
    – the .level3 seems to have no impact… and I realized that it should be replaced by .level2 to have impact

    So I tried to build upon your suggestion with the following :

    .t3-megamenu .mega > .nav-child.mega-dropdown-menu {
    margin-top: 25px;
    }
    .t3-megamenu .mega > .nav-child.mega-dropdown-menu .level2 {
    padding: 0;
    margin: -30px 0 0 10px;
    }

    As can be seen from screenshot hereafter, the carret of submenu block is now well positionned, and our last level of menu items shows just at the right place (just next to its parent item, not too low as originally)… but its blue background has not followed…
    So could we fix that ?

    Txs,

    Marc

    PS : see here the live version : http://synthesix.com/en/about-us/team
    Easier if you want to play with the console to test directly the suggestions 🙂

    Screenshot : “Team” is the parent item of “Didier”


    1. 2014-06-21_09h29_01
    Adam M Moderator
    #539798

    Hi Marc,

    So you can try to apply top margin to 1st sub-level only by adding this declaration in CSS file:

    .t3-megamenu > .navbar-nav > .mega > .mega-dropdown-menu {
    margin-top: 25px;
    }

    Then remove the bottom margin of sub-level menu item if there’s only 1 element by adding this rule:

    .t3-megamenu .dropdown-menu .mega-nav > li:last-child > a {
    margin: 0;
    }

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  Adam M 10 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum