Skip to content

Remove margin-top from panel when it is first-child #265

@erikhallaraaker

Description

@erikhallaraaker

All panels have margin-top: 1rem, which is good as panels usually needs some spacing. It is however, unfortunate that the first child also has this margin, as the panel is usually a direct child of a col and that makes it not line up with other content.

I propose to rewrite the panel rule to the following:

.panel {
    &:not(:first-child) {
        margin-top: 1rem;
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    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