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

CSS variables in media queries #60

Closed
haliphax opened this issue Sep 26, 2017 · 2 comments
Closed

CSS variables in media queries #60

haliphax opened this issue Sep 26, 2017 · 2 comments
Labels
question General questions about the project.

Comments

@haliphax
Copy link

Summary

Doesn't look like CSS variables can be used as media query selectors. They're touted as such in the documentation, but it doesn't work for me.

Steps to Reproduce

  1. Use the following in a stylesheet: @media (--breakpoint-lg-down) { ... }
  2. View your page under the particular media query constraints
  3. Styles are not applied

Additional info

  • Shoelace version: 1.0.0-beta22
  • Affected browsers: Firefox 57
@haliphax
Copy link
Author

Bah, now I see that you're talking about "if you build Shoelace from source"...

@claviska
Copy link
Member

Yep, what you're referring to are custom media queries. There's a spec for them, but browser support isn't there yet so they need to be ran through cssnext for now.

@claviska claviska added the question General questions about the project. label Sep 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question General questions about the project.
Projects
None yet
Development

No branches or pull requests

2 participants