cycat-project-website/_sass/bootstrap/mixins/_background-variant.scss

23 lines
581 B
SCSS
Raw Normal View History

2018-12-09 08:21:01 +01:00
// stylelint-disable declaration-no-important
// Contextual backgrounds
2020-08-23 12:01:06 +02:00
@mixin bg-variant($parent, $color, $ignore-warning: false) {
2018-12-09 08:21:01 +01:00
#{$parent} {
background-color: $color !important;
}
a#{$parent},
button#{$parent} {
2020-08-23 12:01:06 +02:00
@include hover-focus() {
2018-12-09 08:21:01 +01:00
background-color: darken($color, 10%) !important;
}
}
2020-08-23 12:01:06 +02:00
@include deprecate("The `bg-variant` mixin", "v4.4.0", "v5", $ignore-warning);
2018-12-09 08:21:01 +01:00
}
@mixin bg-gradient-variant($parent, $color) {
#{$parent} {
background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x !important;
}
}