]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Use .list-group-item-action for list group item variant (#25338)
authorysds <fellows3@gmail.com>
Wed, 17 Jan 2018 23:36:57 +0000 (08:36 +0900)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 17 Jan 2018 23:36:57 +0000 (01:36 +0200)
scss/mixins/_list-group.scss

index 278787bbede705a7b41485dde0c4b2a3ca9eace9..607ffcb86bf3a51de4c05f805339c68fdff0d0e2 100644 (file)
@@ -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;
+      }
     }
   }
 }