Im using susy to make a simple 12 columns grid. I think I've got it more or less figured out except for one thing. I've got the following markup:
<div class="news">
<div class="tweet">
<p>the tweet<p/>
</div>
<div class="blog">
<h3>Recent News</h3>
<div class="excerpt">
<p>the excerpt<p/>
</div>
<div class="excerpt">
<p>the excerpt<p/>
</div>
</div>
</div>
I want the "news" to take up a full row, the "tweet" to take up half of this row and the "blog" to take up the other half. The two "excerpts" should then take up half of the "blog" column. I therefore have the following scss:
.news {
@include container();
}
.tweet {
@include span(6);
}
.blog {
@include span(6 at 7);
}
.excerpt {
@include span(3 of 6);
}
Of course the second excerpt now has a right gutter too which makes it jump on a new line. So I thought I would use the last
flag for the :last-child
of the excerpts which susy provieds but this doesn't work. The right gutter was already set by the @include span(3 of 6)
and will therefore stay. The only thing that does the trick is removing the right margin like so:
.excerpt:last-child {
margin-right: 0;
}
This works but I think there has to be another solution. Is there?