From: ysds Date: Wed, 17 Jan 2018 23:36:57 +0000 (+0900) Subject: Use .list-group-item-action for list group item variant (#25338) X-Git-Tag: v4.0.0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1a754863e4a80e0182d9783a0af84540c51d03b;p=thirdparty%2Fbootstrap.git Use .list-group-item-action for list group item variant (#25338) --- diff --git a/scss/mixins/_list-group.scss b/scss/mixins/_list-group.scss index 278787bbed..607ffcb86b 100644 --- a/scss/mixins/_list-group.scss +++ b/scss/mixins/_list-group.scss @@ -4,21 +4,18 @@ .list-group-item-#{$state} { color: $color; background-color: $background; - } - - a.list-group-item-#{$state}, - button.list-group-item-#{$state} { - color: $color; - @include hover-focus { - color: $color; - background-color: darken($background, 5%); - } + &.list-group-item-action { + @include hover-focus { + color: $color; + background-color: darken($background, 5%); + } - &.active { - color: #fff; - background-color: $color; - border-color: $color; + &.active { + color: #fff; + background-color: $color; + border-color: $color; + } } } }