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

What about media queries? #20

Closed
kevinsimper opened this issue Sep 1, 2015 · 2 comments
Closed

What about media queries? #20

kevinsimper opened this issue Sep 1, 2015 · 2 comments

Comments

@kevinsimper
Copy link

It looks really nice! But what about media queries? Of course I could just listen on window resize, but the semantic of media queries is also that you can nest them under the same selector like:

.myclass {
  @media(min-width: 1000px) {
    color: yellow;
  }
}

This makes it easier to make small css components that is responsive.

Is it possible to something like it in reactcss?

@casesandberg
Copy link
Owner

@kevinsimper ReactCSS will never support traditional media queries. I am currently working on another package that allows you to use element queries (width and height of each component) and that will be baked nicely into ReactCSS :)

@kevinsimper
Copy link
Author

@casesandberg Okay nice, do you have a link? :)

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

No branches or pull requests

2 participants