We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Within susy 2 I could use beneath code to make a inner element wider than the parent.
<div> <p>Some random content</p> </div>
$susy: ( columns: 12 ); div{ @include span(10 nest); @include squish(1); } p{ @include span(12 of 10); @include pull(1 of 10); }
I was trying to do the same, but couldn't recreate it logical.
$susy: ( columns: susy-repeat(12) ); div{ width: span(10); margin-left: span(1 wide); margin-right: span(1 wide); } p{ margin-left: - span(1 wide of 10); width: span(12 of 10); }
This creates the error on width: span(12 of 10);:
width: span(12 of 10);
Error: [su-valid-location] There are not enough columns in grid 1 1 1 1 1 1 1 1 1 1 for span 12 at 1.
1 1 1 1 1 1 1 1 1 1
12
1
Using width: span(6 of 10) * 2 + gutter(of 10); would work, but feels a bit hacky. Is there a better method to have a element bigger than it's parent?
width: span(6 of 10) * 2 + gutter(of 10);
The text was updated successfully, but these errors were encountered:
We could allow this for symmetrical spans again, that shouldn't be a difficult change.
Sorry, something went wrong.
Is there a timeline for this or should i use the hacky way?
I'm not likely to get to it in the next few weeks - unless someone else wants to make a pull request.
No branches or pull requests
Within susy 2 I could use beneath code to make a inner element wider than the parent.
I was trying to do the same, but couldn't recreate it logical.
This creates the error on
width: span(12 of 10);
:Using
width: span(6 of 10) * 2 + gutter(of 10);
would work, but feels a bit hacky. Is there a better method to have a element bigger than it's parent?The text was updated successfully, but these errors were encountered: