.avatar { width: 2rem; height: 2rem; line-height: 2rem; border-radius: 50%; display: inline-block; background: $gray-400 no-repeat center/cover; position: relative; text-align: center; color: $gray-600; font-weight: 600; vertical-align: bottom; font-size: .875rem; user-select: none; i { font-size: 125%; vertical-align: sub; } } .avatar-status { position: absolute; right: -2px; bottom: -2px; width: .75rem; height: .75rem; border: 2px solid #fff; background: $gray-600; border-radius: 50%; } .avatar-sm { width: 1.5rem; height: 1.5rem; line-height: 1.5rem; font-size: .75rem; } .avatar-md { width: 2.5rem; height: 2.5rem; line-height: 2.5rem; font-size: 1rem; } .avatar-lg { width: 3rem; height: 3rem; line-height: 3rem; font-size: 1.25rem; } .avatar-xl { width: 4rem; height: 4rem; line-height: 4rem; font-size: 1.75rem; } .avatar-xxl { width: 5rem; height: 5rem; line-height: 5rem; font-size: 2rem; } .avatar-placeholder { background: $gray-400 url('data:image/svg+xml;charset=utf8,') no-repeat center/80%; } .avatar-list { margin: 0 0 -.5rem; padding: 0; font-size: 0; .avatar { margin-bottom: .5rem; &:not(:last-child) { margin-right: .5rem; } } } .avatar-list-stacked { .avatar { margin-right: -.8em !important; } .avatar { box-shadow: 0 0 0 2px #fff; } } @each $vendor, $color in $colors { .avatar-#{$vendor} { background-color: mix($color, #fff, 30%); color: $color; } }