aboutsummaryrefslogtreecommitdiff
path: root/html/haddock.css
diff options
context:
space:
mode:
authorDuncan Coutts <duncan.coutts@worc.ox.ac.uk>2006-01-19 20:17:59 +0000
committerDuncan Coutts <duncan.coutts@worc.ox.ac.uk>2006-01-19 20:17:59 +0000
commit17adfda903a5bf9051159beb61cb37dc084eb8b4 (patch)
treeb0e92093c71b9434a1f6f8f09a6b721c6e8b19f9 /html/haddock.css
parente06e2da2b14e133c0994706fcd34d8d40935f2c0 (diff)
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.
Diffstat (limited to 'html/haddock.css')
-rw-r--r--html/haddock.css25
1 files changed, 25 insertions, 0 deletions
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