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
  • Replies 2
  • Views 1.3k
  • Created
  • Last Reply
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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.