aboutsummaryrefslogtreecommitdiff
path: root/less/input-groups.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-09-06 09:50:38 -0700
committerMark Otto <[email protected]>2013-09-06 09:50:38 -0700
commit8bea86e2efed39af9d7469b20593d639532b84d0 (patch)
tree9d78f0bba5534ed62745a36975a34d399ab0edaf /less/input-groups.less
parente5038a339c69c78e8a4b8de702a6b871c3653c04 (diff)
downloadbootstrap-8bea86e2efed39af9d7469b20593d639532b84d0.tar.xz
bootstrap-8bea86e2efed39af9d7469b20593d639532b84d0.zip
fixes #10024: Use negative margin to fix the border between button and input in input groups
Diffstat (limited to 'less/input-groups.less')
-rw-r--r--less/input-groups.less8
1 files changed, 8 insertions, 0 deletions
diff --git a/less/input-groups.less b/less/input-groups.less
index 3c05a458f..8516a79e9 100644
--- a/less/input-groups.less
+++ b/less/input-groups.less
@@ -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;