1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 04:46:10 +01:00
metamask-extension/ui/components/component-library/base-avatar/base-avatar.scss
Nidhi Kumari 194f7c8dd8
added AvatarBase Component (#15307)
* added AvatarBase Component

* added README file to storybook

* converted avatar-base to base-avatar

* props for snapshot testing

* replaced snapshot testing

* Updates to stories and component

* used arrow function for component

* fixed merge conflicts

* removed box stories

* changed import order for scss files

* replaced base-avatar import with component scss file

Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2022-08-01 15:14:33 +05:30

32 lines
413 B
SCSS

.base-avatar {
--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);
border-radius: 100%;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}