First child has no vertical margin

Issue #7664 resolved
Martin Geisler
created an issue

A comment like this

First paragraph.

    Some preformatted text.

Second paragraph.

looks bad: the vertical margin around the preformatted text is uneven. Specifically, there is no margin between the first paragraph and the code block, but there is a margin between the block and the second paragraph.

The culprit is this rule in your CSS:

.wiki-content > *:first-child {
  margin-top: 0;
  margin-bottom: 0;

Maybe you could just reset the top margin?

Comments (8)

  1. Jonathan Mooring staff

    Looks like this is specific to inline comments on pull requests. Looks like an issue with our diff styles colliding with our comment styles. I'll put a fix out for this on Monday.

    Thanks for reporting,

  2. Log in to comment