-
-
Notifications
You must be signed in to change notification settings - Fork 352
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
span function return calc(), but not percentages. #679
Comments
When you mix non-comparable units (e.g.
I think we have an open issue for adding explicit negative-spans to Susy, but that hasn't been built yet. PR's are always welcome. |
For me |
Sorry, Sass doesn't compile inside @its-rj Without seeing the actual issue, it's really hard to comment on the rest. You can use Susy's * { box-sizing: border-box; }
$gutter: 12px;
$half-gutter: $gutter / 2;
.grid-item {
width: percentage(3/12); // span 3 of 12, ignoing gutters
padding: $half-gutter; // static gutters as padding
} |
If you're still running into problems, please open a new issue with additional details. |
Wow, that was a quick reply! This way it's working. Thanks so much! |
Why span() function return calc() function, but not percentages.
When i'm trying to pull element like this "margin-left: 0 - span(3)".
In browser i saw : "margin-right: 0-calc(3.2rem + ((100% - 17.6rem) / 12 * 3));"
The text was updated successfully, but these errors were encountered: