]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
added mixin clearing instruction to block grid docs
authorzurbchris <chris@zurb.com>
Wed, 6 Mar 2013 22:06:59 +0000 (14:06 -0800)
committerzurbchris <chris@zurb.com>
Wed, 6 Mar 2013 22:06:59 +0000 (14:06 -0800)
docs/components/block-grid.html.erb

index 4b5fb838c2b54a8b79bc0711c9064c95d40a9497..5a3e8ca5ef3045baeef17c9d4af9729ad2ac04e9 100644 (file)
@@ -97,6 +97,15 @@ $base-style: true
           <li><img src="../img/demos/demo5.jpg"></li>
         </ul>
 
+        <h5>Clearing Block Grid Rows</h5>
+        <p>We have this built into the CSS, but you'll need to add a bit of code if you want your block grid to change layout between breakpoints. If you don't use this, it will inherit whatever you put in the smallest media query. This code looks for the <code>n+1</code> of the grid so that it clears properly. That code looks like this:</p>
+
+<%= code_example '
+.your-small-class-name > li { clear: none !important; }
+', :css %>
+
+        <p><strong>Note:</strong> If you are using the same class across breakpoints, your mixin should override this and you won't need it. If you want to control the layout using different classes, use the above snippet.</p>
+
         <h5>Available SCSS Variables</h5>
 
 <%= code_example '