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  |     webmanual %> \out -> do  | ||||||
|       need webmanpages |       need webmanpages | ||||||
|       liftIO $ writeFile webmanual [i| |       liftIO $ writeFile webmanual "* toc\n\n" | ||||||
| <style> |  | ||||||
| #toc > ol > li { |  | ||||||
|   padding-top:1em; |  | ||||||
|   font-weight:bold; |  | ||||||
| } |  | ||||||
| #toc > ol > li > ol { |  | ||||||
|   font-weight:normal; |  | ||||||
| } |  | ||||||
| </style> |  | ||||||
| * toc |  | ||||||
| 
 |  | ||||||
| |] |  | ||||||
|       forM_ webmanpages $ \f -> do -- site/hledger.md, site/journal.md |       forM_ webmanpages $ \f -> do -- site/hledger.md, site/journal.md | ||||||
|         cmd Shell ("printf '\\n\\n' >>") webmanual :: Action ExitCode |         cmd Shell ("printf '\\n\\n' >>") webmanual :: Action ExitCode | ||||||
|         cmd Shell "pandoc" f "-t markdown --atx-headers" |         cmd Shell "pandoc" f "-t markdown --atx-headers" | ||||||
|  | |||||||
| @ -132,6 +132,14 @@ h4, h5, h6 { | |||||||
| #toc > ol > li > ol li { | #toc > ol > li > ol li { | ||||||
| 		padding-left:1em; | 		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) */ | /* hide top item(s) */ | ||||||
| /* #toc > ol > li > a { display:none; } */ | /* #toc > ol > li > a { display:none; } */ | ||||||
| /* #toc > ol > li > ol > li { padding-left:0; } */ | /* #toc > ol > li > ol > li { padding-left:0; } */ | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user