From c9bcb21c7ab8038f1a830089af155d17121de4ca Mon Sep 17 00:00:00 2001 From: tijmenvangulik Date: Mon, 22 Mar 2021 18:46:43 +0100 Subject: Corrected wrong encoded unicode characters in css --- .build/iconfont.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 %>; }<% }); %> -- cgit v1.2.1