Jump to content

Mobile Menu Overlay Colour Changes

Recommended Posts

Posted

Site URL: https://www.benjohnsonphoto.com/

Hello,

I'm wanting to alter the mobile menu overlay colours, however I am unable to find it in the squarespace design settings or use the correct CSS. Currently, it has a black background and white text. I would like to reverse this so the background is white and text black. 

Cheers,

Ben

  • Replies 4
  • Views 2.2k
  • Created
  • Last Reply
Posted

If you still can't find the setting, add this to Home > Design > Custom CSS

@media screen and (max-width:767px) {
.header-menu-bg.theme-bg--primary {
    background: white !important;
}
.header-menu-nav * {
    color: black !important;
    fill: black;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted
10 hours ago, tuanphan said:

If you still can't find the setting, add this to Home > Design > Custom CSS


@media screen and (max-width:767px) {
.header-menu-bg.theme-bg--primary {
    background: white !important;
}
.header-menu-nav * {
    color: black !important;
    fill: black;
}
}

 

This worked, thank you @tuanphanhowever the exit cross is white and not visible. 

Posted
@media screen and (max-width:767px) {
.header-menu-bg.theme-bg--primary {
    background: white !important;
}
.header-menu-nav * {
    color: black !important;
    fill: black;
}
.burger--active .burger-inner>div {
    background: black !important;
}
}

New code

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted
22 minutes ago, tuanphan said:

@media screen and (max-width:767px) {
.header-menu-bg.theme-bg--primary {
    background: white !important;
}
.header-menu-nav * {
    color: black !important;
    fill: black;
}
.burger--active .burger-inner>div {
    background: black !important;
}
}

New code

Sensational! Thank you kindly. I was also wanting to add a hover effect for my logo on the desktop. I will uploading an image to replace the current generic title and this will be black. I would like to have the hover change from black to grey. I will have a separate logo image with the specified grey, I'm just unsure how to create the hover with CSS. 

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.