Skip to content

Commit

Permalink
fixes twbs#10024: Use negative margin to fix the border between butto…
Browse files Browse the repository at this point in the history
…n and input in input groups
  • Loading branch information
mdo committed Sep 6, 2013
1 parent e5038a3 commit 8bea86e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions dist/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -3791,6 +3791,14 @@ textarea.input-group-sm > .input-group-btn > .btn {
white-space: nowrap;
}

.input-group-btn:first-child > .btn {
margin-right: -1px;
}

.input-group-btn:last-child > .btn {
margin-left: -1px;
}

.input-group-btn > .btn {
position: relative;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap.min.css

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions less/input-groups.less
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@
.input-group-btn {
position: relative;
white-space: nowrap;

// Negative margin to only have a 1px border between the two
&:first-child > .btn {
margin-right: -1px;
}
&:last-child > .btn {
margin-left: -1px;
}
}
.input-group-btn > .btn {
position: relative;
Expand Down

0 comments on commit 8bea86e

Please sign in to comment.