From 17adfda903a5bf9051159beb61cb37dc084eb8b4 Mon Sep 17 00:00:00 2001 From: Duncan Coutts Date: Thu, 19 Jan 2006 20:17:59 +0000 Subject: Add an optional wiki link for each top level exported name. In each module, for each "top level" exported entity we add a hyper link to a corresponding wiki page. The link url gets the name of the exported entity as a '#'-style anchor, so if there is an anchor in the page with that name then the users browser should jump directly to it. By "top level" we mean functions, classes, class members and data types (data, type, newtype), but not data constructors, class instances or data type class membership. The link is added at the right of the page and in a small font. Hopefully this is the right balance of visibility/distraction. We also include a link to the wiki base url in the contents and index pages. --- html/haddock.css | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'html') diff --git a/html/haddock.css b/html/haddock.css index 37b17f2f..14085bbe 100644 --- a/html/haddock.css +++ b/html/haddock.css @@ -76,6 +76,31 @@ TD.decl { vertical-align: top; } +TD.topdecl { + padding: 2px; + background-color: #f0f0f0; + font-family: monospace; + vertical-align: top; +} + +TABLE.declbar { + border-spacing: 0px; + } + +TD.declname { + width: 100%; + } + +TD.declbut { + padding-left: 5px; + padding-right: 5px; + border-left-width: 1px; + border-left-color: #000099; + border-left-style: solid; + white-space: nowrap; + font-size: small; + } + /* arg is just like decl, except that wrapping is not allowed. It is used for function and constructor arguments which have a text box -- cgit v1.2.3