From 619b2b592376ca08d231d37f1d5ab460aef69b6a Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Wed, 30 Apr 2014 18:03:08 +0200 Subject: [PATCH] let's also customise file name and svgid --- sass/ratchicons.scss | 10 +++++----- sass/variables.scss | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/sass/ratchicons.scss b/sass/ratchicons.scss index 0751b15..4e57171 100644 --- a/sass/ratchicons.scss +++ b/sass/ratchicons.scss @@ -6,11 +6,11 @@ font-family: Ratchicons; font-weight: normal; font-style: normal; - src: url('#{$icon-font-path}ratchicons.eot'); - src: url('#{$icon-font-path}ratchicons.eot?#iefix') format('embedded-opentype'), - url('#{$icon-font-path}ratchicons.woff') format('woff'), - url('#{$icon-font-path}ratchicons.ttf') format('truetype'), - url('#{$icon-font-path}ratchicons.svg#svgFontName') format('svg'); + src: url('#{$icon-font-path}#{$icon-font-name}.eot'); + src: url('#{$icon-font-path}#{$icon-font-name}.eot?#iefix') format('embedded-opentype'), + url('#{$icon-font-path}#{$icon-font-name}.woff') format('woff'), + url('#{$icon-font-path}#{$icon-font-name}.ttf') format('truetype'), + url('#{$icon-font-path}#{$icon-font-name}.svg##{$icon-font-svg-id}') format('svg'); } .icon { diff --git a/sass/variables.scss b/sass/variables.scss index e781dc9..7c73ff6 100644 --- a/sass/variables.scss +++ b/sass/variables.scss @@ -16,8 +16,9 @@ $line-height-default: 21px !default; // -------------------------------------------------- //## Specify custom location and filename of the included Ratchicons icon font. Useful for those including Ratchet via Bower. -//** Load fonts from this directory. $icon-font-path: "../fonts/"; +$icon-font-name: "ratchicons"; +$icon-font-svg-id: "svgFontName"; // Colors