From d9b4f7b032f058edf7ee1b2964f1b624df2fff5c Mon Sep 17 00:00:00 2001 From: "yehor.sergeenko" Date: Sat, 11 Mar 2017 14:26:11 +0100 Subject: feat(enhancement): support for any type of elements (e.g. ) in button groups --- src/buttons.less | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/buttons.less b/src/buttons.less index 5e6fcb8..56f52d1 100644 --- a/src/buttons.less +++ b/src/buttons.less @@ -151,15 +151,15 @@ .btn { flex: 1 0 auto; - &:first-of-type:not(:last-of-type) { + &:first-child:not(:last-child) { border-bottom-right-radius: 0; border-top-right-radius: 0; } - &:not(:first-of-type):not(:last-of-type) { + &:not(:first-child):not(:last-child) { border-radius: 0; margin-left: -.1rem; } - &:last-of-type:not(:first-of-type) { + &:last-child:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; margin-left: -.1rem; -- cgit v1.3.1-23-gd82d