aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorysds <[email protected]>2018-01-18 08:36:57 +0900
committerXhmikosR <[email protected]>2018-01-18 01:36:57 +0200
commitb1a754863e4a80e0182d9783a0af84540c51d03b (patch)
treeff66ccb9d0d43349655e85a26835b12808a2f820
parent4c96f58e31b4f6aa40b4027384c8c52476fd8c68 (diff)
downloadbootstrap-b1a754863e4a80e0182d9783a0af84540c51d03b.tar.xz
bootstrap-b1a754863e4a80e0182d9783a0af84540c51d03b.zip
Use .list-group-item-action for list group item variant (#25338)
-rw-r--r--scss/mixins/_list-group.scss23
1 files changed, 10 insertions, 13 deletions
diff --git a/scss/mixins/_list-group.scss b/scss/mixins/_list-group.scss
index 278787bbe..607ffcb86 100644
--- a/scss/mixins/_list-group.scss
+++ b/scss/mixins/_list-group.scss
@@ -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;
+ }
}
}
}