From 51f37cbb8105ad632fae7367912130aafc0f6c86 Mon Sep 17 00:00:00 2001 From: ctalkington Date: Thu, 15 Mar 2012 13:34:50 -0500 Subject: [PATCH] make font family mixins customizable with variables. --- less/mixins.less | 6 +++--- less/variables.less | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/less/mixins.less b/less/mixins.less index a118fe7c46..c4b4ee82ee 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -116,13 +116,13 @@ #font { #family { .serif() { - font-family: Georgia, "Times New Roman", Times, serif; + font-family: @serifFontFamily; } .sans-serif() { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-family: @sansFontFamily; } .monospace() { - font-family: Menlo, Monaco, "Courier New", monospace; + font-family: @monoFontFamily; } } .shorthand(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) { diff --git a/less/variables.less b/less/variables.less index 94c3a0667c..56f2a8d59d 100644 --- a/less/variables.less +++ b/less/variables.less @@ -54,6 +54,10 @@ @headingsFontWeight: bold; // instead of browser default, bold @headingsColor: inherit; // empty to use BS default, @textColor +@serifFontFamily: Georgia, "Times New Roman", Times, serif; +@sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif; +@monoFontFamily: Menlo, Monaco, "Courier New", monospace; + // Tables // -------------------------