2022-12-10 12:14:48 +03:00
|
|
|
.avatar {
|
|
|
|
display: inline-block;
|
|
|
|
line-height: 0;
|
|
|
|
aspect-ratio: 1/1;
|
|
|
|
border-radius: 50%;
|
|
|
|
overflow: hidden;
|
|
|
|
background-color: var(--bg-faded-color);
|
2022-12-27 06:00:05 +03:00
|
|
|
box-shadow: 0 0 0 1px var(--bg-blur-color);
|
2022-12-10 12:14:48 +03:00
|
|
|
flex-shrink: 0;
|
2023-01-01 11:01:44 +03:00
|
|
|
vertical-align: middle;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2023-03-13 09:24:53 +03:00
|
|
|
.avatar.has-alpha {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2023-04-10 19:26:43 +03:00
|
|
|
.avatar:not(.has-alpha).squircle {
|
2023-06-12 18:52:44 +03:00
|
|
|
border-radius: 25%;
|
2023-04-10 19:26:43 +03:00
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
|
|
|
|
.avatar img {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
object-fit: cover;
|
|
|
|
background-color: var(--img-bg-color);
|
2022-12-27 06:00:05 +03:00
|
|
|
}
|
2023-03-13 05:10:21 +03:00
|
|
|
|
2023-03-13 09:24:53 +03:00
|
|
|
.avatar[data-loaded],
|
|
|
|
.avatar[data-loaded] img {
|
2023-03-13 05:10:21 +03:00
|
|
|
box-shadow: none;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|