aboutsummaryrefslogtreecommitdiff
path: root/assets/css/lib/bootstrap/mixins/_background-variant.scss
blob: 4993bd2b80126aa0523cd506f649d033ba1d07dd (plain)
1
2
3
4
5
6
7
8
9
10
11
// Contextual backgrounds

// [converter] $parent hack
@mixin bg-variant($parent, $color) {
  #{$parent} {
    background-color: $color;
  }
  a#{$parent}:hover {
    background-color: darken($color, 10%);
  }
}