0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00
Bootstrap/scss/mixins/_background-variant.scss

24 lines
695 B
SCSS
Raw Normal View History

2017-10-03 05:34:56 +02:00
// stylelint-disable declaration-no-important
2014-12-02 23:02:35 +01:00
// Contextual backgrounds
@mixin bg-variant($parent, $color, $ignore-warning: false) {
2014-12-02 23:02:35 +01:00
#{$parent} {
background-color: $color !important;
2014-12-02 23:02:35 +01:00
}
a#{$parent},
button#{$parent} {
@include hover-focus() {
background-color: darken($color, 10%) !important;
}
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
}
@mixin bg-gradient-variant($parent, $color, $ignore-warning: false) {
#{$parent} {
background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x !important;
}
2020-05-12 18:04:19 +02:00
@include deprecate("The `bg-gradient-variant` mixin", "v4.5.0", "v5", $ignore-warning);
}