Issue #7664 resolved

First child has no vertical margin

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. Jon 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,
    Jon

  2. Log in to comment