summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2020-08-24 08:13:06 -0400
committerAmin Bandali <bandali@gnu.org>2020-08-24 08:13:06 -0400
commita67e1d6febdd576b27ab47313f1cf58cff2548f1 (patch)
tree3aab3959059a40ef9200a3576db78a7691f5306a
parent4f3e4530a3044e756ec50a9b858104869aa737e4 (diff)
downloademacsconf-wiki-a67e1d6febdd576b27ab47313f1cf58cff2548f1.tar.xz
emacsconf-wiki-a67e1d6febdd576b27ab47313f1cf58cff2548f1.zip
experiment with narrower widths to improve readability
Diffstat (limited to '')
-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>