From a05ace9beb016040d63e83835ef9001026e945d2 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 24 Nov 2013 15:12:00 +0100 Subject: Declare high-level base variables in partials. --- partials/_base-compass.scss | 4 ++++ partials/_base.scss | 12 ++++++++++++ style.scss | 5 +++-- 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 partials/_base-compass.scss create mode 100644 partials/_base.scss diff --git a/partials/_base-compass.scss b/partials/_base-compass.scss new file mode 100644 index 0000000..24cb2e6 --- /dev/null +++ b/partials/_base-compass.scss @@ -0,0 +1,4 @@ +// Compass integration +// +// No styleguide reference. +$base-font-size: $baseFontSize; diff --git a/partials/_base.scss b/partials/_base.scss new file mode 100644 index 0000000..9c71b6f --- /dev/null +++ b/partials/_base.scss @@ -0,0 +1,12 @@ +// Typography +// +// No styleguide reference. +// Follow W3C recommendation: http://www.w3.org/QA/Tips/font-size +$baseFontSize: 16px; + +$headerFontSize: 24px; + +// Framework integrations +// +// No styleguide reference. +@import "base-compass"; diff --git a/style.scss b/style.scss index f50e06e..41fa80c 100644 --- a/style.scss +++ b/style.scss @@ -1,3 +1,4 @@ +@import "partials/base"; @import "h5bp"; @import "../shared/themes/default/ikiwiki"; @import "compass/typography/lists"; @@ -133,7 +134,7 @@ div.inlinefooter { @include ikiwiki-plugin-po; div.header { - @include adjust-font-size-to(24px); + @include adjust-font-size-to($headerFontSize); padding: 0 0 0 1em; background-color: LightBlue; color: LightBlue; @@ -159,7 +160,7 @@ span.parentlinks { } FORM#searchform { - @include adjust-font-size-to(16px, $from-size: 24px); + @include adjust-font-size-to($baseFontSize, $from-size: $headerFontSize); margin: rhythm(.5) 2em 0 0; } -- cgit v1.2.3