/// @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;
}
}