aboutsummaryrefslogtreecommitdiff
path: root/iconfont/tabler-icons.scss
diff options
context:
space:
mode:
authorMichal Wolny <michal.wolny@versum.pl>2021-01-13 19:18:33 +0100
committerMichal Wolny <michal.wolny@versum.pl>2021-01-13 19:18:33 +0100
commit4a46e87fe3759e02c9772e969646c49f8fbaf264 (patch)
treefaac8dec1fb5c21374ad83a370c1da9ab2b17e2c /iconfont/tabler-icons.scss
parent[dev-iconfont-generation] descent font a little (diff)
downloadtabler-icons-4a46e87fe3759e02c9772e969646c49f8fbaf264.tar.xz
[dev-iconfont-generation] add svg font generation, adjust ascent to work for mac os notepad
Diffstat (limited to 'iconfont/tabler-icons.scss')
-rw-r--r--iconfont/tabler-icons.scss12
1 files changed, 10 insertions, 2 deletions
diff --git a/iconfont/tabler-icons.scss b/iconfont/tabler-icons.scss
index 8ddbf329..5a42e8a2 100644
--- a/iconfont/tabler-icons.scss
+++ b/iconfont/tabler-icons.scss
@@ -3,7 +3,7 @@
* License - https://github.com/tabler/tabler-icons/blob/master/LICENSE
*/
$ti-font-family: 'tabler-icons' !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}/tabler-icons.eot?#iefix') format('embedded-opentype'),
url('#{$ti-font-path}/tabler-icons.woff2') format('woff2'),
url('#{$ti-font-path}/tabler-icons.woff') format('woff'),
- url('#{$ti-font-path}/tabler-icons.ttf') format('truetype');
+ url('#{$ti-font-path}/tabler-icons.ttf') format('truetype'),
+ url("#{$ti-font-path}/tabler-icons.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}/tabler-icons.svg\##{$ti-font-family}") format("svg");
+ }
}
.#{$ti-icon-prefix} {