]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
more nesting in .list-group-item-variant mixin 11792/head
authorChris Rebert <code@rebertia.com>
Mon, 9 Dec 2013 07:34:24 +0000 (23:34 -0800)
committerChris Rebert <code@rebertia.com>
Mon, 9 Dec 2013 07:34:24 +0000 (23:34 -0800)
less/mixins.less

index 9ef72fef709621a0e7c19557b1978577cf811280..59c4c9573a4dcc0ee2724d4c3a9b17228798fc69 100644 (file)
   .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;
+      }
     }
   }
 }