mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Fixes #12901: Refactors list group active state for use on non-anchors
This commit is contained in:
Vendored
+9
-9
@@ -5849,24 +5849,24 @@ a.list-group-item:focus {
|
|||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.list-group-item.active,
|
.list-group-item.active,
|
||||||
a.list-group-item.active:hover,
|
.list-group-item.active:hover,
|
||||||
a.list-group-item.active:focus {
|
.list-group-item.active:focus {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #428bca;
|
background-color: #428bca;
|
||||||
border-color: #428bca;
|
border-color: #428bca;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.list-group-item.active .list-group-item-heading,
|
.list-group-item.active .list-group-item-heading,
|
||||||
a.list-group-item.active:hover .list-group-item-heading,
|
.list-group-item.active:hover .list-group-item-heading,
|
||||||
a.list-group-item.active:focus .list-group-item-heading {
|
.list-group-item.active:focus .list-group-item-heading {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.list-group-item.active .list-group-item-text,
|
.list-group-item.active .list-group-item-text,
|
||||||
a.list-group-item.active:hover .list-group-item-text,
|
.list-group-item.active:hover .list-group-item-text,
|
||||||
a.list-group-item.active:focus .list-group-item-text {
|
.list-group-item.active:focus .list-group-item-text {
|
||||||
color: #e1edf7;
|
color: #e1edf7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+9
-9
@@ -4695,22 +4695,22 @@ a.list-group-item:focus {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
}
|
}
|
||||||
a.list-group-item.active,
|
.list-group-item.active,
|
||||||
a.list-group-item.active:hover,
|
.list-group-item.active:hover,
|
||||||
a.list-group-item.active:focus {
|
.list-group-item.active:focus {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #428bca;
|
background-color: #428bca;
|
||||||
border-color: #428bca;
|
border-color: #428bca;
|
||||||
}
|
}
|
||||||
a.list-group-item.active .list-group-item-heading,
|
.list-group-item.active .list-group-item-heading,
|
||||||
a.list-group-item.active:hover .list-group-item-heading,
|
.list-group-item.active:hover .list-group-item-heading,
|
||||||
a.list-group-item.active:focus .list-group-item-heading {
|
.list-group-item.active:focus .list-group-item-heading {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
a.list-group-item.active .list-group-item-text,
|
.list-group-item.active .list-group-item-text,
|
||||||
a.list-group-item.active:hover .list-group-item-text,
|
.list-group-item.active:hover .list-group-item-text,
|
||||||
a.list-group-item.active:focus .list-group-item-text {
|
.list-group-item.active:focus .list-group-item-text {
|
||||||
color: #e1edf7;
|
color: #e1edf7;
|
||||||
}
|
}
|
||||||
.list-group-item-success {
|
.list-group-item-success {
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -64,7 +64,9 @@ a.list-group-item {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-color: @list-group-hover-bg;
|
background-color: @list-group-hover-bg;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-group-item {
|
||||||
// Active class on item itself, not parent
|
// Active class on item itself, not parent
|
||||||
&.active,
|
&.active,
|
||||||
&.active:hover,
|
&.active:hover,
|
||||||
|
|||||||
Reference in New Issue
Block a user