summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-07-10 17:30:50 +0200
committerJonas Smedegaard <dr@jones.dk>2017-07-10 17:30:50 +0200
commit09e9252a0596ef92461e318bb3295135047d6e2e (patch)
tree529a0bec4dccf81bffaaf835c0e15637fc30b387
parentc2a106a7059ea0731d2bcb3723024ef93d608e68 (diff)
Merge content layout with ikiwiki.
-rw-r--r--style.scss30
1 files changed, 18 insertions, 12 deletions
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