diff options
| author | Mark Otto <[email protected]> | 2013-02-28 21:19:02 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-02-28 21:19:02 -0800 |
| commit | bfc4aaf6e84f20728258672276ccc9db84638082 (patch) | |
| tree | 75aa91d0929b24257ca67ac3b3b7ae611faa2b19 /less/button-groups.less | |
| parent | b19eb88b5abb7fd9dfc3aacc7ac3d296e1e98861 (diff) | |
| download | bootstrap-bfc4aaf6e84f20728258672276ccc9db84638082.tar.xz bootstrap-bfc4aaf6e84f20728258672276ccc9db84638082.zip | |
Holy fucking shit fix that input group with buttons rounded corner noise
Diffstat (limited to 'less/button-groups.less')
| -rw-r--r-- | less/button-groups.less | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/less/button-groups.less b/less/button-groups.less index a816a1ae1..ddb549e4b 100644 --- a/less/button-groups.less +++ b/less/button-groups.less @@ -16,7 +16,17 @@ display: inline-block; vertical-align: middle; // match .btn alignment given font-size hack above > .btn { + position: relative; float: left; + // Prevent double borders when buttons are next to each other + + btn { + margin-left: -1px; + } + // Bring the "active" button to the front + &:hover, + &:active { + z-index: 2; + } } } @@ -116,13 +126,14 @@ .btn-group-vertical > .btn { display: block; float: none; - border-radius: 0; max-width: 100%; } .btn-group-vertical .btn:first-child { + border-radius: 0; // Needs to be here for specificity since we're not zeroing them out again .border-top-radius(@border-radius-base); } .btn-group-vertical .btn:last-child { + border-radius: 0; // Needs to be here for specificity since we're not zeroing them out again .border-bottom-radius(@border-radius-base); } .btn-group-vertical .btn-large:first-child { |
