From a56617303308f4fb8d7ee4a1dde76f6716840657 Mon Sep 17 00:00:00 2001 From: slavanga Date: Tue, 1 Dec 2015 20:56:34 +0100 Subject: [PATCH] Simplify expanded button groups --- scss/components/_button-group.scss | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/scss/components/_button-group.scss b/scss/components/_button-group.scss index 994b992bd..160616ade 100644 --- a/scss/components/_button-group.scss +++ b/scss/components/_button-group.scss @@ -46,16 +46,20 @@ $buttongroup-expand-max: 6 !default; /// @param {Keyword|Number} $count [auto] - Number of buttons inside the button group. Set to `auto` to generate CSS that will account for a variable number of buttons. /// @param {String} $selector [$buttongroup-child-selector] - Selector for the buttons inside a button group. @mixin button-group-expand( - $count: auto, $selector: $buttongroup-child-selector ) { + display: table; + table-layout: fixed; + width: 100%; + + &::before, + &::after { + display: none; + } + #{$selector} { - @if $count == auto { - @include auto-width($buttongroup-expand-max, $selector); - } - @else if type-of($count) == 'number' { - width: percentage(1 / $count); - } + display: table-cell; + float: none; } } -- 2.47.3