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

Combine HiDPI rules #8

Closed
kremalicious opened this issue Oct 29, 2013 · 2 comments
Closed

Combine HiDPI rules #8

kremalicious opened this issue Oct 29, 2013 · 2 comments

Comments

@kremalicious
Copy link

Media queries are also used to serve high DPI assets so combining them into one definition would be very welcome.

The current best practice is to use this snippet, like in H5BP and WordPress:

@media print,
  (-o-min-device-pixel-ratio: 5/4),
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 120dpi) { }
@thomasdobber
Copy link
Contributor

At the moment, the media queries are being sorted by min-width, max-width, min-height, max-height, others and at the very last print. That snippet should end up somewhere at the very end of the file. I am working on a way to make the sorting order and output order customisable in the options.

@kremalicious
Copy link
Author

Thanks and indeed, that's working as expected. Probably too much caching going on when I tested that the first time. That media query snippet shows up right at the end and, if present, before a print only media query.

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