From bfc4aaf6e84f20728258672276ccc9db84638082 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 28 Feb 2013 21:19:02 -0800 Subject: Holy fucking shit fix that input group with buttons rounded corner noise --- less/button-groups.less | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'less/button-groups.less') 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 { -- cgit v1.2.3