Jump to content

Mix blend mode on mobile menu

Recommended Posts

We've added a css code to the menu block to make the logo and text different colors depending on the background. It works fine except it also makes the pop-up menu disappear. I've tried to make the code only apply to the nav bar and not the pop up menu, but I can't make it work. Could anyone help us with this? 

This is the code we've used:

.header {
   mix-blend-mode: difference;
   backdrop-filter: blur(3px);
}}

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

Link to comment
  • Replies 1
  • Views 277
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

You can consider apply it for desktop only, because if you apply to header, it will affect all elements inside, include burger menu.

@media screen and (min-width:992px) {
.header {
   mix-blend-mode: difference;
   backdrop-filter: blur(3px);
}}

 

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!)

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.