From d10f9ab7d916cd96d51ec05d3815da02f8707df9 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Wed, 30 Apr 2014 17:56:06 +0200 Subject: [PATCH] Customizable font path --- sass/ratchicons.scss | 10 +++++----- sass/variables.scss | 8 ++++++++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/sass/ratchicons.scss b/sass/ratchicons.scss index be18807..0751b15 100644 --- a/sass/ratchicons.scss +++ b/sass/ratchicons.scss @@ -6,11 +6,11 @@ font-family: Ratchicons; font-weight: normal; font-style: normal; - src: url('../fonts/ratchicons.eot'); - src: url('../fonts/ratchicons.eot?#iefix') format('embedded-opentype'), - url('../fonts/ratchicons.woff') format('woff'), - url('../fonts/ratchicons.ttf') format('truetype'), - url('../fonts/ratchicons.svg#svgFontName') format('svg'); + 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'); } .icon { diff --git a/sass/variables.scss b/sass/variables.scss index e65831e..e781dc9 100644 --- a/sass/variables.scss +++ b/sass/variables.scss @@ -12,6 +12,14 @@ $font-weight-light: 400 !default; $line-height-default: 21px !default; +// Iconography +// -------------------------------------------------- +//## 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/"; + + // Colors // --------------------------------------------------