]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
docs: add the multiple-values `breakpoint` usage in the XY grid doc
authorNicolas Coden <nicolas@ncoden.fr>
Sun, 18 Feb 2018 16:18:42 +0000 (17:18 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Sun, 18 Feb 2018 16:18:42 +0000 (17:18 +0100)
docs/pages/xy-grid.md

index dbc843ac58f504fddd606cf7f4bc70a32836a80c..43dccbe28b38530b35f69116fb8188d12fc0905d 100644 (file)
@@ -411,19 +411,36 @@ The cell size calculator can also be accessed as a function. This gives you the
 
 ### Responsive Grids
 
-Pair `xy-cell` with the `breakpoint()` mixin to make your grid responsive.
+Pair `xy-cell` with the `breakpoint()` mixin to make your grid responsive. The `xy-grid` mixin will automatically detect the breakpoint in which it is, but you can force it with the `$breakpoint` option.
 Refer to the Sass documentation below to learn how each mixin works and the available arguments.
 
 ```scss
-.main-content {
+.my-cell-medium-only-8 {
   @include xy-cell();
 
+  // Generate a cell with a 8/12 width on medium breakpoint only
   @include breakpoint(medium) {
     @include xy-cell(8);
   }
 }
 ```
 
+You can also use for more advanced responsive cells:
+
+```scss
+  // ... with a 8/12 width on medium breakpoint and above (with the medium gutters)
+  @include breakpoint(medium up) {
+    @include xy-cell(8);
+  }
+```
+
+```scss
+  // ... with a 8/12 width on medium, large and xlarge (with the corresponding gutters)
+  @include breakpoint(medium, large, xlarge up) {
+    @include xy-cell(8);
+  }
+```
+
 We also have a shorthand option for the above which outputs the same CSS:
 
 ```scss