fixes #10024: Use negative margin to fix the border between button and input in input groups

This commit is contained in:
Mark Otto 2013-09-06 09:50:38 -07:00
parent e5038a339c
commit 8bea86e2ef
3 changed files with 17 additions and 1 deletions

View File

@ -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;
}

File diff suppressed because one or more lines are too long

View File

@ -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;