Skip to content

Commit

Permalink
Update: (Fixes #512) navbar-size mixin should set height on `.navba…
Browse files Browse the repository at this point in the history
…r-form` so a navbar variant with only form will be the correct height

Update: Navbar added `.navbar-nav-last` for aligning single `.navbar-nav` on the right side
  • Loading branch information
pat270 committed Feb 8, 2018
1 parent bcfe6b2 commit 4c83874
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/clay/src/scss/components/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
}
}

.navbar-nav-last {
margin-left: auto;
}

.navbar-title {
font-size: $navbar-title-font-size;
font-weight: $navbar-title-font-weight;
Expand Down
8 changes: 8 additions & 0 deletions packages/clay/src/scss/mixins/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@
}

.navbar-form {
height: $height-mobile - $border-bottom-width - $border-top-width;
padding-bottom: $link-padding-y-mobile;
padding-left: $link-padding-x-mobile;
padding-right: $link-padding-x-mobile;
Expand Down Expand Up @@ -262,9 +263,16 @@

.navbar-form {
@if ($scaling-navbar) {
height: $height - $border-bottom-width - $border-top-width;
padding-left: $link-padding-x;
padding-right: $link-padding-x;

> .container,
> .container-fluid {
padding-left: 0;
padding-right: 0;
}

.form-control {
height: $form-control-height;
}
Expand Down

0 comments on commit 4c83874

Please sign in to comment.