1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-08-31 17:42:15 +02:00

Remove sass deprecation warnings (#1289)

This commit is contained in:
ethancrawford
2025-01-06 07:49:11 +08:00
committed by GitHub
parent c850c32175
commit 3e4049a572
2 changed files with 6 additions and 2 deletions

View File

@@ -3,6 +3,8 @@
* Tabler Icons <%= v %> by tabler - https://tabler.io
* License - https://github.com/tabler/tabler-icons/blob/master/LICENSE
*/
@use "sass:string";
$ti-font-family: '<%= fileName %>' !default;
$ti-font-path: 'fonts' !default;
$ti-font-display: null !default;
@@ -42,7 +44,7 @@ $ti-prefix: 'ti' !default;
-moz-osx-font-smoothing: grayscale;
}
@function unicode($str) {
@return unquote("\"")+unquote(str-insert($str, "\\", 1))+unquote("\"")
@return string.unquote("\"")+string.unquote(string.insert($str, "\\", 1))+string.unquote("\"")
}
<% glyphs.forEach(function(glyph) { %>

View File

@@ -3,6 +3,8 @@
* Tabler Icons <%= v %> by tabler - https://tabler.io
* License - https://github.com/tabler/tabler-icons/blob/master/LICENSE
*/
@use "sass:string";
$ti-font-family: '<%= fileName %>' !default;
$ti-font-path: './fonts' !default;
$ti-font-display: null !default;
@@ -33,7 +35,7 @@ $ti-prefix: 'ti' !default;
}
@function unicode($str) {
@return unquote("\"")+unquote(str-insert($str, "\\", 1))+unquote("\"")
@return string.unquote("\"")+string.unquote(string.insert($str, "\\", 1))+string.unquote("\"")
}
<% glyphs.forEach(function(glyph) { %>