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/icon/icon.scss
George Marshall e69e207b7d
Adding Icon component and removing BaseIcon component (#15772)
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2022-09-20 12:15:14 -05:00

43 lines
634 B
SCSS

.icon {
--icon-size: var(--size, 16px);
font-size: var(--icon-size);
width: 1em;
height: 1em;
max-width: 1em;
flex: 0 0 1em;
display: inline-block;
background-color: currentColor; // inherits parent text color
mask-size: cover;
-webkit-mask-size: cover;
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-position: center;
-webkit-mask-position: center;
// Size
&--size-xxs {
--size: 10px;
}
&--size-xs {
--size: 12px;
}
&--size-sm {
--size: 16px;
}
&--size-md {
--size: 20px;
}
&--size-lg {
--size: 24px;
}
&--size-xl {
--size: 32px;
}
}