From: Chris Rebert Date: Mon, 9 Dec 2013 07:34:24 +0000 (-0800) Subject: more nesting in .list-group-item-variant mixin X-Git-Tag: v3.1.0~148^2~12^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11792%2Fhead;p=thirdparty%2Fbootstrap.git more nesting in .list-group-item-variant mixin --- diff --git a/less/mixins.less b/less/mixins.less index 9ef72fef70..59c4c9573a 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -443,23 +443,24 @@ .list-group-item-@{state} { color: @color; background-color: @background; - } - a.list-group-item-@{state} { - color: @color; - - .list-group-item-heading { color: inherit; } - &:hover, - &:focus { + a& { color: @color; - background-color: darken(@background, 5%); - } - &.active, - &.active:hover, - &.active:focus { - color: #fff; - background-color: @color; - border-color: @color; + + .list-group-item-heading { color: inherit; } + + &:hover, + &:focus { + color: @color; + background-color: darken(@background, 5%); + } + &.active, + &.active:hover, + &.active:focus { + color: #fff; + background-color: @color; + border-color: @color; + } } } }