Skip to content

Commit

Permalink
Merge pull request #26 from dbaynard/fix/collapse-divs
Browse files Browse the repository at this point in the history
Collapse div.sourceCode like para and pre
  • Loading branch information
jgm authored Dec 11, 2017
2 parents 6bfd86c + 4183a82 commit 0b9b20d
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 0b9b20d

Please sign in to comment.