// We use these to control left and right radius on first/last buttons in the group.
@if $radius == true {
- &:first-child > a, &:first-child > button { @include side-radius($default-float, $button-radius); }
- &:last-child > a, &:last-child > button { @include side-radius($default-opposite, $button-radius); }
+ &:first-child, &:first-child > a, &:first-child > button { @include side-radius($default-float, $button-radius); }
+ &:last-child, &:last-child > a, &:last-child > button { @include side-radius($default-opposite, $button-radius); }
}
@else if $radius {
- &:first-child > a, &:first-child > button { @include side-radius($default-float, $radius); }
- &:last-child > a, &:last-child > button { @include side-radius($default-opposite, $radius); }
+ &:first-child, &:first-child > a, &:first-child > button { @include side-radius($default-float, $radius); }
+ &:last-child, &:last-child > a, &:last-child > button { @include side-radius($default-opposite, $radius); }
}
// We use this to make the buttons even width across their container
/* Button Groups */
.button-group { @include button-group-container;
- li { @include button-group-style(); }
+ &> * { @include button-group-style(); }
- &.radius li { @include button-group-style($radius:$button-radius, $float:null); }
- &.round li { @include button-group-style($radius:1000px, $float:null); }
+ &.radius > * { @include button-group-style($radius:$button-radius, $float:null); }
+ &.round > * { @include button-group-style($radius:$button-round, $float:null); }
@for $i from 2 through 8 {
&.even#{-$i} li { @include button-group-style($even:$i, $float:null); }
// We use this to set the default radius used throughout the core.
$button-radius: $global-radius !default;
+$button-round: 100% !default;
// We use this to set default opacity for disabled buttons.
$button-disabled-opacity: 0.6 !default;
@if $include-html-button-classes {
// Default styles applied outside of media query
- .button {
+ button, .button {
@include button-base;
@include button-size;
@include button-style;
&.tiny { @include button-size($padding:false, $full-width:false); }
&.radius { @include button-style($bg:false, $radius:true); }
- &.round { @include button-style($bg:false, $radius:1000px); }
+ &.round { @include button-style($bg:false, $radius:$button-round); }
}
}
}
&.round {
&>*:first-child, &>*:first-child * {
- @include side-radius(left, 1000px);
+ @include side-radius(left, $button-round);
}
&>*:last-child, &>*:last-child * {
- @include side-radius(right, 1000px);
+ @include side-radius(right, $button-round);
}
}
}