site: consistent toc styling

This commit is contained in:
Simon Michael 2016-04-16 05:52:20 -07:00
parent 130d259cb1
commit 778b78e0b9
2 changed files with 9 additions and 13 deletions

View File

@ -202,19 +202,7 @@ main = do
webmanual %> \out -> do
need webmanpages
liftIO $ writeFile webmanual [i|
<style>
#toc > ol > li {
padding-top:1em;
font-weight:bold;
}
#toc > ol > li > ol {
font-weight:normal;
}
</style>
* toc
|]
liftIO $ writeFile webmanual "* toc\n\n"
forM_ webmanpages $ \f -> do -- site/hledger.md, site/journal.md
cmd Shell ("printf '\\n\\n' >>") webmanual :: Action ExitCode
cmd Shell "pandoc" f "-t markdown --atx-headers"

View File

@ -132,6 +132,14 @@ h4, h5, h6 {
#toc > ol > li > ol li {
padding-left:1em;
}
/* embolden/separate top items */
#toc > ol > li {
padding-top:1em;
font-weight:bold;
}
#toc > ol > li > ol {
font-weight:normal;
}
/* hide top item(s) */
/* #toc > ol > li > a { display:none; } */
/* #toc > ol > li > ol > li { padding-left:0; } */