From 003bfbcef26a8142aba2da71af930645e609bcd7 Mon Sep 17 00:00:00 2001 From: GNU Hurd wiki engine Date: Tue, 18 Sep 2007 11:44:33 +0000 Subject: More CSS magic thanks to Colin Leitner. --- local.css | 41 ++++++++++++++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/local.css b/local.css index 91c725de..9a323b4b 100644 --- a/local.css +++ b/local.css @@ -21,16 +21,23 @@ hr pre { - margin-left: 1cm; - /* - * I want these blocks to be as wide as they need to be for the included - * text, but not any wider -- with respect to the `background-color'. - * Currently it may happen that the background colors of `pre' and `#sidebar' - * overlap. How to do this properly? --tschwinge - */ + margin-left: 3em; background-color: #e5e5e5; } +/* Only have these colored blocks be as wide as they need be. */ +pre +{ + float: left; + padding: 0.5em; + margin-bottom: 1.5em; + margin-top: 0; +} +pre + * +{ + clear: left; +} + .header { background-color: #f0f0f0; @@ -52,6 +59,26 @@ pre font-size: small; } + +/* Variable width. */ +#sidebar +{ + width: auto; + /* ikiwiki's default for `width'. */ + min-width: 20ex; +} + +/* Less indentation for list items. */ +#sidebar ul +{ + padding-left: 2ex; +} +#sidebar ul ul +{ + padding-left: 2.5ex; +} + + .table_style_1 { text-align: left; -- cgit v1.2.3