Commit 8bea86e2 authored by Mark Otto's avatar Mark Otto

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

parent e5038a33
...@@ -3791,6 +3791,14 @@ textarea.input-group-sm > .input-group-btn > .btn { ...@@ -3791,6 +3791,14 @@ textarea.input-group-sm > .input-group-btn > .btn {
white-space: nowrap; 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 { .input-group-btn > .btn {
position: relative; position: relative;
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -113,6 +113,14 @@ ...@@ -113,6 +113,14 @@
.input-group-btn { .input-group-btn {
position: relative; position: relative;
white-space: nowrap; 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 { .input-group-btn > .btn {
position: relative; position: relative;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment