diff options
Diffstat (limited to 'assets/stylesheets/bootstrap/mixins/_list-group.scss')
-rw-r--r-- | assets/stylesheets/bootstrap/mixins/_list-group.scss | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/assets/stylesheets/bootstrap/mixins/_list-group.scss b/assets/stylesheets/bootstrap/mixins/_list-group.scss index c478eeb..a40dda9 100644 --- a/assets/stylesheets/bootstrap/mixins/_list-group.scss +++ b/assets/stylesheets/bootstrap/mixins/_list-group.scss @@ -1,32 +1,30 @@ // List Groups @mixin list-group-item-variant($state, $background, $color) { - .list-group-item-#{$state} { + .list-group-item-#{state} { color: $color; background-color: $background; - - // [converter] extracted a&, button& to a.list-group-item-#{$state}, button.list-group-item-#{$state} } - a.list-group-item-#{$state}, - button.list-group-item-#{$state} { + a.list-group-item-#{state}, + button.list-group-item-#{state} { color: $color; .list-group-item-heading { color: inherit; } - &:hover, - &:focus { + @include hover-focus { color: $color; background-color: darken($background, 5%); } - &.active, - &.active:hover, - &.active:focus { - color: #fff; - background-color: $color; - border-color: $color; + + &.active { + @include plain-hover-focus { + color: #fff; + background-color: $color; + border-color: $color; + } } } } |