2015-07-17 13:17:49 +08:00
|
|
|
.Badge {
|
2015-08-02 15:57:04 +08:00
|
|
|
.Badge--size(22px);
|
2021-08-22 02:34:07 +08:00
|
|
|
width: var(--size);
|
|
|
|
height: var(--size);
|
|
|
|
border-radius: calc(~"var(--size) / 2");
|
2021-08-16 17:17:48 +08:00
|
|
|
background: var(--badge-bg);
|
|
|
|
color: var(--badge-color);
|
2021-08-22 02:34:07 +08:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2015-07-17 13:17:49 +08:00
|
|
|
vertical-align: middle;
|
2021-11-05 05:34:18 +08:00
|
|
|
box-shadow: 0 2px 4px var(--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-icon {
|
2021-08-22 02:34:07 +08:00
|
|
|
font-size: calc(~"0.56 * var(--size)");
|
2015-03-05 09:37:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-22 02:34:07 +08:00
|
|
|
.Badge--size(@size) {
|
|
|
|
--size: @size;
|
|
|
|
}
|
|
|
|
|
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 {
|
2021-11-05 05:34:18 +08:00
|
|
|
--badge-bg: var(--badge-hidden-bg);
|
2015-09-22 16:18:21 +08:00
|
|
|
}
|