]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
make font family mixins customizable with variables.
authorctalkington <chris@talkington.info>
Thu, 15 Mar 2012 18:34:50 +0000 (13:34 -0500)
committerctalkington <chris@talkington.info>
Thu, 15 Mar 2012 18:34:50 +0000 (13:34 -0500)
less/mixins.less
less/variables.less

index a118fe7c46c05d485a1ec7fdf2509cfe795b07fb..c4b4ee82eebdfd3fb74d0beb8d43bd344a9f175c 100644 (file)
 #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) {
index 94c3a0667c1b636ea7cee41c5567b3f617cd0238..56f2a8d59db257b8f16af3aba86d05d0d5fa2d11 100644 (file)
 @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
 // -------------------------