You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
634 B
43 lines
634 B
2 years ago
|
.icon {
|
||
2 years ago
|
--icon-size: var(--size, 16px);
|
||
|
|
||
2 years ago
|
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
|
||
2 years ago
|
&--size-xxs {
|
||
|
--size: 10px;
|
||
|
}
|
||
|
|
||
|
&--size-xs {
|
||
|
--size: 12px;
|
||
|
}
|
||
|
|
||
|
&--size-sm {
|
||
|
--size: 16px;
|
||
|
}
|
||
|
|
||
|
&--size-md {
|
||
|
--size: 20px;
|
||
|
}
|
||
|
|
||
|
&--size-lg {
|
||
|
--size: 24px;
|
||
|
}
|
||
|
|
||
|
&--size-xl {
|
||
|
--size: 32px;
|
||
|
}
|
||
|
}
|