Skip to content

Commit

Permalink
Collapse divs correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaynard committed Dec 11, 2017
1 parent 6bfd86c commit 4183a82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Skylighting/Format/HTML.hs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ styleToCss f = unlines $
, "a.sourceLine:empty { height: 1.2em; position: absolute; }" -- correct empty line height
, ".sourceCode { overflow: visible; }" -- needed for line numbers
, "code.sourceCode { white-space: pre; position: relative; }" -- position relative needed for absolute contents
, "div.sourceCode { margin: 1em 0; }" -- Collapse neighbours correctly
, "pre.sourceCode { margin: 0; }" -- Collapse neighbours correctly
, "@media screen {"
, "div.sourceCode { overflow: auto; }" -- do not overflow on screen
, "}"
Expand Down

0 comments on commit 4183a82

Please sign in to comment.