From: harry Date: Fri, 14 Jul 2017 17:46:03 +0000 (+0530) Subject: Update docs copy of grid container rework! X-Git-Tag: v6.4.2-rc2~1^2~19^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10371%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Update docs copy of grid container rework! --- diff --git a/docs/pages/xy-grid.md b/docs/pages/xy-grid.md index 51f166e51..399bbb4f5 100644 --- a/docs/pages/xy-grid.md +++ b/docs/pages/xy-grid.md @@ -103,10 +103,10 @@ The grid defaults to the full width of the available space. To contain it use th ``` ### Grid Container Fluid -To stretch the content to the full width of the available space, simply use the class `grid-container-fluid` instead. +To stretch the content to the full width of the available space, simply add the class `fluid` to your `grid-container`. ```html -
+
cell
cell
@@ -117,21 +117,15 @@ To stretch the content to the full width of the available space, simply use the ### Grid Container Full -To stretch the content to the full width of the available space and remove grid container padding, simply use the class `grid-container-full`. Note that this is primarily for use with `grid-margin-x` - it works with `grid-padding-x` too, but will work the same as `grid-container-fluid`. +To stretch the content to the full width of the available space and remove grid container padding, simply add the class `full` to your `grid-container`. Note that this variation is primarily for use for the `grid-margin-x` - it works with `grid-padding-x` too, but will work the same as `.grid-container.fluid`.
-

Please note when using the `grid-container-full` and `grid-margin-x` you will also need to hide the horizontal overflow in order for this to work correctly if your content is going to touch the sides of the viewport.

-

The best way to do this is: - ``` - body { - overflow-x: hidden; - } - ``` -

+

Please note that when you are using `grid-margin-x` on a `grid-container` with `full` class you will also need to hide the horizontal overflow in order for this to work correctly if your content is going to touch the sides of the viewport.

+

The best way to do this is:  `body {overflow-x: hidden;}`

```html -
+
cell
cell