Sha256: 2c0bd4e0bce4b994d7250c55dbd16650d6997d59b2d3feb7338a748e70f02a7f
Contents?: true
Size: 1.75 KB
Versions: 3
Compression:
Stored size: 1.75 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] { 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; } } [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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
playbook_ui-2.8.4 | app/pb_kits/playbook/pb_avatar/_avatar.scss |
playbook_ui-2.8.3 | app/pb_kits/playbook/pb_avatar/_avatar.scss |
playbook_ui-2.8.1 | app/pb_kits/playbook/pb_avatar/_avatar.scss |