From 20e566f58fba1b0f0e34e08e14704b2b1edadf6a Mon Sep 17 00:00:00 2001 From: "MORITA Hajime (omo)" Date: Mon, 24 Oct 2011 02:22:46 -0700 Subject: Makes font-family names customizable. This chagne instroduces following variables that allows authors to customize a font family for each class. - $serif - $sans - $heading-font-family - $header-title-font-family This change also adds anotehr custom scss file named "_fonts.scss". We can use it to override these newly introduced variables. --- .themes/classic/sass/base/_typography.scss | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to '.themes/classic/sass/base') diff --git a/.themes/classic/sass/base/_typography.scss b/.themes/classic/sass/base/_typography.scss index 60556752..8ef39587 100644 --- a/.themes/classic/sass/base/_typography.scss +++ b/.themes/classic/sass/base/_typography.scss @@ -1,17 +1,22 @@ $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 .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; } -.serif { font-family: "PT Serif", Georgia, Times, "Times New Roman", serif; } +.sans { font-family: $sans; } +.serif { font-family: $serif; } .mono { font-family: $mono; } body > header h1 { font-size: 2.2em; @extend .heading; + font-family: $header-title-font-family; font-weight: normal; line-height: 1.2em; margin-bottom: 0.6667em; -- cgit v1.2.1