Skip to content

Commit

Permalink
Update font SCSS template to use a loop (#1647)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Apr 3, 2023
1 parent 7ed7038 commit b0cb64a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/font/scss.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ ${{ name }}-map: (
{{/ each }}
);

{{# each codepoints }}
.{{ ../prefix }}-{{ @key }}::before { content: map-get(${{ ../name }}-map, "{{ @key }}"); }
{{/ each }}
@each $icon, $codepoint in ${{ name }}-map {
.{{ prefix }}-#{$icon}::before { content: $codepoint; }
}

0 comments on commit b0cb64a

Please sign in to comment.