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

Media Queries #18

Open
mbrowne opened this issue Jul 29, 2017 · 3 comments
Open

Media Queries #18

mbrowne opened this issue Jul 29, 2017 · 3 comments

Comments

@mbrowne
Copy link

mbrowne commented Jul 29, 2017

Interesting library. Is there any plan to add additional media queries for different device sizes, in addition to the current portrait and landscape ones that don't specify device size?

@ryanve
Copy link
Owner

ryanve commented Jul 30, 2017

Thanks @mbrowne yes. I've been considering something with increments in em units because these are ideal for media queries. I'd like to avoid breakpoint variables because I think in a large codebase if someone updates the breakpoints it would have a high chance of breaking some layouts. I'd want to support both width and height media queries. What do you think about something like this? What would be most useful? Can you think of a way to make this more succinct but still intuitive?

<example class="flex@min-width-40em flex@min-height-30em">

@mbrowne
Copy link
Author

mbrowne commented Jul 31, 2017 via email

@ryanve
Copy link
Owner

ryanve commented Jul 31, 2017

Thanks—great input. Actually something like class="flex@no-grid" was something I considered too for use with fallbacks. I've been wanting to develop a grid library too.

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