Okay
  Public Ticket #2485656
Hamburger menu vertical alignment
Closed

Comments

  •  54
    Coastdesign started the conversation

    Hi Tahir

    The hamburger menu on my site appears automatically aligned to the vertical centre of the logo. Is it possible to vertically align the hamburger menu to the top edge of the logo instead?

    Thanks

  •  3,017
    Andrew replied

    Hi there,

    Use the following custom css in Salient > General settings > CSS/Script related:

    @media only screen and (max-width: 1000px){
        #top .span_9 >.slide-out-widget-area-toggle {
        top: -25px;
    }
    }
    

    Hope this helps.

  •  54
    Coastdesign replied

    Hi Andrew

    I was hoping for a fix that would apply across all devices and browsers. Is that possible?

  •  3,017
    Andrew replied

    Hi there,

    Try the following to apply on desktop and the recently sent on smaller devices:

    @media only screen and (min-width: 1000px){
      body.material #header-outer:not([data-format="left-header"]) #top nav >.buttons {
        margin-top: -105px;
    }
    }
    

    Kind regards.

  •  54
    Coastdesign replied

    Thanks Andrew. Is there some code to apply that positioning to the same place on the sliding menu pane?

  •  8,987
    Tahir replied

    Hey Again,

    Use this revised CSS.

    Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):

    @media only screen and (min-width: 1000px) {
        body.material #header-outer:not([data-format="left-header"]) #top nav >.buttons {
            margin-top: -105px !important;
        }
        .slide-out-hover-icon-effect:not(.small) {
            margin-top: -105px !important;
        }
    }

    Thanks


    ThemeNectar Support Team 

  •  54
    Coastdesign replied

    Thanks Tahir. That worked!