From: Eneko Illarramendi Date: Tue, 5 Mar 2013 13:24:55 +0000 (+0100) Subject: `nth-of-type` fix for block-grids X-Git-Tag: v4.0.5~30^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1716%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git `nth-of-type` fix for block-grids `nth-of-type` should be applied to the `li` to have the contents float correctly. --- diff --git a/scss/foundation/components/_block-grid.scss b/scss/foundation/components/_block-grid.scss index 7c16c5bc4..bd6794ab3 100644 --- a/scss/foundation/components/_block-grid.scss +++ b/scss/foundation/components/_block-grid.scss @@ -35,8 +35,9 @@ $block-grid-media-queries: true !default; &>li { width: 100%/$per-row; padding: 0 $spacing $spacing; + + &:nth-of-type(#{$per-row}n+1) { clear: both; } } - &:nth-of-type(#{$per-row}n+1) { clear: both; } } }