site: consistent toc styling
This commit is contained in:
		
							parent
							
								
									130d259cb1
								
							
						
					
					
						commit
						778b78e0b9
					
				
							
								
								
									
										14
									
								
								Shake.hs
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								Shake.hs
									
									
									
									
									
								
							| @ -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" | ||||
|  | ||||
| @ -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; } */ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user