2022-11-23 18:58:43 +01:00
|
|
|
.mm-icon {
|
2022-08-18 16:53:01 +02:00
|
|
|
--icon-size: var(--size, 16px);
|
|
|
|
|
2022-09-20 19:15:14 +02:00
|
|
|
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
|
2022-08-18 16:53:01 +02:00
|
|
|
|
|
|
|
&--size-xs {
|
|
|
|
--size: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--size-sm {
|
|
|
|
--size: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--size-md {
|
|
|
|
--size: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--size-lg {
|
|
|
|
--size: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--size-xl {
|
|
|
|
--size: 32px;
|
|
|
|
}
|
2022-09-29 17:33:34 +02:00
|
|
|
|
2023-01-26 19:32:11 +01:00
|
|
|
&--size-inherit {
|
2022-09-29 17:33:34 +02:00
|
|
|
--size: 1em; // Inherits parent font-size
|
|
|
|
|
|
|
|
position: relative; // Fixes vertical alignment
|
|
|
|
top: 0.125em; // Fixes vertical alignment
|
|
|
|
}
|
2022-08-18 16:53:01 +02:00
|
|
|
}
|