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

If two nested media queries are formulated with the screen-parameter, the resulting media query is invalid #2068

Closed
mmanneva opened this issue Jun 24, 2014 · 3 comments

Comments

@mmanneva
Copy link

Hi,

a structure like this:

@media screen and (min-width: 640px) {
    @media screen and(min-width: 1280px) {
        font-size: 80px;
    }
}

generates css-code like this:

@media screen and (min-width: 640px) and screen and (min-width: 1280px) {
    font-size: 80px;
}

In our scenario we use mixins for font sizes, and the code surrounding it uses media queries to control the layout, which resulted in the above situation. We worked around it by dropping the screen-criteria in the mixins, but that might not be applicable everywhere.

(Our lessc version is 1.7.0.)

@seven-phases-max
Copy link
Member

See #1508, #1573.

@seven-phases-max
Copy link
Member

Closing as duplicate of #1508.

@mmanneva
Copy link
Author

Ok, thanks!

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