From: RafiBomb Date: Mon, 21 Mar 2016 05:45:00 +0000 (-0700) Subject: updates buttons docs X-Git-Tag: v2.0.0-rc.4~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2f347d90e108bbd152471aea535b906d62e1e2c;p=thirdparty%2Ffoundation%2Ffoundation-emails.git updates buttons docs --- diff --git a/docs/pages/alignment.md b/docs/pages/alignment.md index f1b080cc..79d20ee0 100644 --- a/docs/pages/alignment.md +++ b/docs/pages/alignment.md @@ -5,6 +5,8 @@ description: Centering, images, text and buttons in HTML emails made easy. Foundation includes a handful of helpful alignment classes to add common positioning behaviors to elements. +--- + ## Text alignment You can align text with the `.text-x` classes. These classes will appy to the large breakpoint as well as the small. @@ -62,6 +64,8 @@ You can combine these classes to override the behavior on the small breakpoint. ``` +--- + ## Centering images Just wrap the `
` around an image you’ll be good to go. Inky will handle the magic behind the scenes! In the CSS version, you’ll add a `.float-center` class, `align="center"` attribute and wrap a <center> tag to make sure things are centered. @@ -103,6 +107,8 @@ If you need to center an image only on mobile clients, you can apply the `.small ``` +--- + ## Aligning images left and right You can also align images to the left or the right. @@ -119,6 +125,8 @@ You can also align images to the left or the right. ``` +--- + ## Centering a button Wrap the button with `
` tags to center it. @@ -135,6 +143,8 @@ Wrap the button with `
` tags to center it. ``` +--- + ## Centering columns Tables by nature take up as much space is available to them. Because of this, centering columns can be done by adding empty columns to left and right of the column to be centered. diff --git a/docs/pages/button.md b/docs/pages/button.md index 8d0e9619..039605f7 100644 --- a/docs/pages/button.md +++ b/docs/pages/button.md @@ -21,21 +21,24 @@ Buttons can be made larger or smaller by adding the class `.tiny`, `.small`, or In Inky HTML, add the same class to the ` - - + + + + ``` +Don't forget the `href=""` ;) + --- ## Expanded -To create an expanded button, add the class `.expanded` to the outer `` of the button, and wrap a `
` tag around the ``. +To create an expanded button (full width of it's container), add the class `.expanded` to the outer `
` of the button, and wrap a `
` tag around the ``. In Inky HTML, add the `.expanded` class to the ` + ``` ---