Skip to content

[Grid] .stackable and regular grids have inconsistent margins on mobile screens #5170

@yamsellem

Description

@yamsellem

Grid and stackable grids don't seems to have the same behavior on small screens:

@media only screen and (max-width: 767px) {
    .ui.grid {
        margin-left: -1rem !important;
        margin-right: -1rem !important;
    }
    .ui.stackable.grid {
        margin-left: 0rem !important;
        margin-right: 0rem !important;
    }
}

To mix .ui.grid and .ui.stackable.grid on the same page I have to fix this in grid.overrides:

@media only screen and (max-width: 767px) {
    .ui.grid {
        margin-left: 0rem !important;
        margin-right: 0rem !important;
    }
}

Have I missed something?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions