2017-10-03 11:34:56 +08:00
|
|
|
// stylelint-disable declaration-no-important
|
|
|
|
|
2014-12-03 06:02:35 +08:00
|
|
|
// Contextual backgrounds
|
|
|
|
|
2019-06-27 16:46:42 +08:00
|
|
|
@mixin bg-variant($parent, $color, $ignore-warning: false) {
|
2014-12-03 06:02:35 +08:00
|
|
|
#{$parent} {
|
2015-10-30 12:40:42 +08:00
|
|
|
background-color: $color !important;
|
2014-12-03 06:02:35 +08:00
|
|
|
}
|
2017-12-23 11:41:13 +08:00
|
|
|
a#{$parent},
|
|
|
|
button#{$parent} {
|
2019-07-24 15:53:13 +08:00
|
|
|
@include hover-focus() {
|
2015-12-10 15:51:09 +08:00
|
|
|
background-color: darken($color, 10%) !important;
|
2015-01-01 17:05:01 +08:00
|
|
|
}
|
2014-12-03 06:02:35 +08:00
|
|
|
}
|
2019-11-27 01:12:00 +08:00
|
|
|
@include deprecate("The `bg-variant` mixin", "v4.4.0", "v5", $ignore-warning);
|
2014-12-03 06:02:35 +08:00
|
|
|
}
|
2017-10-20 00:03:33 +08:00
|
|
|
|
2020-04-18 14:12:51 +08:00
|
|
|
@mixin bg-gradient-variant($parent, $color, $ignore-warning: false) {
|
2017-10-20 00:03:33 +08:00
|
|
|
#{$parent} {
|
|
|
|
background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x !important;
|
|
|
|
}
|
2020-05-13 00:04:19 +08:00
|
|
|
@include deprecate("The `bg-gradient-variant` mixin", "v4.5.0", "v5", $ignore-warning);
|
2017-10-20 00:03:33 +08:00
|
|
|
}
|