diff options
author | MichaĆ Wolny <FreexD@users.noreply.github.com> | 2021-04-10 16:50:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-10 16:50:02 +0200 |
commit | d9401f7a70784234119e14c60ee56c94abb62a4b (patch) | |
tree | eb19d4ad192171db57ec0c80571a39c2aacda7d1 | |
parent | fix js build (diff) | |
parent | Corrected wrong encoded unicode characters in css (diff) | |
download | tabler-icons-d9401f7a70784234119e14c60ee56c94abb62a4b.tar.xz |
Merge pull request #121 from tijmenvangulik/patchssbranch
Corrected wrong encoded unicode characters in css
-rw-r--r-- | .build/iconfont.scss | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.build/iconfont.scss b/.build/iconfont.scss index d09a7ac1..c74e1a7e 100644 --- a/.build/iconfont.scss +++ b/.build/iconfont.scss @@ -40,9 +40,12 @@ $ti-prefix: 'ti' !default; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } +@function unicode($str) { + @return unquote("\"")+unquote(str-insert($str, "\\", 1))+unquote("\"") +} <% glyphs.forEach(function(glyph) { %> -$ti-icon-<%= glyph.name %>: '\<%= glyph.unicode[0].codePointAt(0).toString(16) %>';<% }); %> +$ti-icon-<%= glyph.name %>: unicode('<%= glyph.unicode[0].codePointAt(0).toString(16) %>');<% }); %> <% glyphs.forEach(function(glyph) { %> .#{$ti-prefix}-<%= glyph.name %>:before { content: $ti-icon-<%= glyph.name %>; }<% }); %> |