Jump to content

Changing line height in forced mobile menu

Recommended Posts

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

Hey all,

Does anyone know how I can change the line height in my forced mobile nav menu?
And also how to add a manual link to the existing code?

Code:
/* 768 for tablet - desktop - 992 for desktop */
@media screen and (min-width:768px) {
 /* hide navigation */
    .header-nav {
    display: none;
}
/* Hide header button */
.header-actions {
    display: none;
}
/* show burger */
.header-burger {
  display: flex;
}
/* Show overlay mobile menu */
.header--menu-open .header-menu {
  opacity: 1;
  visibility: visible;
  line-height: 1em;
}
}

 

Let me know if you can help, thanks

Screen Shot 2021-01-14 at 11.07.53 PM.png

Link to comment
3 hours ago, vanessakrystin said:

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

Hey all,

Does anyone know how I can change the line height in my forced mobile nav menu?
And also how to add a manual link to the existing code?

Code:
/* 768 for tablet - desktop - 992 for desktop */
@media screen and (min-width:768px) {
 /* hide navigation */
    .header-nav {
    display: none;
}
/* Hide header button */
.header-actions {
    display: none;
}
/* show burger */
.header-burger {
  display: flex;
}
/* Show overlay mobile menu */
.header--menu-open .header-menu {
  opacity: 1;
  visibility: visible;
  line-height: 1em;
}
}

 

Let me know if you can help, thanks

Screen Shot 2021-01-14 at 11.07.53 PM.png

You can add this to Design->Custom CSS

.header-menu-nav-item a {
  padding: 2vw;
}

image.thumb.png.28e3d949217d4fedb1bf24369d6986b3.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.