Skip to content
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

Merge same @media #853

Open
dmitryuk opened this issue Nov 12, 2024 · 1 comment
Open

Merge same @media #853

dmitryuk opened this issue Nov 12, 2024 · 1 comment

Comments

@dmitryuk
Copy link

Actual

@media (min-width: 576px) {
    .container {
        --1z: 16px;
        padding-left: 8px;
        padding-right: 8px
    }
}


@media (min-width: 576px) {
    .container {
        --1u: calc((100vw - 556px + var(--1z)) / 2);
        --1t: calc((100vw - 556px + var(--1z)) / -2);
        max-width: 100%;
        width: 556px
    }
}

expected:

@media (min-width: 576px) {
    .container {
        --1z: 16px;
        padding-left: 8px;
        padding-right: 8px
        --1u: calc((100vw - 556px + var(--1z)) / 2);
        --1t: calc((100vw - 556px + var(--1z)) / -2);
        max-width: 100%;
        width: 556px
    }
}

How to do it with lightingcss?

@devongovett
Copy link
Member

This already works? playground

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