aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2013-12-08 23:34:24 -0800
committerChris Rebert <[email protected]>2013-12-08 23:34:24 -0800
commit9ceff600571b40acd7c02ae315a6f79da3b25d74 (patch)
tree0fbcf2cb2534f26f8b1aa78b21092bfd1e532a65
parent6df909ad9b85e5e19ff7760da8981bf7563a5bb9 (diff)
downloadbootstrap-9ceff600571b40acd7c02ae315a6f79da3b25d74.tar.xz
bootstrap-9ceff600571b40acd7c02ae315a6f79da3b25d74.zip
more nesting in .list-group-item-variant mixin
-rw-r--r--less/mixins.less31
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;
+ }
}
}
}