Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-7664

First child has no vertical margin

    XMLWordPrintable

Details

    Description

      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?

      Attachments

        Activity

          People

            jmooring moo (Inactive)
            e07804f3a382 mg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: