Closed Lysxia closed 4 years ago
Indentation makes sense to me. Turns out the margin is hardcoded in Skylighting here. Yikes. Their code suggests their purpose is to "collapse neighbors correctly," I'm guessing this has something to do with CSS top+bottom margin collapsing but I don't know if that's really important. (<- edited, earlier I thought we were talking about left margins for some reason).
We could ask them to make this more flexible or come up with a hack, not really sure. My sense is CSS overrides are super fragile. (Tagging @euisuny if interested---how do we override someone's CSS?)
Code blocks with syntax highlighting (
pre.sourceCode
) are currently set tomargin: 0
bypygments.css
. I think code blocks look better indented, which is why I added amargin: 1em
topre
, but it only fires for raw code blocks, while thepygments.css
rule overrides it for highlighted code blocks.For consistency, either:
pre.sourceCode
blocks (but I don't know the right way to overridepygments.css
)pre
rule fromcss/style.css