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

14 lines
252 B
SCSS
Raw Permalink Normal View History

2016-06-26 16:37:52 +00:00
// 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%);
}
}
}