From 54380ad53102ef7c1f2650aac28aab6d0d9146bd Mon Sep 17 00:00:00 2001 From: harry Date: Thu, 6 Jul 2017 23:16:57 +0530 Subject: [PATCH] Added docs on block grid! --- docs/pages/xy-grid.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/pages/xy-grid.md b/docs/pages/xy-grid.md index 863bddd75..ede941094 100644 --- a/docs/pages/xy-grid.md +++ b/docs/pages/xy-grid.md @@ -190,6 +190,25 @@ There are times when you won't want each media query to be collapsed. In this ca --- +## Block Grids + +To define cell widths at a direction-level, instead of the individual cell level, add the class `.[size]-up-[n]` to a `grid-x` or `grid-y`, where `[n]` is the number of cells to display per direction, and `[size]` is the breakpoint at which to apply the effect. + +
This example uses padding grid but this can be used with margin grid too.
+ +```html_example +
+
cell
+
cell
+
cell
+
cell
+
cell
+
cell
+
+``` + +--- + ## Offsets Offsets work by applying `margin-left` (or `margin-top` for a vertical grid) to a grid. -- 2.47.3