From a17b8c2260d8400970384b08278798cb541ad165 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 30 Sep 2010 11:57:42 -0400 Subject: [PATCH] Adjust local.css to style sidebars for older ikiwiki versions. ikiwiki versions before commit baaa848f6c06b0b3a59677d3551e130c65e5fde7 Author: Joey Hess Date: Thu Apr 15 15:04:17 2010 -0400 use id="sidebar" (newer version use class="sidebar"), so we repeat the sidebar styling with .sidebar -> #sidebar Now this style sheet will work with both versions. Note that we also adjust #sidebar's padding, since that changed as well. commit 5143d790b023f7f04ebdf694225b2946af676503 Author: Joey Hess Date: Thu Apr 15 16:08:33 2010 -0400 --- local.css | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/local.css b/local.css index 7661fd2..718f25f 100644 --- a/local.css +++ b/local.css @@ -16,7 +16,7 @@ body { background: #e7e7e7; } .actions ul { border: none; padding-bottom: 0px; font-family: sans-serif;} #footer { border: none; font-family: sans-serif;} -#sidebar { +.sidebar { border: solid; border-width: 1px; padding: 0; @@ -24,7 +24,7 @@ body { background: #e7e7e7; } border: 1px solid; border-color: #aaa; background: #eee; - width: 16ex; + width: 18ex; } .sidebar ul { @@ -42,3 +42,30 @@ body { background: #e7e7e7; } width: auto; margin-bottom: 1em; } + +#sidebar { + border: solid; + border-width: 1px; + padding: 0ex 2ex; + margin-top: 15px; + border: 1px solid; + border-color: #aaa; + background: #eee; + width: 18ex; +} + +#sidebar ul { + margin-left: 0; + padding: 0; + list-style-type: none; +} + +#sidebar ul ul { + padding-left: 1em; +} + +#sidebar .pagecloud { + float: none; + width: auto; + margin-bottom: 1em; +} -- 2.26.2