From 778b78e0b981482c1df582ba212c3557d9e03712 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 16 Apr 2016 05:52:20 -0700 Subject: [PATCH] site: consistent toc styling --- Shake.hs | 14 +------------- site/css/style.css | 8 ++++++++ 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/Shake.hs b/Shake.hs index 9b8a7e895..f972e5784 100755 --- a/Shake.hs +++ b/Shake.hs @@ -202,19 +202,7 @@ main = do webmanual %> \out -> do need webmanpages - liftIO $ writeFile webmanual [i| - -* 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" diff --git a/site/css/style.css b/site/css/style.css index 8fbbe50cb..5fbeb91fc 100644 --- a/site/css/style.css +++ b/site/css/style.css @@ -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; } */