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