mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +01:00
Badges: fix active styles when in non-anchor .list-group-item
This commit is contained in:
parent
df28b7e25f
commit
a05f07528a
@ -44,11 +44,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Account for badges in navs
|
// Account for badges in navs
|
||||||
a.list-group-item.active > &,
|
.list-group-item.active > &,
|
||||||
.nav-pills > .active > a > & {
|
.nav-pills > .active > a > & {
|
||||||
color: @badge-active-color;
|
color: @badge-active-color;
|
||||||
background-color: @badge-active-bg;
|
background-color: @badge-active-bg;
|
||||||
}
|
}
|
||||||
|
.list-group-item > & {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.list-group-item > & + & {
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
.nav-pills > li > a > & {
|
.nav-pills > li > a > & {
|
||||||
margin-left: 3px;
|
margin-left: 3px;
|
||||||
}
|
}
|
||||||
|
@ -35,14 +35,6 @@
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
.border-bottom-radius(@list-group-border-radius);
|
.border-bottom-radius(@list-group-border-radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Align badges within list items
|
|
||||||
> .badge {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
> .badge + .badge {
|
|
||||||
margin-right: 5px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user