mirror of
https://github.com/tabler/tabler-icons.git
synced 2025-08-29 16:50:15 +02:00
Merge pull request #121 from tijmenvangulik/patchssbranch
Corrected wrong encoded unicode characters in css
This commit is contained in:
@@ -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 %>; }<% }); %>
|
||||
|
Reference in New Issue
Block a user