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
2023-02-22 14:42:50 -08:00

46 lines
744 B
SCSS

.mm-icon {
--icon-size: var(--size, 16px);
font-size: var(--icon-size);
width: 1em;
height: 1em;
max-width: 1em;
flex: 0 0 1em;
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-xs {
--size: 12px;
}
&--size-sm {
--size: 16px;
}
&--size-md {
--size: 20px;
}
&--size-lg {
--size: 24px;
}
&--size-xl {
--size: 32px;
}
&--size-inherit {
--size: 1em; // Inherits parent font-size
position: relative; // Fixes vertical alignment
top: 0.125em; // Fixes vertical alignment
}
}