[Resolved] Hamburger menu and search icons on mobile

Home Forums Support [Resolved] Hamburger menu and search icons on mobile

Home Forums Support Hamburger menu and search icons on mobile

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2256162
    David

    Hi there,

    I am trying to make hamburger menu and search icon more pronounced on newer mobiles and iPad Minis.

    To this end I need some advice:
    1. On newer mobiles, my search and menu icons look thin. I can adjust the font size in the type manager specifically for mobile, but how can I make these symbols bolder/fatter?

    2. How can I have the hamburger menu to the left of the site logo and the search icon to the right? (Currently both appear to the right of the site logo)

    Thank you very much for taking the time.

    #2256553
    Ying
    Staff
    Customer Support

    Hi David,

    1. You can target the svg, then try something like this: stroke: black; stroke-width:20px;

    2. Can you link us to your site?

    #2256868
    David

    Hi Ying,

    I have added site and login credentials in the private area.
    Best regards.

    #2257441
    Ying
    Staff
    Customer Support

    1.Try this CSS to bold the hamburger icon:

    .gp-icon.icon-menu-bars svg {
        stroke: black;
        stroke-width: 50px;
    }

    2. Try this CSS for the layout:

    @media (max-width: 768px) {
    .gp-icon.icon-menu-bars svg {
        stroke: black;
        stroke-width: 50px;
    }
    
    .inside-header {
        flex-wrap: nowrap;
    }
    
    .inside-header >*:not(.toggled):not(.has-active-search) {
        flex-basis: auto !important;
    }
    
    .site-logo {
        position: absolute;
        left: 50%;
        transform: translatex(-50%);
        top:30px;
        z-index: 999;
    }
    
    .inside-header.grid-container nav#mobile-menu-control-wrapper, .menu-bar-items {
        margin-left: 0;
        width: 100%;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    button.menu-toggle {
        order: -1;
    }
    
    .menu-bar-items {
        justify-content: flex-end;
    }
    }
    #2258416
    David

    Hi Ying,

    your css (icon and layout) works like a charm.

    I went ahead and also added the following css to make the search lens a bit thicker.

    .gp-icon.icon-search svg {
    stroke: black;
    stroke-width: 25px;
    }

    Unlike the menu bars, which look great at stroke-width 50px, the lens can’t take quite as much thickness, but 25px is a good compromise.

    Thank you very much for your help!
    Have a great day.

    #2259272
    Ying
    Staff
    Customer Support

    You are welcome 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.