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