mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-12-24 11:18:14 +03:00
5aa9649935
Because Safari ain't respecting border-radius with outlines
17 lines
No EOL
330 B
CSS
17 lines
No EOL
330 B
CSS
.avatar {
|
|
display: inline-block;
|
|
line-height: 0;
|
|
aspect-ratio: 1/1;
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
background-color: var(--bg-faded-color);
|
|
border: 1px solid var(--outline-color);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.avatar img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
background-color: var(--img-bg-color);
|
|
} |