Jump to content

Styling the navbar, adding the effects to active navbar as well.

Recommended Posts

Hello,

I have been trying to style my navbar so that once I hover, there is an effect which inverts the font colour and adds a background. The code I have now has been working well until I added another dropdown menu (resources), where the active style does not work as intended.

 

The effects under "products" are the effects I am trying to achieve on "support," but if I am already on support, the dropdown on the navbar does not look good.

 

This is the CSS I use at the moment:

//Stylized Folder Dropdown Menu
@linkBGColor: #d20c0d;
@linkTextColor: #fff;
.header-nav .header-nav-item--folder .header-nav-folder-content {
  padding: 1em;
  .header-nav-folder-item {
    padding: .5em 1em;
  }
  .header-nav-folder-item:hover {
    background: @linkBGColor;
    a {
      color: @linkTextColor;
    }
  }
}

supportexample.png

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

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.