jameslnewell / styled-components-breakpoint

Utility function for using breakpoints with styled-components 💅.
243 stars 17 forks source link

Question. Is there a way to do media queries in between? #6

Closed marhalpert closed 6 years ago

marhalpert commented 7 years ago

Hi @jameslnewell,

I was just wondering if there was a way to do something like this:

@media (min-width: 46.0625em) and (max-width: 64.0625em) { ... }

Thanks!

jameslnewell commented 7 years ago

Hi @marhalpert. Thanks for getting in touch! There isn't a way to do this at the moment. I have been meaning to get round to implementing the rest of the mixins from my sass library (sass-breakpoints) but haven't found the time or the need yet.

I'd be happy to consider a PR.

jameslnewell commented 6 years ago

@marhalpert what do you mean by between? inclusive (or exclusive) at both (or just one) ends?

jameslnewell commented 6 years ago

I've added breakpoint(gte, lt) in v2

marhalpert commented 6 years ago

👍