Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 1 | // Contextual backgrounds |
2 | |||||
3 | // [converter] $parent hack | ||||
4 | @mixin bg-variant($parent, $color) { | ||||
5 | #{$parent} { | ||||
6 | background-color: $color; | ||||
7 | } | ||||
8 | a#{$parent}:hover, | ||||
9 | a#{$parent}:focus { | ||||
10 | background-color: darken($color, 10%); | ||||
11 | } | ||||
12 | } |