mirror of
https://github.com/flarum/framework.git
synced 2025-02-19 17:34:00 +08:00

* Start of conversion to CSS variables * Use variable for Badge colors * Use variable for avatar bg * Use variable for user card bg * Use css variables for hero * Use css variables for buttons * Use css variables for sidenav links * Cleaner style attr Co-authored-by: David Wheatley <hi@davwheat.dev>
27 lines
462 B
Plaintext
27 lines
462 B
Plaintext
.Avatar {
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
color: #fff;
|
|
text-align: center;
|
|
vertical-align: top;
|
|
background-color: var(--avatar-bg);
|
|
font-weight: normal;
|
|
.Avatar--size(48px);
|
|
|
|
img {
|
|
display: inline-block;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 100%;
|
|
vertical-align: top;
|
|
}
|
|
}
|
|
|
|
.Avatar--size(@size) {
|
|
width: @size;
|
|
height: @size;
|
|
border-radius: @size;
|
|
font-size: @size / 2;
|
|
line-height: @size;
|
|
}
|