// // Mixins: Backgrounds // // Background Variant @mixin background-variant($name, $color) { .bg-#{$name} { background-color: #{$color} !important; &, > a { color: color-yiq($color) !important; } &.btn { &:hover { border-color: darken($color, 10%); color: darken(color-yiq($color), 7.5%); } &:not(:disabled):not(.disabled):active, &:not(:disabled):not(.disabled).active, &:active, &.active { background-color: darken($color, 10%) !important; border-color: darken($color, 12.5%); color: color-yiq(darken($color, 10%)); } } } } // Background Gradient Variant @mixin background-gradient-variant($name, $color) { .bg-gradient-#{$name} { background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x !important; color: color-yiq($color); &.btn { &:not(:disabled):not(.disabled):active, &:not(:disabled):not(.disabled).active, .show > &.dropdown-toggle { background-image: none !important; } &:hover { background: $color linear-gradient(180deg, mix($body-bg, darken($color, 7.5%), 15%), darken($color, 7.5%)) repeat-x !important; border-color: darken($color, 10%); color: darken(color-yiq($color), 7.5%); } &:not(:disabled):not(.disabled):active, &:not(:disabled):not(.disabled).active, &:active, &.active { background: $color linear-gradient(180deg, mix($body-bg, darken($color, 10%), 15%), darken($color, 10%)) repeat-x !important; border-color: darken($color, 12.5%); color: color-yiq(darken($color, 10%)); } &:disabled, &.disabled { background-image: none !important; border-color: $color; color: color-yiq($color); } } } }