]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
`nth-of-type` fix for block-grids 1716/head
authorEneko Illarramendi <eneko@illarra.com>
Tue, 5 Mar 2013 13:24:55 +0000 (14:24 +0100)
committerEneko Illarramendi <eneko@illarra.com>
Tue, 5 Mar 2013 13:24:55 +0000 (14:24 +0100)
`nth-of-type` should be applied to the `li` to have the contents float correctly.

scss/foundation/components/_block-grid.scss

index 7c16c5bc4a3408c8e9abef2f833504b2ae0c16f8..bd6794ab3dd557abdc8a4b7b7936919ef52610f3 100644 (file)
@@ -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; }
   }
 
 }