From c91bf424b0c69da931b674a021f48fe471b1d053 Mon Sep 17 00:00:00 2001 From: Fabien Date: Fri, 11 Jan 2013 18:32:00 +0100 Subject: [PATCH] Add glyphicons font path variable --- less/glyphicons.less | 10 +++++----- less/variables.less | 5 +++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/less/glyphicons.less b/less/glyphicons.less index ad22b45793..bfe481734c 100644 --- a/less/glyphicons.less +++ b/less/glyphicons.less @@ -21,11 +21,11 @@ // Import the fonts @font-face { font-family: 'Glyphicons Halflings'; - src: url('../fonts/glyphiconshalflings-regular.eot'); - src: url('../fonts/glyphiconshalflings-regular.eot?#iefix') format('embedded-opentype'), - url('../fonts/glyphiconshalflings-regular.woff') format('woff'), - url('../fonts/glyphiconshalflings-regular.ttf') format('truetype'), - url('../fonts/glyphiconshalflings-regular.svg#glyphicons_halflingsregular') format('svg'); + src: url('@{glyphicons-font-path}/glyphiconshalflings-regular.eot'); + src: url('@{glyphicons-font-path}/glyphiconshalflings-regular.eot?#iefix') format('embedded-opentype'), + url('@{glyphicons-font-path}/glyphiconshalflings-regular.woff') format('woff'), + url('@{glyphicons-font-path}/glyphiconshalflings-regular.ttf') format('truetype'), + url('@{glyphicons-font-path}/glyphiconshalflings-regular.svg#glyphicons_halflingsregular') format('svg'); font-style: normal; font-weight: normal; } diff --git a/less/variables.less b/less/variables.less index 71de02c06e..1bcc1808d0 100644 --- a/less/variables.less +++ b/less/variables.less @@ -142,6 +142,11 @@ @zindex-modal: 1050; +// Glyphicons font path +// ------------------------- +@glyphicons-font-path: "../fonts"; + + // Navbar // -------------------------