Skip to content

Commit

Permalink
Tweak sizing and spacing, add underline on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Mar 11, 2021
1 parent 18742df commit 9cbcbd1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion scss/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,27 @@
//

.nav-underline {
.nav-item + .nav-item,
.nav-link + .nav-link {
margin-left: $nav-link-padding-x;
}

.nav-link {
padding-right: 0;
padding-left: 0;
border-bottom: .125rem solid transparent;

&:hover,
&:focus {
border-bottom-color: currentColor;
}
}

.nav-link.active,
.show > .nav-link {
font-weight: $font-weight-bold;
color: $dark;
border-bottom-color: $dark;
border-bottom-color: currentColor;
}
}

Expand Down

0 comments on commit 9cbcbd1

Please sign in to comment.