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

23 lines
581 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) {
#{$parent} {
background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x !important;
}
}