diff --git a/navbar.less b/navbar.less index 1371865ede92..571a186d2ca7 100644 --- a/navbar.less +++ b/navbar.less @@ -272,7 +272,7 @@ } } - &.navbar-right:last-child { + &.navbar-right:first-child { margin-right: -@navbar-padding-horizontal; } } @@ -327,8 +327,8 @@ padding-bottom: 0; .box-shadow(none); - // Outdent the form if last child to line up with content down the page - &.navbar-right:last-child { + // Outdent the form if first child to line up with content down the page + &.navbar-right:first-child { margin-right: -@navbar-padding-horizontal; } } @@ -376,8 +376,8 @@ margin-left: @navbar-padding-horizontal; margin-right: @navbar-padding-horizontal; - // Outdent the form if last child to line up with content down the page - &.navbar-right:last-child { + // Outdent the form if first child to line up with content down the page + &.navbar-right:first-child { margin-right: 0; } }