tupali_fork/temas/magazine/sass/bootstrap/mixins/_background-variant.scss

13 lines
233 B
SCSS
Raw Normal View History

2016-10-29 15:07:15 +00:00
// Contextual backgrounds
// [converter] $parent hack
@mixin bg-variant($parent, $color) {
#{$parent} {
background-color: $color;
}
a#{$parent}:hover,
a#{$parent}:focus {
background-color: darken($color, 10%);
}
}