From 09e9252a0596ef92461e318bb3295135047d6e2e Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 10 Jul 2017 17:30:50 +0200 Subject: Merge content layout with ikiwiki. --- style.scss | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to 'style.scss') diff --git a/style.scss b/style.scss index ef5f4ec..8fcf368 100644 --- a/style.scss +++ b/style.scss @@ -15,7 +15,22 @@ @include ikiwiki-plugin-highlight; @include ikiwiki-plugin-color; // shell + +// Content +// +// Light grey underlay +// Max. 45 chars., balanced margins on large viewports +%anycontent { + max-width: 45em; + margin: 0 auto; + padding: .5em 2em; + background-color: lightgrey; +} + // layout - main content +#content { + @extend %anycontent; +} @include ikiwiki-inlinepage; @include ikiwiki-inlineheader; @include ikiwiki-inlinecontent; @@ -26,6 +41,9 @@ @include ikiwiki-actions; @include ikiwiki-plugin-po; // layout - footer +#footer { + @extend %anycontent; +} @include ikiwiki-footer; @include ikiwiki-pageinfo; @include ikiwiki-tags; @@ -107,18 +125,6 @@ dd { clear: right; } -// Content -// -// Light grey underlay -// Max. 45 chars., balanced margins on large viewports -#content, -#footer { - max-width: 45em; - margin: 0 auto; - padding: .5em 2em; - background-color: lightgrey; -} - // Pagedate // // very tiny in lower right corner -- cgit v1.2.3