Skip to content

[Container] Nested containers on mobile screens should not have double margin #6239

Open
@MartinRixham

Description

@MartinRixham

Wouldn't it make sense to remove the margin of nested containers on mobile screens?

like so:

@media only screen and (max-width: @largestMobileScreen) {
.ui.container .ui.container {
margin-left: 0 !important;
margin-right: 0 !important;
}
}

I would like to use a text container inside of a normal container. This looks fine on most screens but on mobile there is a double margin at the side. Perhaps it is unusual to nest containers but for my purpose the text container contains the main page content and the outer container contains the area controlled by a navigation component (which animates page transitions).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions