]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Rework navbar padding and margins for right aligned last-child elements
authorMark Otto <otto@github.com>
Mon, 2 Dec 2013 03:27:33 +0000 (19:27 -0800)
committerMark Otto <otto@github.com>
Mon, 2 Dec 2013 03:27:33 +0000 (19:27 -0800)
commit5a0365524d8a190c718bcb4950c423c9bef75bd9
treeb61cd51ee20d211c9a34a719377b3797ecd5c673
parent25bc5322aa0edb9895cf3a1a409b586a5f7fafca
Rework navbar padding and margins for right aligned last-child elements

This slight reworking of the navbar spacing was brought about by a
problem noted in #11530: use of `.navbar-form.navbar-right` leaves an
extra 15px of space on the right.

Here’s what’s new:

* Removed the `padding` on `.navbar-collapse` within static top, fixed
top, and fixed bottom navbars. Meaning, it’s still there for the
default navbar. This was the root cause of the extra 15px padding for
navbar forms.
* As part of this, I also replaced the existing negative margin
overrides for last-child elements with more contextual ones within
their sub-components.

Overall not too different, but should be more effective now and easier
to work with now.

For example of new changes, see http://jsbin.com/odeSiSo/1/.
dist/css/bootstrap.css
dist/css/bootstrap.min.css
less/navbar.less