0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-28 10:24:19 +01:00

put button active bg and border in the mixin params for more customization options

This commit is contained in:
Mark Otto 2017-07-01 23:14:00 -07:00 committed by Mark Otto
parent e7ae1d9069
commit 4b6d2c0b3c

View File

@ -3,10 +3,7 @@
// Easily pump out default styles, as well as :hover, :focus, :active, // Easily pump out default styles, as well as :hover, :focus, :active,
// and disabled options for all buttons // and disabled options for all buttons
@mixin button-variant($background, $border) { @mixin button-variant($background, $border, $active-background: darken($background, 7.5%), $active-border: darken($border, 10%)) {
$active-background: darken($background, 7.5%);
$active-border: darken($border, 10%);
@include color-yiq($background); @include color-yiq($background);
background-color: $background; background-color: $background;
border-color: $border; border-color: $border;