summaryrefslogtreecommitdiff
path: root/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_background-variant.scss
blob: 4c7769e13a3665a5cb9b12884f3ed82cfb277f34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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%);
  }
}