-
Notifications
You must be signed in to change notification settings - Fork 2
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
Media query orders can get mixed up #1
Comments
Any solution for this? This is a very helpful script but the order issue does prevent me from using it. I supposed you'd need an additional argument for direction as well since mobile-first v. desktop-first could be an issue. Thanks for sharing your work. |
I am currently without an office setup so I can't test whether this solution will work or not, but you should be able to put a set of empty media queries at the beginning of your sass file defining the order. |
I'll give it a shot. Thanks for getting back to me. On Nov 28, 2012, at 2:05 PM, Jeremy Worboys [email protected] wrote:
|
Didn't work unfortunately. On Nov 28, 2012, at 2:05 PM, Jeremy Worboys [email protected] wrote:
|
I had a feeling it may not. If you are any good with python have a go at On 29/11/2012, at 8:15 AM, Dallas Johnson [email protected] wrote: Didn't work unfortunately. On Nov 28, 2012, at 2:05 PM, Jeremy Worboys [email protected]
— |
Actually, I think it may work with a faux rule in the "empty" media queries. I haven't been able to test it thoroughly but looks good at first glance. On Nov 28, 2012, at 2:17 PM, Jeremy Worboys [email protected] wrote:
|
Media queries are appended in the order they are found in the file.
This could cause an issue in the following scenario:
The desired output would be:
The actual output would be:
The ideal situation would be both selector to be red at sizes wider than 40em. View the demo here
The text was updated successfully, but these errors were encountered: