philomena/assets/css/elements/avatar.css

22 lines
444 B
CSS
Raw Permalink Normal View History

2024-05-01 00:10:05 +02:00
@define-mixin avatar-size $size {
.avatar--$(size) {
width: var(--avatar-$(size)-size);
height: var(--avatar-$(size)-size);
border-radius: var(--border-radius-avatar);
overflow: hidden;
}
.avatar--$(size) img {
max-width: var(--avatar-$(size)-size);
height: var(--avatar-$(size)-size);
}
2023-11-23 17:07:49 +01:00
}
2024-05-01 00:10:05 +02:00
.avatar--square {
border-radius: 0;
}
@mixin avatar-size navbar;
@mixin avatar-size small;
@mixin avatar-size large;