From 8096a8324d84e704071e453725fdebfae79b2358 Mon Sep 17 00:00:00 2001 From: simonmar Date: Fri, 28 Nov 2003 12:09:58 +0000 Subject: [haddock @ 2003-11-28 12:09:58 by simonmar] Fix some of the problems with Haddock generating pages that are too wide. Now we only specify 'nowrap' when it is necessary to avoid a code box getting squashed up by the text to the right of it. --- html/haddock.css | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'html/haddock.css') diff --git a/html/haddock.css b/html/haddock.css index 67ef28d2..927d1ecd 100644 --- a/html/haddock.css +++ b/html/haddock.css @@ -51,10 +51,23 @@ TD.decl { padding: 2px; background-color: #f0f0f0; font-family: monospace; - white-space: nowrap; vertical-align: top; } +/* + arg is just like decl, except that wrapping is not allowed. It is + used for function and constructor arguments which have a text box + to the right, where if wrapping is allowed the text box squashes up + the declaration by wrapping it. +*/ +TD.arg { + padding: 2px; + background-color: #f0f0f0; + font-family: monospace; + vertical-align: top; + white-space: nowrap; + } + TD.recfield { padding-left: 20px } TD.doc { @@ -76,6 +89,11 @@ TD.body { padding-left: 10px } +TD.pkg { + width: 100%; + padding-left: 10px +} + TD.indexentry { vertical-align: top; padding-right: 10px -- cgit v1.2.3