Skip to content

Commit

Permalink
fix(navbar): support buttons in navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmatthew committed Sep 19, 2020
1 parent 84afafa commit 9776d53
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions assets/stylesheets/bootstrap/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,23 @@
.navbar-nav {
margin: ($navbar-padding-vertical / 2) (-$navbar-padding-horizontal);

> li > a {
> li > a,
> li > button {
padding-top: 10px;
padding-bottom: 10px;
line-height: $line-height-computed;
}

> li > button {
width: 100%;
padding: 1em;
margin-top: 0;
margin-bottom: 0;
background-color: inherit;
border: 0;
border-radius: 0;
}

@media (max-width: $grid-float-breakpoint-max) {
// Dropdowns get custom display when collapsed
.open .dropdown-menu {
Expand Down Expand Up @@ -271,7 +282,8 @@

> li {
float: left;
> a {
> a,
> button {
padding-top: $navbar-padding-vertical;
padding-bottom: $navbar-padding-vertical;
}
Expand Down Expand Up @@ -414,7 +426,8 @@
}

.navbar-nav {
> li > a {
> li > a,
> li > button {
color: $navbar-default-link-color;

&:focus {
Expand Down

0 comments on commit 9776d53

Please sign in to comment.