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

optimize media queries #56

Open
wpalmer opened this issue Sep 5, 2019 · 0 comments
Open

optimize media queries #56

wpalmer opened this issue Sep 5, 2019 · 0 comments

Comments

@wpalmer
Copy link

wpalmer commented Sep 5, 2019

sometimes, @media queries are redundant, especially when generated by CSS preprocessors which support nested media queries. eg:

@media screen and (min-width: 768px) and (min-width: 800px) {
...
}

These should be rewritten to remove redundancies:

@media screen and (min-width: 800px) {
...
}

similarly, @media queries are sometimes impossible, eg:

@media screen and (max-width: 767px) and (min-width: 800px) {
...
}

these (and their associated blocks) should be completely removed.

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

1 participant