From: RafiBomb Date: Mon, 21 Mar 2016 06:26:45 +0000 (-0700) Subject: updates grid docs X-Git-Tag: v2.0.0-rc.4~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deb304fbf978f8d1691508045537ffa667db72c7;p=thirdparty%2Ffoundation%2Ffoundation-emails.git updates grid docs --- diff --git a/docs/pages/grid.md b/docs/pages/grid.md index f4915c83..32822207 100644 --- a/docs/pages/grid.md +++ b/docs/pages/grid.md @@ -10,10 +10,10 @@ The grid has two core elements: the *row* and *column*. Rows define horizontal s All emails should have a container element. This gives the email a maximum width for email clients on larger screens. It also orients the email in the center. -A container is a full table, so it needs the tags `` ``, ``, and finally `
`. The class `.container` goes on the ``. +A container is a full table, so it needs the tags `
`, ``, and finally `
`. The class `.container` goes on the ``. ```inky_example - +All the rows go here ``` --- @@ -25,7 +25,11 @@ A row is a `
` with a `` and ``. Inside of this ``, you'll In Inky HTML, use the `` tag to create a row. ```inky_example - + + + Columns go here + + ``` --- @@ -42,7 +46,7 @@ Here's our full column syntax so far:
- +
This is a column.This is a column. Columns contain your content.
@@ -52,7 +56,7 @@ Here's our full column syntax so far: In Inky HTML, use the `` class to create a column. ```inky_example -This is a column. +This is a column. Columns contain your content. ``` ### Sizing @@ -63,7 +67,7 @@ Set column sizes with the classes `.large-n` and `.small-n`, where `n` is how wi In Inky HTML, set the attribute `small` or `large` on the `` tag with the size you want. If you don't fill in `small`, it will use 12 by default. If you fill in `small` but not `large`, `large` will use the same value as `small`. -```inky_example +```html ``` @@ -89,8 +93,8 @@ Collapsing a row removes the gutters from every column, which is the spacing bet ```inky_example - These columns touch. - These columns touch. + + ``` @@ -104,7 +108,7 @@ Use the class `.large-offset-n` to create an offset, where `n` is the amount of ```inky_example - One - Two + + ```