mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
make font family mixins customizable with variables.
This commit is contained in:
parent
8e0afbeaa4
commit
51f37cbb81
@ -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) {
|
||||||
|
@ -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
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user