-
Notifications
You must be signed in to change notification settings - Fork 36
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
resolution queries in $breakpoints results in unit() error #4
Comments
After looking at the documentation some more, I'm probably using this wrong... So perhaps regard this as a feature request? |
@cr0ybot Great idea. I went ahead and added it in. You can use it with the |
Thanks for taking the time to look into this! Unfortunately, I'm getting a new error when attempting to use the new functionality. Error with LibSass:
Same error with Ruby Sass, slightly different output:
Looks like map-get doesn't interpolate the
But there is also another issue plaguing me. I can't get
(And I'm not sure why it's coming out as 29.9375em instead of 30em, maybe that's for a separate issue) Maybe I'm using |
Let's break it into two parts: Part 1: New functionality Part 1That's a cool idea. I'll implement it. Part 2You'll need the h or height key to tell mappy-bp that we're dealing with height. So what you can do is this You can use either h or height to signify that we're dealing with height. The h and max shorthands are just for lazy bastards like me :) One more thing. It's coming out as 29.9375em because I removed 1px away from max-height queries. This is to ensure that media queries don't overlap. which could cause potential styling overlap |
Hey I wasn't able to get other arguments like It's strange you got that error because it worked for me. Can you run a debug for $mappy-map and let me know the results? Would be awesome if you can help |
Ahhh, ok. I was definitely using the height arguments incorrectly, my bad. It would be really great if that was more explicit in the readme, since right now there aren't any clear examples of height queries. EDIT: I see height queries are in the readme, but the max-height section looks like it wasn't formatted properly. Also, the example that's there seems to be wrong, I think? I switched back to having the
This is all currently happening on Mac 10.10.3, if that's helpful at all. Give me a bit and I'll try on a different (windows) computer. |
Getting no errors from Ruby Sass on Windows 7 64bit:
Output is correct too:
Guess I need to figure out if my versions of Sass on Mac are old or something... Sorry for the trouble! |
LibSass and Ruby Sass versions are up-to-date on my Mac... Not sure what's going on here, but as soon as I can get access to another Mac I'll give it another try. Probably won't be until Monday, though. |
It's weird. I'm on Mac 10.10.3 as well and it seems to work for me, both Ruby Sass and LibSass |
Well, chalk it up to my issue, not yours. I feel like this issue has gone On Thu, Jul 2, 2015, 10:13 PM Zell Liew [email protected] wrote:
|
I have to say, I love mappy-breakpoints! It's been so flexible up to this point, I couldn't use anything else.
That out of the way, I like to put resolution breakpoints in the map, or at least I would if it worked. I tried both
'hires': min-resolution 1.5dppx
and'lores': max-resolution 1.5dppx
, and both result in this error:However, using the query directly (
@include mappy-bp(min-resolution 1.5dppx)
) works flawlessly.The text was updated successfully, but these errors were encountered: