2015-07-17 13:17:49 +08:00
|
|
|
.Badge {
|
2015-08-02 15:57:04 +08:00
|
|
|
.Badge--size(22px);
|
2015-07-17 13:17:49 +08:00
|
|
|
background: @muted-color;
|
|
|
|
color: #fff;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
text-align: center;
|
2016-03-28 07:55:47 +08:00
|
|
|
.box-shadow(0 2px 4px @shadow-color);
|
2015-03-05 09:37:16 +08:00
|
|
|
|
2015-07-17 13:17:49 +08:00
|
|
|
.Badge-label {
|
|
|
|
display: none;
|
2015-03-05 09:37:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-17 13:17:49 +08:00
|
|
|
.Badge--size(@size) {
|
2015-03-05 09:37:16 +08:00
|
|
|
width: @size;
|
|
|
|
height: @size;
|
|
|
|
border-radius: @size / 2;
|
2016-03-11 09:31:47 +08:00
|
|
|
line-height: @size - 1px;
|
2015-07-17 13:17:49 +08:00
|
|
|
|
|
|
|
&, .Badge-icon {
|
2015-08-02 15:57:04 +08:00
|
|
|
font-size: 0.56 * @size;
|
2015-03-05 09:37:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-17 13:17:49 +08:00
|
|
|
.badges {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
|
|
|
|
&, > li {
|
|
|
|
display: inline-block;
|
2015-03-05 09:37:16 +08:00
|
|
|
}
|
|
|
|
}
|
2015-09-22 16:18:21 +08:00
|
|
|
|
|
|
|
.Badge--hidden {
|
|
|
|
background: #888;
|
|
|
|
}
|