Merged in feat/LOY-311-New-Avatar-Component (pull request #2694)
Feat(LOY-311) Create avatar design system component * feat(LOY-311): Creat & use New Avatar Design System Component * refactor(LOY-311): replace avatar used in app header with design system component * fix(LOY-311): use correct space vars Approved-by: Erik Tiekstra
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
.avatar {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
border-radius: var(--Corner-radius-rounded);
|
||||
background-color: var(--Overlay-40);
|
||||
}
|
||||
|
||||
.avatar:has(.initials) {
|
||||
background-color: var(--Icon-Accent);
|
||||
}
|
||||
|
||||
.avatar img {
|
||||
object-fit: cover;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.size-sm {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.size-md {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.size-lg {
|
||||
width: 55px;
|
||||
height: 55px;
|
||||
}
|
||||
|
||||
.initials {
|
||||
color: white;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
Reference in New Issue
Block a user