website/_sass/bootstrap/scss/mixins/_background-variant.scss
2024-01-20 16:06:39 +01:00

14 lines
252 B
SCSS
Executable file

// Contextual backgrounds
@mixin bg-variant($parent, $color) {
#{$parent} {
color: #fff !important;
background-color: $color !important;
}
a#{$parent} {
@include hover-focus {
background-color: darken($color, 10%);
}
}
}