Thicker Navigation Line On Hover

Look Demo

Add a thicker line to a navigation link when hovered. This plugin uses css editor and works with Squarespace 7.1.

ezgif-2-21abea2ae6a3.gif

How To Install

From your Squarespace account, go to the Custom CSS Editor. Copy and paste the code below into the Custom CSS Editor box.

// Solid Line On Hover //

.header-nav-item:hover {
  background-image: linear-gradient(to right, #000000 100%, currentColor 0);
  background-size: 1px 3px;
  background-repeat: repeat-x;
  background-position: 0 calc(100% - 0.1em);
  white-space: initial;
}

// Solid Line On Active Nav //

.header-nav-item--active {
  background-repeat: repeat-x;
  background-image: linear-gradient(to right, #000000 100%, currentColor 0);
  background-size: 1px 3px;
  background-position: 0 calc(100% - 0.1em);
  white-space: initial;
}

Customize

Adjust the background image #000000 color code to your liking for both the Solid Line On Hover and Solid Line On Active Nav.

To make the lines even thicker, change the background size 3px to a higher value.

License

This plugin comes with an Unlimited Use License. View License Terms

Previous
Previous

Third Font For Image Card Blocks

Next
Next

Gradient Mobile Menu Button