Skip to content

Commit 5bd2d7e

Browse files
committed
fixes twbs#9815: proper alignment of navbar nav if first child
1 parent 87a1d7e commit 5bd2d7e

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

dist/css/bootstrap.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4050,6 +4050,9 @@ textarea.input-group-sm > .input-group-btn > .btn {
40504050
.navbar-collapse.in {
40514051
overflow-y: visible;
40524052
}
4053+
.navbar-collapse .navbar-nav.navbar-left:first-child {
4054+
margin-left: -15px;
4055+
}
40534056
.navbar-collapse .navbar-nav.navbar-right:last-child {
40544057
margin-right: -15px;
40554058
}

dist/css/bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

less/navbar.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@
7777
overflow-y: visible;
7878
}
7979

80+
// Account for first and last children spacing
81+
.navbar-nav.navbar-left:first-child {
82+
margin-left: -@navbar-padding-horizontal;
83+
}
8084
.navbar-nav.navbar-right:last-child {
8185
margin-right: -@navbar-padding-horizontal;
8286
}

0 commit comments

Comments
 (0)