0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-29 21:52:22 +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; white-space: nowrap;
} }
.navbar-form .input-append .btn,
.navbar-form .input-prepend .btn,
.navbar-form .input-append input, .navbar-form .input-append input,
.navbar-form .input-prepend input { .navbar-form .input-prepend input {
margin-top: 0; margin-top: 0;

View File

@ -90,10 +90,11 @@
.navbarVerticalAlign(28px); // Vertically center in navbar .navbarVerticalAlign(28px); // Vertically center in navbar
} }
.navbar .btn-group .btn { .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 forms
// -------------------------
.navbar-form { .navbar-form {
margin-bottom: 0; // remove default bottom margin margin-bottom: 0; // remove default bottom margin
.clearfix(); .clearfix();
@ -125,6 +126,7 @@
} }
// Navbar search // Navbar search
// -------------------------
.navbar-search { .navbar-search {
position: relative; position: relative;
float: left; float: left;