mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
fixes #10024: Use negative margin to fix the border between button and input in input groups
This commit is contained in:
parent
e5038a339c
commit
8bea86e2ef
3 changed files with 17 additions and 1 deletions
8
dist/css/bootstrap.css
vendored
8
dist/css/bootstrap.css
vendored
|
@ -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;
|
||||
}
|
||||
|
|
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue