]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Static Gutters documentation 9981/head
authorAndy Cochran <acochran@council.nyc.gov>
Fri, 21 Apr 2017 22:10:41 +0000 (18:10 -0400)
committerAndy Cochran <acochran@council.nyc.gov>
Fri, 21 Apr 2017 22:10:41 +0000 (18:10 -0400)
docs/pages/grid.md

index dfea489c0e5cbe1ad46d23441ca9dfbdf121cf83..a862df6ac75308987dedf6c2137a9bca5bebb38f 100644 (file)
@@ -284,9 +284,7 @@ In order to work around browsers' different rounding behaviors, Foundation will
 
 ### Gutters
 
-<div class="warning callout">
-  <p>Responsive gutters were added in Foundation 6.1.</p>
-</div>
+#### Responsive Gutters
 
 The grid *gutter*&mdash;the space between two columns in a row, and the space between the edge of a grid and the edge of the page&mdash;is responsive, and becomes wider on larger screens.
 
@@ -295,7 +293,7 @@ Breakpoint | Gutter Size
 `small`    | 20px
 `medium`   | 30px
 
-If you're using the Sass version of Foundation, you can change these defaults by editing the `$grid-column-gutter` variable:
+If you're using the Sass version of Foundation, you can change these defaults by editing the `$grid-column-gutter` variable map:
 
 ```scss
 $grid-column-gutter: (
@@ -306,12 +304,22 @@ $grid-column-gutter: (
 
 To add more gutter definitions, add new lines to the map. The breakpoint names used here must match a breakpoint name in your project's `$breakpoints` map.
 
-Or, if you prefer using one gutter size on every breakpoint, just use a single number.
+#### Static Gutters
+
+If you prefer using one gutter size for every breakpoint, just use a single number for the `$grid-column-gutter` variable:
 
 ```scss
 $grid-column-gutter: 30px;
 ```
 
+You can also explicitly set the gutter size for a particular grid row by adding the `.gutter-[size]` class. This is useful when your using responsive gutters but specific components need static gutters.
+
+```html
+<div class="row gutter-small">
+  <div class="columns">This grid always has small gutters</div>
+</div>
+```
+
 ---
 
 ### Collapse/Uncollapse Rows