diff options
| author | Mark Otto <[email protected]> | 2013-12-08 23:55:03 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-12-08 23:55:03 -0800 |
| commit | 7d4171ccd1463b5010405bd662f7f4db07d73220 (patch) | |
| tree | 0fbcf2cb2534f26f8b1aa78b21092bfd1e532a65 | |
| parent | 6df909ad9b85e5e19ff7760da8981bf7563a5bb9 (diff) | |
| parent | 9ceff600571b40acd7c02ae315a6f79da3b25d74 (diff) | |
| download | bootstrap-7d4171ccd1463b5010405bd662f7f4db07d73220.tar.xz bootstrap-7d4171ccd1463b5010405bd662f7f4db07d73220.zip | |
Merge pull request #11792 from twbs/list-group-nest
more nesting in .list-group-item-variant mixin
| -rw-r--r-- | less/mixins.less | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/less/mixins.less b/less/mixins.less index 9ef72fef7..59c4c9573 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; + } } } } |
