Hey there. I’ve been developing a site for my client and they want to change the transparency of the main menu on the site. Right now, the menu is transparent but they want to make it a bit darker so the logo and text in the menu are highlighted more. How can I change this and make the menu a bit darker. Also I would love to add a color effect when we hover over the text in the dropdown nav menu. Can someone help me with that also
I added below 4 different styles of background. Copy the CSS and put aside and try one by one and check which one best suited on header.
Also the last lines of CSS are for menu hover color change and where to put all the CSS lines you know better.
.header-wrapper--sticky {
background: linear-gradient(180deg,rgba(0,0,0,.9) 0,#0000000a);
}
.header-wrapper--sticky {
background: linear-gradient(180deg,rgba(0,0,0,.9) 0,#00000024);
}
.header-wrapper--sticky {
background: linear-gradient(180deg,rgba(0,0,0,.9) 0,#0000004a);
}
.header-wrapper--sticky {
background: linear-gradient(180deg,rgba(0,0,0,.5) 0,#0000005e);
}
.megamenu .site-nav__dropdown-link:hover {
background-color: rgba(0, 0, 0, 0.05);
}
Thank you so much, this helped me a ton. I just want to move the bottom padding line a bit up, right now its taking more space than I would like. Can you help me with that as well?
Paste below CSS to solve your issue.
.site-nav.site-navigation .site-nav__link {
padding: 7.5px 15px 0.5px 15px;
}
did it but nothing happens
This line now moved towards menu. Initially there was gap between menu item and this line.
Let me know if I’m thinking about wrong thing.
Better if you can share any picture where you exactly want the CSS.
Okay, I got it.
Put below CSS and let me know.
@media only screen and (min-width:768px){
.site-header-sticky {
height: 125px !important;
}
.site-header-sticky .site-header {
padding: 0;
}
}
Works perfectly. Thank you so much.
Regarding the hover option on the dropdown menu. can we make the hover option the same as on this site: https://www.specialized.com/ba/en
Put below CSS to make it like reference website.
.site-nav__link:hover, .megamenu .site-nav__dropdown-link:hover {
color: #e40505 !important;
}
Note: You can change the color code if you want to change.