1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-22 15:39:59 +00:00

Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into v4-dev

This commit is contained in:
Mark Otto 2017-07-01 23:36:11 -07:00
commit 7bce8648ed

View File

@ -3,16 +3,12 @@
// 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;
@include box-shadow($btn-box-shadow); @include box-shadow($btn-box-shadow);
// Hover and focus styles are shared
&:hover { &:hover {
@include color-yiq($background); @include color-yiq($background);
background-color: $active-background; background-color: $active-background;