Merge pull request #246 from omo/customizable-font-family
Makes font-family names customizable.
This commit is contained in:
commit
d6afe77d4c
@ -1,17 +1,22 @@
|
|||||||
$blockquote: $type-border !default;
|
$blockquote: $type-border !default;
|
||||||
$mono: Menlo, Monaco, "Andale Mono", "lucida console", "Courier New", monospace;
|
$sans: "PT Sans", "Helvetica Neue", Arial, sans-serif !default;
|
||||||
|
$serif: "PT Serif", Georgia, Times, "Times New Roman", serif !default;
|
||||||
|
$mono: Menlo, Monaco, "Andale Mono", "lucida console", "Courier New", monospace !default;
|
||||||
|
$heading-font-family: "PT Serif", "Georgia", "Helvetica Neue", Arial, sans-serif !default;
|
||||||
|
$header-title-font-family: $heading-font-family !default;
|
||||||
|
|
||||||
// Fonts
|
// Fonts
|
||||||
.heading {
|
.heading {
|
||||||
font-family: "PT Serif", "Georgia", "Helvetica Neue", Arial, sans-serif;
|
font-family: $heading-font-family;
|
||||||
}
|
}
|
||||||
.sans { font-family: "PT Sans", "Helvetica Neue", Arial, sans-serif; }
|
.sans { font-family: $sans; }
|
||||||
.serif { font-family: "PT Serif", Georgia, Times, "Times New Roman", serif; }
|
.serif { font-family: $serif; }
|
||||||
.mono { font-family: $mono; }
|
.mono { font-family: $mono; }
|
||||||
|
|
||||||
body > header h1 {
|
body > header h1 {
|
||||||
font-size: 2.2em;
|
font-size: 2.2em;
|
||||||
@extend .heading;
|
@extend .heading;
|
||||||
|
font-family: $header-title-font-family;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
margin-bottom: 0.6667em;
|
margin-bottom: 0.6667em;
|
||||||
|
9
.themes/classic/sass/custom/_fonts.scss
Normal file
9
.themes/classic/sass/custom/_fonts.scss
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
// Here you can easily change font faces which are used in your site.
|
||||||
|
// To give it a try, uncomment some of the lines below rebuild your blog, and see how it works. your sites's.
|
||||||
|
// If you love to use Web Fonts, you also need to add some lines to source/_includes/custom/head.html
|
||||||
|
|
||||||
|
//$sans: "Optima", sans-serif;
|
||||||
|
//$serif: "Baskerville", serif;
|
||||||
|
//$mono: "Courier", monospace;
|
||||||
|
//$heading-font-family: "Verdana", sans-serif;
|
||||||
|
//$header-title-font-family: "Futura", sans-serif;
|
@ -3,6 +3,7 @@
|
|||||||
@include reset-html5;
|
@include reset-html5;
|
||||||
|
|
||||||
@import "custom/colors";
|
@import "custom/colors";
|
||||||
|
@import "custom/fonts";
|
||||||
@import "custom/layout";
|
@import "custom/layout";
|
||||||
@import "base";
|
@import "base";
|
||||||
@import "partials";
|
@import "partials";
|
||||||
|
Loading…
Reference in New Issue
Block a user