Utilize the media-breakpoint-between mixin to apply the .btn-sm
sizing to all elements with the class .btn
...
/* Apply .btn-sm size to all .btn on xs screens */
@include media-breakpoint-between(xs,sm){
.btn {
@include button-size($btn-padding-y-sm, $btn-padding-x-sm, $font-size-sm, $btn-border-radius-sm);
}
}
Update - Bootstrap 4.1
The
button-size
mixin has been updated to:
@include media-breakpoint-between(xs,sm){
.btn {
@include button-size($input-btn-padding-y-sm, $input-btn-padding-x-sm, $font-size-sm, $line-height-sm, $btn-border-radius-sm);
}
}