mirror of
https://github.com/flarum/framework.git
synced 2025-02-09 05:07:13 +08:00
![Sami Mazouz](/assets/img/avatar_default.png)
* refactor: Avatar classes refactor * refactor: Badge classes refactor * chore: Remove commented dead code * chore: Remove SignUpModal dead CSS code Flarum seem to have had some kind of user display in the sign up modal on successful sign up, which no longer exists. https://github.com/flarum/core/blob/v0.1.0-beta/js/forum/src/components/SignUpModal.js#L111 * chore: Deprecate unneeded vendor mixins * chore: Normalize property values format Co-authored-by: David Wheatley <hi@davwheat.dev> * chore: Remove @-webkit-keyframes * chore: Combine animation properties * chore: Avoid `all` for transition * chore: translate3d is no longer necessary for hardware acceleration * fix: Lost cursor pointer to normalize update * chore: Use CSS variables for more things * chore: Remove unecessary overspecification Co-authored-by: David Wheatley <hi@davwheat.dev>
40 lines
615 B
Plaintext
40 lines
615 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 @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 {
|
|
background: #888;
|
|
}
|