style: refactor avatar component styles
This commit is contained in:
@@ -1,21 +1,32 @@
|
||||
@use '../../styles/tokens/typography' as *;
|
||||
@use "../../styles/tokens/typography" as *;
|
||||
|
||||
.avatar {
|
||||
display: flex;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
border-radius: var(--nds-radius-full);
|
||||
overflow: hidden;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
flex-shrink: 0;
|
||||
background-color: var(--nds-primary-soft);
|
||||
box-shadow: inset 0 0 0 1px var(--nds-border);
|
||||
&__content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@include text-base;
|
||||
color: var(--nds-color-on-primary);
|
||||
background-color: var(--nds-disabled);
|
||||
@include text-label;
|
||||
color: var(--nds-primary);
|
||||
object-fit: cover;
|
||||
}
|
||||
&__fallback {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
color: var(--nds-primary);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user