From c4f7bae291c9ea72cc15f0d3511fd09b8e08dc0c Mon Sep 17 00:00:00 2001 From: Ryan Senkbeil Date: Tue, 5 Jun 2012 19:49:38 -0500 Subject: [PATCH] Add a variable for the root directory. This way, it can be easily overridden in other .less files. --- less/font-awesome.less | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/less/font-awesome.less b/less/font-awesome.less index 413abc98a..15ac671f9 100644 --- a/less/font-awesome.less +++ b/less/font-awesome.less @@ -22,13 +22,15 @@ */ +@fontAwesomePath: '../font'; + @font-face { font-family: 'FontAwesome'; - src: url('../font/fontawesome-webfont.eot'); - src: url('../font/fontawesome-webfont.eot?#iefix') format('embedded-opentype'), - url('../font/fontawesome-webfont.woff') format('woff'), - url('../font/fontawesome-webfont.ttf') format('truetype'), - url('../font/fontawesome-webfont.svg#FontAwesome') format('svg'); + src: url('@{fontAwesomePath}/fontawesome-webfont.eot'); + src: url('@{fontAwesomePath}/fontawesome-webfont.eot?#iefix') format('embedded-opentype'), + url('@{fontAwesomePath}/fontawesome-webfont.woff') format('woff'), + url('@{fontAwesomePath}/fontawesome-webfont.ttf') format('truetype'), + url('@{fontAwesomePath}/fontawesome-webfont.svg#FontAwesome') format('svg'); font-weight: normal; font-style: normal; }