Skip to content
Snippets Groups Projects
Commit 2a46036e authored by Alec Theriault's avatar Alec Theriault
Browse files

Fix issues around plus/minus

  * swap the minimize unicode to something more intuitive
  * use new unicode expander/collapser for instance lists
  * address some alignment issues in the "index" page
parent 74f79193
No related branches found
No related tags found
No related merge requests found
......@@ -45,10 +45,7 @@ utils/haddock_dist_DATA_FILES += html/Ocean.theme/minus.gif
utils/haddock_dist_DATA_FILES += html/Ocean.theme/ocean.css
utils/haddock_dist_DATA_FILES += html/Ocean.theme/plus.gif
utils/haddock_dist_DATA_FILES += html/Ocean.theme/synopsis.png
utils/haddock_dist_DATA_FILES += html/NewOcean.std-theme/hslogo-16.png
utils/haddock_dist_DATA_FILES += html/NewOcean.std-theme/minus.gif
utils/haddock_dist_DATA_FILES += html/NewOcean.std-theme/new-ocean.css
utils/haddock_dist_DATA_FILES += html/NewOcean.std-theme/plus.gif
utils/haddock_dist_DATA_FILES += html/NewOcean.std-theme/synopsis.png
utils/haddock_dist_DATA_FILES += html/solarized.css
utils/haddock_dist_DATA_FILES += html/highlight.js
......
......@@ -34,10 +34,7 @@ data-files:
html/Ocean.theme/ocean.css
html/Ocean.theme/plus.gif
html/Ocean.theme/synopsis.png
html/NewOcean.std-theme/hslogo-16.png
html/NewOcean.std-theme/minus.gif
html/NewOcean.std-theme/new-ocean.css
html/NewOcean.std-theme/plus.gif
html/NewOcean.std-theme/synopsis.png
latex/haddock.sty
......
haddock-api/resources/html/NewOcean.std-theme/minus.gif

56 B

......@@ -352,7 +352,7 @@ ul.links li a {
.show { display: inherit; }
.clear { clear: both; }
.collapser:before, .expander:before {
.collapser:before, .expander:before, .noexpander:before {
font-size: 1.2em;
color: #9C5791;
display: inline-block;
......@@ -360,11 +360,15 @@ ul.links li a {
}
.collapser:before {
content: '';
content: '';
}
.expander:before {
content: "⊕";
}
.noexpander:before {
content: "⊕";
visibility: hidden;
}
.collapser, .expander {
cursor: pointer;
......@@ -380,12 +384,6 @@ ul.links li a {
summary {
cursor: pointer;
outline: none;
list-style-image: url(plus.gif);
list-style-position: outside;
}
details[open] > summary {
list-style-image: url(minus.gif);
}
pre {
......
haddock-api/resources/html/NewOcean.std-theme/plus.gif

59 B

......@@ -324,6 +324,7 @@ mkNode pkg qual ss p (Node s leaf _pkg srcPkg short ts) =
cBtn = case (ts, leaf) of
(_:_, Just _) -> thespan ! collapseControl p "" << spaceHtml
([] , Just _) -> thespan ! [theclass "noexpander"] << spaceHtml
(_, _ ) -> noHtml
-- We only need an explicit collapser button when the module name
-- is also a leaf, and so is a link to a module page. Indeed, the
......
......@@ -195,17 +195,18 @@ subEquations :: Maybe Package -> Qualification -> [SubDecl] -> Html
subEquations pkg qual = divSubDecls "equations" "Equations" . subTable pkg qual
-- | Generate sub table for instance declarations, with source
-- | Generate collapsible sub table for instance declarations, with source
subInstances :: Maybe Package -> Qualification
-> String -- ^ Class name, used for anchor generation
-> LinksInfo -> Bool
-> [(SubDecl, Maybe Module, Located DocName)] -> Html
subInstances pkg qual nm lnks splice = maybe noHtml wrap . instTable
where
wrap contents = subSection (collapseDetails id_ DetailsOpen (summary +++ contents))
wrap contents = subSection (hdr +++ collapseDetails id_ DetailsOpen (summary +++ contents))
instTable = subTableSrc pkg qual lnks splice
subSection = thediv ! [theclass "subs instances"]
summary = thesummary << "Instances"
hdr = h4 ! collapseControl id_ "instances" << "Instances"
summary = thesummary ! [ theclass "hide-when-js-enabled" ] << "Instances details"
id_ = makeAnchorId $ "i:" ++ nm
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment