phanpy/src/components/avatar.css

19 lines
361 B
CSS
Raw Normal View History

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);
box-shadow: 0 0 0 1px var(--bg-blur-color);
2022-12-10 12:14:48 +03:00
flex-shrink: 0;
vertical-align: middle;
2022-12-10 12:14:48 +03:00
}
.avatar img {
width: 100%;
height: 100%;
object-fit: cover;
background-color: var(--img-bg-color);
}