1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-30 08:09:15 +01:00
metamask-extension/ui/components/component-library/avatar-base/avatar-base.scss
Nidhi Kumari 67bfd446fc
avatar base component housekeeping (#16583)
* replace base avatar with avatar base component

* updated tests

* updated description for props

* updated docs and background colors

* updated snapshot

* replaced size with avatar size constant

* added tests and fixed indentation

* fixed indentation in readme
2022-11-23 22:12:43 +05:30

35 lines
510 B
SCSS

.mm-avatar-base {
--avatar-size: var(--size, 16px);
&--size-xs {
--size: 16px;
}
&--size-sm {
--size: 24px;
}
&--size-md {
--size: 32px;
}
&--size-lg {
--size: 40px;
}
&--size-xl {
--size: 48px;
}
height: var(--avatar-size);
width: var(--avatar-size);
max-width: var(--avatar-size);
flex: 0 0 var(--avatar-size);
border-radius: 100%;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
text-transform: uppercase;
}