Skip to content

Commit

Permalink
feat: added possibility to define the font-size
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke committed Dec 16, 2022
1 parent 812537f commit be865bb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scss/icon/_icons.helpers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,15 @@
}

// Icon meta data mixin
@mixin icon-meta($size: $icon-size, $style: $icon-style, $position: "before") {
@mixin icon-meta(
$size: $icon-size,
$style: $icon-style,
$position: "before",
$font-size: $icon-size
) {
&::#{$position} {
--icon-font-family: "#{"icons-" + $size + "-" + $style}",
"missing-icons";
--icon-font-size: #{to-rem($pxValue: $size)};
--icon-font-size: #{to-rem($pxValue: $font-size)};
}
}

0 comments on commit be865bb

Please sign in to comment.