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

Multiple values in a media query #68

Open
gbrassey opened this issue Sep 20, 2016 · 0 comments
Open

Multiple values in a media query #68

gbrassey opened this issue Sep 20, 2016 · 0 comments

Comments

@gbrassey
Copy link

In regular CSS you can use a comma to separate two or more media query rules:

@media (min-width: 700px), handheld and (orientation: landscape) { ... }

But doing the same with modules-values causes a break:

@value desktopQuery from "styles/variables/breakpoints.css";
@value tabletQuery from "styles/variables/breakpoints.css";

@media desktopQuery, tabletQuery { ... }

Looking at the compiled CSS, only the last value is properly inserted into the document:

@media i__const_desktopQuery_50, (min-width: 769px) and (max-width: 1024px) { ... }

Is there some syntax that I'm missing. I realize that it is not possible to set multiple values on a single line but is there some workaround for this use case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants