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 "or" handling #32

Closed
robwierzbowski opened this issue Dec 25, 2012 · 2 comments
Closed

@media "or" handling #32

robwierzbowski opened this issue Dec 25, 2012 · 2 comments
Assignees
Milestone

Comments

@robwierzbowski
Copy link
Contributor

Is there a way to specify an or for breakpoint expressions? For example:

@media (orientation: portrait), (min-width: 35em) { ... }

I see there's some fancy automatic handling of vendor prefixed values that creates an or list of media expressions, but I'm looking for a way to ask for it myself. Another example where this is needed is when the units for a breakpoint feature need a fallback:

@media (min-resolution: 119dpi), (min-resolution: 1.3dppx) { ... }

If this doesn't exist I would be interested in coding it up. I ran into the issue while building support for a more modern resolution switching media query, realized that I would need or handling, and then thought it would be a good feature to expose to authors in general.

Thoughts, syntax suggestions, did I miss it already existing?

@Snugug
Copy link
Member

Snugug commented Dec 25, 2012

No, not at present. I've got nothing against adding it, my only concern is that current list handling in Sass is very limted and being able to create a system that allows for both complex queries and or queries is a challenge from a DX perspective.

@ghost ghost assigned Snugug Feb 11, 2013
@robwierzbowski
Copy link
Contributor Author

Closed in favor of #35.

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