mirror of
https://github.com/flarum/framework.git
synced 2025-01-22 12:33:17 +08:00
40 lines
639 B
Plaintext
40 lines
639 B
Plaintext
.Badge {
|
|
.Badge--size(22px);
|
|
width: var(--size);
|
|
height: var(--size);
|
|
border-radius: calc(~"var(--size) / 2");
|
|
background: var(--badge-bg);
|
|
color: var(--badge-color);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
vertical-align: middle;
|
|
box-shadow: 0 2px 4px var(--shadow-color);
|
|
|
|
.Badge-label {
|
|
display: none;
|
|
}
|
|
|
|
&, .Badge-icon {
|
|
font-size: calc(~"0.56 * var(--size)");
|
|
}
|
|
}
|
|
|
|
.Badge--size(@size) {
|
|
--size: @size;
|
|
}
|
|
|
|
.badges {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
|
|
&, > li {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
.Badge--hidden {
|
|
--badge-bg: var(--badge-hidden-bg);
|
|
}
|