1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

fixes #9241: enable collapsing for labels, in addition to badges, when empty

This commit is contained in:
Mark Otto 2013-08-11 12:43:43 -07:00
parent d5290c61d8
commit 6b6241feaa
4 changed files with 11 additions and 2 deletions

View file

@ -4127,6 +4127,10 @@ a.thumbnail:focus {
cursor: pointer; cursor: pointer;
} }
.label:empty {
display: none;
}
.label-default { .label-default {
background-color: #999999; background-color: #999999;
} }

File diff suppressed because one or more lines are too long

View file

@ -18,7 +18,7 @@
background-color: @badge-bg; background-color: @badge-bg;
border-radius: @badge-border-radius; border-radius: @badge-border-radius;
// Empty labels/badges collapse // Empty badges collapse automatically (not available in IE8)
&:empty { &:empty {
display: none; display: none;
} }

View file

@ -23,6 +23,11 @@
cursor: pointer; cursor: pointer;
} }
} }
// Empty labels collapse automatically (not available in IE8)
&:empty {
display: none;
}
} }
// Colors // Colors