Skip to content

Lack of margin when code block ends a section #59

@m-aciek

Description

@m-aciek

All browsers lack a margin when code block ends a section:

Zrzut ekranu 2020-11-21 o 11 39 06

Compare with margin at the end of section which ends with <p> block:

Zrzut ekranu 2020-11-21 o 11 39 49

All browsers set margin-top and margin-bottom on p to 1em. So the fix is setting margin-top and margin-bottom on div.highlight analogously to 1em. But I am not sure if it is to be fixed in this or in parent theme (Sphinx's classic).

div.highlight {
    margin-top: 1em;
    margin-bottom: 1em;
}

Does someone know where to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions