diff options
| author | ctalkington <[email protected]> | 2012-03-15 13:34:50 -0500 |
|---|---|---|
| committer | ctalkington <[email protected]> | 2012-03-15 13:34:50 -0500 |
| commit | 51f37cbb8105ad632fae7367912130aafc0f6c86 (patch) | |
| tree | 05e5440defbe8f840ae90e7cb52e3919aa860c30 | |
| parent | 8e0afbeaa42dfabb75817b7fc1c677cd372c8c43 (diff) | |
| download | bootstrap-51f37cbb8105ad632fae7367912130aafc0f6c86.tar.xz bootstrap-51f37cbb8105ad632fae7367912130aafc0f6c86.zip | |
make font family mixins customizable with variables.
| -rw-r--r-- | less/mixins.less | 6 | ||||
| -rw-r--r-- | less/variables.less | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/less/mixins.less b/less/mixins.less index a118fe7c4..c4b4ee82e 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 94c3a0667..56f2a8d59 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 // ------------------------- |
