0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Fix buttons that come after the input (input should be under the button)

This commit is contained in:
Mark Otto 2017-10-01 21:20:47 -07:00
parent bf01f27554
commit 864c657488

View File

@ -171,6 +171,12 @@
z-index: 2;
// remove nagative margin ($input-btn-border-width) to solve overlapping issue with button.
margin-left: 0;
// When input is first, overlap the right side of it with the button(-group)
&:first-child {
margin-left: (-$input-btn-border-width);
}
// Because specificity
@include hover-focus-active {
z-index: 3;