aboutsummaryrefslogtreecommitdiff
path: root/.build/iconfont.scss
diff options
context:
space:
mode:
authortijmenvangulik <tijmen@vangulik.org>2021-03-22 18:46:43 +0100
committertijmenvangulik <tijmen@vangulik.org>2021-03-22 18:46:43 +0100
commit6d046c56ef8e15678d01368bb4032eb1796d7170 (patch)
tree859f57a9e6705e611733f36d0c9c54d972e3b7f7 /.build/iconfont.scss
parentMake it easier to compile a font with sub set of icons (diff)
downloadtabler-icons-6d046c56ef8e15678d01368bb4032eb1796d7170.tar.xz
Corrected wrong encoded unicode characters in css
Diffstat (limited to '.build/iconfont.scss')
-rw-r--r--.build/iconfont.scss5
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 %>; }<% }); %>