mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
fixes #9815: proper alignment of navbar nav if first child
This commit is contained in:
parent
87a1d7e5a0
commit
5bd2d7ed7e
3 changed files with 8 additions and 1 deletions
3
dist/css/bootstrap.css
vendored
3
dist/css/bootstrap.css
vendored
|
@ -4050,6 +4050,9 @@ textarea.input-group-sm > .input-group-btn > .btn {
|
||||||
.navbar-collapse.in {
|
.navbar-collapse.in {
|
||||||
overflow-y: visible;
|
overflow-y: visible;
|
||||||
}
|
}
|
||||||
|
.navbar-collapse .navbar-nav.navbar-left:first-child {
|
||||||
|
margin-left: -15px;
|
||||||
|
}
|
||||||
.navbar-collapse .navbar-nav.navbar-right:last-child {
|
.navbar-collapse .navbar-nav.navbar-right:last-child {
|
||||||
margin-right: -15px;
|
margin-right: -15px;
|
||||||
}
|
}
|
||||||
|
|
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -77,6 +77,10 @@
|
||||||
overflow-y: visible;
|
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 {
|
.navbar-nav.navbar-right:last-child {
|
||||||
margin-right: -@navbar-padding-horizontal;
|
margin-right: -@navbar-padding-horizontal;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue