framework/less/lib/Badge.less

36 lines
530 B
Plaintext
Raw Normal View History

.Badge {
.Badge--size(23px);
border: 1px solid @body-bg;
background: @muted-color;
color: #fff;
display: inline-block;
vertical-align: middle;
text-align: center;
box-shadow: 0 2px 6px @shadow-color;
.Badge-label {
display: none;
}
}
.Badge--size(@size) {
width: @size;
height: @size;
border-radius: @size / 2;
2015-05-06 09:55:19 +08:00
line-height: @size - 5px;
&, .Badge-icon {
2015-05-06 09:55:19 +08:00
font-size: 0.56 * @size;
}
}
.badges {
margin: 0;
padding: 0;
list-style: none;
&, > li {
display: inline-block;
}
}