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

avoid top margin on input-append/prepend in .navbar-form

This commit is contained in:
Mark Otto 2012-08-24 14:45:02 -07:00
parent 0682780cd8
commit d9593e217d
2 changed files with 5 additions and 1 deletions

View File

@ -4197,6 +4197,8 @@ input[type="submit"].btn.btn-mini {
white-space: nowrap;
}
.navbar-form .input-append .btn,
.navbar-form .input-prepend .btn,
.navbar-form .input-append input,
.navbar-form .input-prepend input {
margin-top: 0;

View File

@ -90,10 +90,11 @@
.navbarVerticalAlign(28px); // Vertically center in navbar
}
.navbar .btn-group .btn {
margin: 0; // then undo the margin here so we don't accidentally double it
margin-top: 0; // then undo the margin here so we don't accidentally double it
}
// Navbar forms
// -------------------------
.navbar-form {
margin-bottom: 0; // remove default bottom margin
.clearfix();
@ -125,6 +126,7 @@
}
// Navbar search
// -------------------------
.navbar-search {
position: relative;
float: left;