Skip to content

Commit

Permalink
Merge pull request #15052 from twbs/badge-in-non-anchor-list-group-item
Browse files Browse the repository at this point in the history
Badges: fix active styles when in non-anchor `.list-group-item`
  • Loading branch information
mdo committed Nov 9, 2014
2 parents 5670dd8 + a05f075 commit 9914816
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 7 additions & 1 deletion less/badges.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,17 @@
}

// Account for badges in navs
a.list-group-item.active > &,
.list-group-item.active > &,
.nav-pills > .active > a > & {
color: @badge-active-color;
background-color: @badge-active-bg;
}
.list-group-item > & {
float: right;
}
.list-group-item > & + & {
margin-right: 5px;
}
.nav-pills > li > a > & {
margin-left: 3px;
}
Expand Down
8 changes: 0 additions & 8 deletions less/list-group.less
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@
margin-bottom: 0;
.border-bottom-radius(@list-group-border-radius);
}

// Align badges within list items
> .badge {
float: right;
}
> .badge + .badge {
margin-right: 5px;
}
}


Expand Down

0 comments on commit 9914816

Please sign in to comment.