aboutsummaryrefslogtreecommitdiff
path: root/.build/iconfont.scss
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2021-01-20 22:18:49 +0100
committercodecalm <codecalm@gmail.com>2021-01-20 22:18:49 +0100
commitc8da3525fac1d02e48b957a0ed9676b28e38e394 (patch)
treed29c214daad37893134cd10637cc3536f37fcd2d /.build/iconfont.scss
parentUpdate README.md (diff)
parentMerge pull request #104 from tabler/dev-iconfont-generation (diff)
downloadtabler-icons-c8da3525fac1d02e48b957a0ed9676b28e38e394.tar.xz
Merge branch 'dev' of https://github.com/tabler/tabler-icons
 Conflicts:  iconfont/fonts/tabler-icons.eot  iconfont/fonts/tabler-icons.ttf  iconfont/fonts/tabler-icons.woff  iconfont/fonts/tabler-icons.woff2
Diffstat (limited to '.build/iconfont.scss')
-rw-r--r--.build/iconfont.scss12
1 files changed, 10 insertions, 2 deletions
diff --git a/.build/iconfont.scss b/.build/iconfont.scss
index 97c21d4e..1e8f1d5d 100644
--- a/.build/iconfont.scss
+++ b/.build/iconfont.scss
@@ -3,7 +3,7 @@
* License - https://github.com/tabler/tabler-icons/blob/master/LICENSE
*/
$ti-font-family: '<%= fileName %>' !default;
-$ti-font-path: './fonts' !default;
+$ti-font-path: 'fonts' !default;
$ti-font-display: null !default;
$ti-icon-prefix: 'ti' !default;
@@ -16,7 +16,15 @@ $ti-icon-prefix: 'ti' !default;
src: url('#{$ti-font-path}/<%= fileName %>.eot?#iefix') format('embedded-opentype'),
url('#{$ti-font-path}/<%= fileName %>.woff2') format('woff2'),
url('#{$ti-font-path}/<%= fileName %>.woff') format('woff'),
- url('#{$ti-font-path}/<%= fileName %>.ttf') format('truetype');
+ url('#{$ti-font-path}/<%= fileName %>.ttf') format('truetype'),
+ url("#{$ti-font-path}/<%= fileName %>.svg\##{$ti-font-family}") format("svg");
+}
+
+@media screen and (-webkit-min-device-pixel-ratio:0) {
+ @font-face {
+ font-family: $ti-font-family;
+ src: url("#{$ti-font-path}/<%= fileName %>.svg\##{$ti-font-family}") format("svg");
+ }
}
.#{$ti-icon-prefix} {