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

Implement CSS media queries for all target devices #19

Closed
art-in opened this issue Dec 16, 2013 · 1 comment
Closed

Implement CSS media queries for all target devices #19

art-in opened this issue Dec 16, 2013 · 1 comment
Labels

Comments

@art-in
Copy link
Owner

art-in commented Dec 16, 2013

Media queries should clearly distinguish desktop, tablet and smartphone browsers, for applying CSS rules.

@art-in
Copy link
Owner Author

art-in commented Dec 16, 2013

Media queries is a great way for managing CSS rules for different devices.

Problem is that browsers give wrong values to the queries, so resulting query can also be evaluated incorrectly.

My goal was to create such queries, which will give appropriate CSS file for target device (D=Desktop, T=Table, S=Smartphone), and appropriate CSS file when simply resizing viewport in Desktop.
To distinguish target device you can't just use width, it is the same for T and S. You have to use device-width.
Ok then. But if you only rely on device-width, you will not support resizing in D.
Also my preference was to deny cascading inheritance in styles from different CSS files.

As a result I've created working (but bulky!) media queries, which clearly distinguish styles for target devices and for different sizing of desktop browser without styles overlapping.

@art-in art-in closed this as completed Dec 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant