From 469231c5e732d07d040da7f77df978e6cab2ea7b Mon Sep 17 00:00:00 2001 From: Haibin Yu Date: Thu, 15 Oct 2015 23:36:48 +0800 Subject: [PATCH] fix btn-group mixin bug --- style/mixins/button.less | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/style/mixins/button.less b/style/mixins/button.less index cc03a34fb3..bf65a1fec9 100644 --- a/style/mixins/button.less +++ b/style/mixins/button.less @@ -253,15 +253,15 @@ padding-left: 8px; } - > & { + & > & { float: left; } - > &:not(:first-child):not(:last-child) > .@{btnClassName} { + & > &:not(:first-child):not(:last-child) > .@{btnClassName} { border-radius: 0; } - > &:first-child:not(:last-child) { + & > &:first-child:not(:last-child) { > .@{btnClassName}:last-child { border-bottom-right-radius: 0; border-top-right-radius: 0; @@ -269,7 +269,7 @@ } } - > &:last-child:not(:first-child) > .@{btnClassName}:first-child { + & > &:last-child:not(:first-child) > .@{btnClassName}:first-child { border-bottom-left-radius: 0; border-top-left-radius: 0; padding-left: 8px;