aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Backends/Xhtml/Layout.hs
diff options
context:
space:
mode:
authorNuno Alexandre <nuno@channable.com>2018-02-03 21:39:30 +0100
committerAlec Theriault <alec.theriault@gmail.com>2018-10-18 08:14:32 -0700
commit6a7c5fef87106a92e710413259262ab2b1e78005 (patch)
treeceb9efb4778f4991f30dd6cdfd12595b1a3fef14 /haddock-api/src/Haddock/Backends/Xhtml/Layout.hs
parent72bb636be9b21ca30c0af6402ab371c07e3e79ed (diff)
Make the style consistent with hackage
Several things are addressed here: - better responsive behaviour on the header - better space usage - consistent colors overall - other nit PR comments
Diffstat (limited to 'haddock-api/src/Haddock/Backends/Xhtml/Layout.hs')
-rw-r--r--haddock-api/src/Haddock/Backends/Xhtml/Layout.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/haddock-api/src/Haddock/Backends/Xhtml/Layout.hs b/haddock-api/src/Haddock/Backends/Xhtml/Layout.hs
index 1c44ffda..bdf989ed 100644
--- a/haddock-api/src/Haddock/Backends/Xhtml/Layout.hs
+++ b/haddock-api/src/Haddock/Backends/Xhtml/Layout.hs
@@ -74,8 +74,8 @@ sectionName = paragraph ! [theclass "caption"]
-- If it would have otherwise been empty, then give it the class ".empty".
nonEmptySectionName :: Html -> Html
nonEmptySectionName c
- | isNoHtml c = paragraph ! [theclass "caption empty"] $ spaceHtml
- | otherwise = paragraph ! [theclass "caption"] $ c
+ | isNoHtml c = thediv ! [theclass "caption empty"] $ spaceHtml
+ | otherwise = thediv ! [theclass "caption"] $ c
divPackageHeader, divContent, divModuleHeader, divFooter,