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:
parent
e7ae1d9069
commit
4b6d2c0b3c
@ -3,10 +3,7 @@
|
||||
// Easily pump out default styles, as well as :hover, :focus, :active,
|
||||
// and disabled options for all buttons
|
||||
|
||||
@mixin button-variant($background, $border) {
|
||||
$active-background: darken($background, 7.5%);
|
||||
$active-border: darken($border, 10%);
|
||||
|
||||
@mixin button-variant($background, $border, $active-background: darken($background, 7.5%), $active-border: darken($border, 10%)) {
|
||||
@include color-yiq($background);
|
||||
background-color: $background;
|
||||
border-color: $border;
|
||||
|
Loading…
Reference in New Issue
Block a user