1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 21:49:09 +01:00

fixes #9815: proper alignment of navbar nav if first child

This commit is contained in:
Mark Otto 2013-08-18 18:49:07 -07:00
parent 87a1d7e5a0
commit 5bd2d7ed7e
3 changed files with 8 additions and 1 deletions

View File

@ -4050,6 +4050,9 @@ textarea.input-group-sm > .input-group-btn > .btn {
.navbar-collapse.in {
overflow-y: visible;
}
.navbar-collapse .navbar-nav.navbar-left:first-child {
margin-left: -15px;
}
.navbar-collapse .navbar-nav.navbar-right:last-child {
margin-right: -15px;
}

File diff suppressed because one or more lines are too long

View File

@ -77,6 +77,10 @@
overflow-y: visible;
}
// Account for first and last children spacing
.navbar-nav.navbar-left:first-child {
margin-left: -@navbar-padding-horizontal;
}
.navbar-nav.navbar-right:last-child {
margin-right: -@navbar-padding-horizontal;
}