Skip to content

Commit

Permalink
fixes #9241: enable collapsing for labels, in addition to badges, whe…
Browse files Browse the repository at this point in the history
…n empty
  • Loading branch information
mdo committed Aug 11, 2013
1 parent d5290c6 commit 6b6241f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions dist/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -4127,6 +4127,10 @@ a.thumbnail:focus {
cursor: pointer;
}

.label:empty {
display: none;
}

.label-default {
background-color: #999999;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion less/badges.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
background-color: @badge-bg;
border-radius: @badge-border-radius;

// Empty labels/badges collapse
// Empty badges collapse automatically (not available in IE8)
&:empty {
display: none;
}
Expand Down
5 changes: 5 additions & 0 deletions less/labels.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
cursor: pointer;
}
}

// Empty labels collapse automatically (not available in IE8)
&:empty {
display: none;
}
}

// Colors
Expand Down

0 comments on commit 6b6241f

Please sign in to comment.