diff options
| author | Mark Otto <[email protected]> | 2017-07-01 23:14:00 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2017-07-01 23:25:28 -0700 |
| commit | 4b6d2c0b3c86086842c99f84f050b94d3e3c4a83 (patch) | |
| tree | 58204ae1b1b915cf0a476addaa77a9bdd4bf14af | |
| parent | e7ae1d90698a618d4c7847621c50a13ce31ae7f9 (diff) | |
| download | bootstrap-4b6d2c0b3c86086842c99f84f050b94d3e3c4a83.tar.xz bootstrap-4b6d2c0b3c86086842c99f84f050b94d3e3c4a83.zip | |
put button active bg and border in the mixin params for more customization options
| -rw-r--r-- | scss/mixins/_buttons.scss | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scss/mixins/_buttons.scss b/scss/mixins/_buttons.scss index 1e01de867..ad397449f 100644 --- a/scss/mixins/_buttons.scss +++ b/scss/mixins/_buttons.scss @@ -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; |
