diff options
| author | Vicary Archangel <[email protected]> | 2015-12-12 02:22:48 +0800 |
|---|---|---|
| committer | Vicary Archangel <[email protected]> | 2015-12-12 02:22:48 +0800 |
| commit | 54fdb45fa507ca0c3ddafdf1434df61abd82ed8a (patch) | |
| tree | 9f00063fd2c2ff4ee8cbc0a4d9b28d39c9bda629 | |
| parent | c0f931d05040090fea94b171f8cecccb79369f0e (diff) | |
| download | bootstrap-54fdb45fa507ca0c3ddafdf1434df61abd82ed8a.tar.xz bootstrap-54fdb45fa507ca0c3ddafdf1434df61abd82ed8a.zip | |
Alternative fix to double border
| -rw-r--r-- | scss/_input-group.scss | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/scss/_input-group.scss b/scss/_input-group.scss index e068ffa3f..f514481cd 100644 --- a/scss/_input-group.scss +++ b/scss/_input-group.scss @@ -128,6 +128,9 @@ .input-group-btn:not(:first-child) > .btn-group:not(:last-child) > .btn { @include border-right-radius(0); } +.input-group-addon:not(:last-child) { + border-right: 0; +} .input-group .form-control:not(:first-child), .input-group-addon:not(:first-child), .input-group-btn:not(:first-child) > .btn, @@ -137,12 +140,10 @@ .input-group-btn:not(:last-child) > .btn-group:not(:first-child) > .btn { @include border-left-radius(0); } -.input-group .form-control:not(:first-child), -.input-group-addon:not(:first-child) { +.form-control + .input-group-addon:not(:first-child) { border-left: 0; } - // // Button input groups // @@ -168,11 +169,17 @@ } // Negative margin to only have a single, shared border between the two + &:not(:last-child) { + > .btn, + > .btn-group { + margin-right: (-$input-btn-border-width); + } + } &:not(:first-child) { > .btn, > .btn-group { z-index: 2; - margin-left: (-$input-btn-border-width) * 2; + margin-left: (-$input-btn-border-width); // Because specificity @include hover-focus-active { z-index: 3; |
