Jump to content

Can't Adjust Mobile Menu Padding

Recommended Posts

Site URL: http://www.beckerwhitedesign.com

Hi there!

I've edited my website so that the mobile menu is visible on both desktop and mobile devices, but I'm trying to push the menu down so that you can see the white mobile bar at all times. I've managed to do so for everything EXCEPT when the menu is closing, in which case it snaps to the top. 

I'm also unsure as to why the "fade effect" isn't working when I open the menu. If anyone has suggestions for either of these issues, I'd greatly appreciate it! 

www.beckerwhitedesign.com

 

.is-mobile-overlay-active .Mobile-overlay  {
  @media screen and (min-width: 769px)
  {      
    top: 65.5px;
    width: 30%;
    left: 70%;
  }
   @media screen and (max-width: 768px)
  {
    top: 65.5px;
    width: 40%;
    left: 60%;
  }
     @media screen and (max-width: 640px)
  {
    top: 80px;
    width: 80%;
    left: 20%;
  }  
}
body {
  overflow-x: hidden;
}
body.is-mobile-overlay-active:after
{
  content: '';
  width: 100%
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
}

 

Link to comment
  • Replies 2
  • Views 526
  • Created
  • Last Reply

No, I just removed the top padding from each media query until I figure it out. 😕  I'm looking to push the menu down below the header and keep it there as it closes. I've changed the CSS back to the coding above so you can see how it glitches when it closes. 

Thank you!

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.