#{$child-selector} {
margin: 0;
+ margin-#{$global-right}: $buttongroup-spacing;
+ margin-bottom: $buttongroup-spacing;
font-size: map-get($button-sizes, default);
@if $global-flexbox {
flex: 0 0 auto;
}
- &:not(:last-child) {
- margin-right: $buttongroup-spacing;
+ &:last-child {
+ margin-#{$global-right}: 0;
}
}
}
$count: null
) {
@if not $global-flexbox {
- margin-right: -$buttongroup-spacing;
+ margin-#{$global-right}: -$buttongroup-spacing;
&::before,
&::after {
} @else {
width: calc(#{percentage(1 / $i)} - #{$buttongroup-spacing});
}
- margin-right: $buttongroup-spacing;
+ margin-#{$global-right}: $buttongroup-spacing;
}
}
}
#{$selector} {
@if $global-flexbox {
flex: 0 0 100%;
- margin-#{$global-right}: 0;
}
@else {
width: 100%;
- border-#{$global-right}: $buttongroup-spacing solid transparent;
}
-
- &:not(:last-child) {
- @if $global-flexbox {
- margin-bottom: $buttongroup-spacing;
- }
- @else {
- border-bottom: $buttongroup-spacing solid $body-background;
- }
+ &:last-child {
+ margin-bottom: 0;
}
}
}
@else {
width: auto;
}
-
- &:not(:last-child) {
- margin-#{$global-right}: $buttongroup-spacing;
- }
+ margin-bottom: 0;
}
}
#{$buttongroup-child-selector} {
display: block;
- margin-right: 0;
+ margin-#{$global-right}: 0;
}
}
}