0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-20 17:54:23 +01:00

Merge branch 'font-variables' of https://github.com/ctalkington/bootstrap into ctalkington-font-variables

This commit is contained in:
Mark Otto 2012-03-22 17:13:58 -07:00
commit 78e37e7d21
4 changed files with 19 additions and 3 deletions

View File

@ -296,6 +296,12 @@
<input type="text" class="span3" placeholder="inherit"> <input type="text" class="span3" placeholder="inherit">
<label>@heroUnitLeadColor</label> <label>@heroUnitLeadColor</label>
<input type="text" class="span3" placeholder="inherit"> <input type="text" class="span3" placeholder="inherit">
<label>@serifFontFamily</label>
<input type="text" class="span3" placeholder="Georgia, 'Times New Roman', Times, serif">
<label>@sansFontFamily</label>
<input type="text" class="span3" placeholder="'Helvetica Neue', Helvetica, Arial, sans-serif">
<label>@monoFontFamily</label>
<input type="text" class="span3" placeholder="Menlo, Monaco, 'Courier New', monospace">
</div><!-- /span --> </div><!-- /span -->
<div class="span3"> <div class="span3">
<h3>Tables</h3> <h3>Tables</h3>

View File

@ -220,6 +220,12 @@
<input type="text" class="span3" placeholder="inherit"> <input type="text" class="span3" placeholder="inherit">
<label>@heroUnitLeadColor</label> <label>@heroUnitLeadColor</label>
<input type="text" class="span3" placeholder="inherit"> <input type="text" class="span3" placeholder="inherit">
<label>@serifFontFamily</label>
<input type="text" class="span3" placeholder="Georgia, 'Times New Roman', Times, serif">
<label>@sansFontFamily</label>
<input type="text" class="span3" placeholder="'Helvetica Neue', Helvetica, Arial, sans-serif">
<label>@monoFontFamily</label>
<input type="text" class="span3" placeholder="Menlo, Monaco, 'Courier New', monospace">
</div><!-- /span --> </div><!-- /span -->
<div class="span3"> <div class="span3">
<h3>{{_i}}Tables{{/i}}</h3> <h3>{{_i}}Tables{{/i}}</h3>

View File

@ -116,13 +116,13 @@
#font { #font {
#family { #family {
.serif() { .serif() {
font-family: Georgia, "Times New Roman", Times, serif; font-family: @serifFontFamily;
} }
.sans-serif() { .sans-serif() {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-family: @sansFontFamily;
} }
.monospace() { .monospace() {
font-family: Menlo, Monaco, "Courier New", monospace; font-family: @monoFontFamily;
} }
} }
.shorthand(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) { .shorthand(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {

View File

@ -54,6 +54,10 @@
@headingsFontWeight: bold; // instead of browser default, bold @headingsFontWeight: bold; // instead of browser default, bold
@headingsColor: inherit; // empty to use BS default, @textColor @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 // Tables
// ------------------------- // -------------------------