Skip to content

Extend #3375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
teratron opened this issue Mar 15, 2019 · 2 comments
Closed

Extend #3375

teratron opened this issue Mar 15, 2019 · 2 comments

Comments

@teratron
Copy link

teratron commented Mar 15, 2019

@grid: 16;
@e: 2;
.for-media(1);
.for-media(@n, @i: 6, @j: @e) when (@i >= @n) {
    @media only screen and (max-width: (@i*200px + 200px)) {
        @r: @grid - @j;
        .grid {
            grid-template-columns: repeat(@r, minmax(0, 1fr));
        }

        @s: @r + 1;
        .cell-@{s} {
            grid-column: span @r;
        }
        .for-media-cell(@grid);
        .for-media-cell(@m, @k: (@s + 1)) when (@k =< @m) {
            .cell-@{k} {
                &:extend(.cell-@{s}); //**       not work :(       **
                &:extend(.cell-15);   //**       work (for example)       **
            }
            .for-media-cell(@m, (@k + 1));
        }
    }
    .for-media(@n, (@i - 1), (@j + @e));
}
@seven-phases-max
Copy link
Member

See #1485.

@seven-phases-max
Copy link
Member

Closing as a duplicate of #1485.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants