Debian Codegraph @

style/_icons.scss

raw
1 .sd-octicon,
2 .sd-material-icon {
3 display: inline-block;
4 fill: currentColor;
5 vertical-align: middle;
6 }
7
8 $avatar-sizes: (
9 xs: 1rem,
10 sm: 3rem,
11 md: 5rem,
12 lg: 7rem,
13 xl: 10rem,
14 inherit: inherit,
15 initial: initial
16 );
17
18 @each $size, $value in $avatar-sizes {
19 .sd-avatar-#{$size} {
20 border-radius: 50%;
21 object-fit: cover; /* Keep the image aspect ratio */
22 object-position: center; /* Center the image within the element */
23 width: $value;
24 height: $value;
25 }
26 }