From 2e92476814e32f482c160c4b79c4a4a29cd3250a Mon Sep 17 00:00:00 2001 From: Eneko Illarramendi Date: Tue, 5 Mar 2013 14:24:55 +0100 Subject: [PATCH] `nth-of-type` fix for block-grids `nth-of-type` should be applied to the `li` to have the contents float correctly. --- scss/foundation/components/_block-grid.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } } -- 2.47.3