phanpy/src/components/avatar.css

32 lines
584 B
CSS
Raw Normal View History

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