Friday, July 3, 2015

Re: GSS Media Query Variables

Thanks!

I posted there to try to help with the bug, if indeed there is a bug.

My issue is that I want to define pixel numbers in one place and use those in my media queries. And I can't seem to get that to work.

I can do:
@def QUERY screen and (min-width: 600px);
@media QUERY {}

and that'll work just fine.  But if I do:
@def SIZE 600px;
@def QUERY screen and (min-width: SIZE);
@media QUERY {}

it results in "@media screen and (min-width: SIZE) {}" rather than the expected "@media screen and (min-width: 600px) {}"

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment