_background-variant.scss 233 B

123456789101112
  1. // Contextual backgrounds
  2. // [converter] $parent hack
  3. @mixin bg-variant($parent, $color) {
  4. #{$parent} {
  5. background-color: $color;
  6. }
  7. a#{$parent}:hover,
  8. a#{$parent}:focus {
  9. background-color: darken($color, 10%);
  10. }
  11. }