summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--local.css10
-rw-r--r--templates/page.tmpl4
2 files changed, 11 insertions, 3 deletions
diff --git a/local.css b/local.css
index 757863e4..b712bf4d 100644
--- a/local.css
+++ b/local.css
@@ -1,6 +1,14 @@
/* ikiwiki local style sheet */
-#content { line-height: 1.5 }
+.pageheader, .pagebody, .pagefooter {
+ max-width: 60rem;
+ margin: 0 auto;
+}
+
+#content {
+ max-width: 38rem;
+ line-height: 1.5;
+}
video { max-width: 100% }
diff --git a/templates/page.tmpl b/templates/page.tmpl
index f741a107..0569cf23 100644
--- a/templates/page.tmpl
+++ b/templates/page.tmpl
@@ -123,6 +123,8 @@
<TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF>
+<div id="pagebody">
+
<TMPL_UNLESS DYNAMIC>
<TMPL_IF SIDEBAR>
<TMPL_IF HTML5><aside class="sidebar"><TMPL_ELSE><div class="sidebar"></TMPL_IF>
@@ -131,8 +133,6 @@
</TMPL_IF>
</TMPL_UNLESS>
-<div id="pagebody">
-
<TMPL_IF HTML5><section<TMPL_ELSE><div</TMPL_IF> id="content" role="main">
<TMPL_VAR CONTENT>
<TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF>