Sha256: 836f4b4c0c7d56eebeea325ebf16319a0ee61c77838c754403a54d9a4a3e73f4
Contents?: true
Size: 1.85 KB
Versions: 59
Compression:
Stored size: 1.85 KB
Contents
@import "../tokens/border_radius"; @import "../tokens/colors"; @import "../tokens/typography"; $avatar-sizes: ( "xs": 28px, "sm": 38px, "md": 60px, "base": 60px, "lg": 80px, "xl": 100px, ); [class^=pb_avatar_kit] { position: relative; @each $name, $size in $avatar-sizes { &[class*=_#{$name}], &[class*=_#{$name}_thumb] { width: $size; height: $size; object-fit: cover; position: relative; flex-shrink: 0; flex-grow: 0; flex-basis: $size; .avatar_wrapper { width: $size; height: $size; object-fit: cover; border-radius: $border-rad-mega; background: $slate; overflow: hidden; position: relative; flex-shrink: 0; flex-grow: 0; flex-basis: $size; &::before { content: attr(data-initials); width: 100%; height: 100%; display: block; color: $white; text-align: center; font-size: $size * 0.38; line-height: $size; text-transform: uppercase; position: relative; z-index: 0; } img { width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 1; border-radius: $border-rad-mega; object-fit: cover; display: block; } } [class^=pb_online_status] { position: absolute; right: 0; top: 0; bottom: auto; left: auto; z-index: 500; &.size_xs { right: -4px; } &.size_md { top: auto; bottom: 6px; } &.size_lg { top: auto; bottom: 14px; } &.size_xl { top: auto; bottom: 22px; } } } } }
Version data entries
59 entries across 59 versions & 1 rubygems