mirror of
https://github.com/flarum/framework.git
synced 2024-11-24 19:34:46 +08:00
29 lines
541 B
Plaintext
29 lines
541 B
Plaintext
.Avatar {
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
color: #fff;
|
|
text-align: center;
|
|
vertical-align: top;
|
|
background-color: @control-bg;
|
|
font-weight: normal;
|
|
.Avatar--size(48px);
|
|
|
|
img {
|
|
display: inline-block;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 100%;
|
|
vertical-align: top;
|
|
// Prevent blurriness in Chrome
|
|
image-rendering: -webkit-optimize-contrast;
|
|
}
|
|
}
|
|
|
|
.Avatar--size(@size) {
|
|
width: @size;
|
|
height: @size;
|
|
border-radius: @size;
|
|
font-size: @size / 2;
|
|
line-height: @size;
|
|
}
|