Skip to content

Commit

Permalink
allow .input-prepend/.input-append to work in .navbar per twbs#1681
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo authored and m5o committed Feb 18, 2012
1 parent ced7c53 commit b685cf4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
Binary file modified docs/assets/bootstrap.zip
Binary file not shown.
7 changes: 7 additions & 0 deletions docs/assets/css/bootstrap.css
Expand Up @@ -2530,6 +2530,13 @@ button.btn.small, input[type="submit"].btn.small {
.navbar-form input[type="image"], .navbar-form input[type="checkbox"], .navbar-form input[type="radio"] {
margin-top: 3px;
}
.navbar-form .input-append, .navbar-form .input-prepend {
margin-top: 6px;
white-space: nowrap;
}
.navbar-form .input-append input, .navbar-form .input-prepend input {
margin-top: 0;
}
.navbar-search {
position: relative;
float: left;
Expand Down
10 changes: 9 additions & 1 deletion lib/_navbar.scss
Expand Up @@ -81,7 +81,7 @@
margin-top: 5px; // make buttons vertically centered in navbar
}
.btn-group .btn {
margin-top: 0;
margin-top: 0; // then undo the margin here so we don't accidentally double it
}
}

Expand All @@ -104,6 +104,14 @@
input[type="radio"] {
margin-top: 3px;
}
.input-append,
.input-prepend {
margin-top: 6px;
white-space: nowrap; // preven two items from separating within a .navbar-form that has .pull-left
input {
margin-top: 0; // remove the margin on top since it's on the parent
}
}
}

// Navbar search
Expand Down

0 comments on commit b685cf4

Please sign in to comment.