]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
Update code examples in docs to use inky_example instead of inky
authorGeoff Kimball <geoff@zurb.com>
Thu, 17 Mar 2016 16:24:45 +0000 (09:24 -0700)
committerGeoff Kimball <geoff@zurb.com>
Thu, 17 Mar 2016 16:24:45 +0000 (09:24 -0700)
docs/pages/block-grid.md
docs/pages/button.md
docs/pages/callout.md
docs/pages/grid.md
docs/pages/inky.md
docs/pages/menu.md
docs/pages/thumbnail.md
docs/pages/visibility.md

index bd4f832bf6e87e2dcbbc8d6c5605f0d57a2934dc..97944e9979cc2957b7c6795c35df657c5ce2598d 100644 (file)
@@ -12,7 +12,7 @@ The wrapper of a block grid is a `<table>` with the class `.block-grid`, and a `
 
 In Inky HTML, use the `<block-grid>` tag with the attribute `up="n"`, where `n` is the number of items per row.
 
-```inky
+```inky_example
 <block-grid up="3">
   <td>Item 1</td>
   <td>Item 2</td>
index 672199f1f4e73673bb678d5c8cb6aa784e15f48c..8d0e96193b9a5172a3e026ab044008bf5d7a786e 100644 (file)
@@ -8,7 +8,7 @@ Creating a bullet-proof button that works in all email clients requires a table
 
 In Inky HTML, the `<button>` tag creates all of this markup for you.
 
-```inky
+```inky_example
 <button href="zurb.com">Button</button>
 ```
 
@@ -20,7 +20,7 @@ Buttons can be made larger or smaller by adding the class `.tiny`, `.small`, or
 
 In Inky HTML, add the same class to the `<button>` tag.
 
-```inky
+```inky_example
 <button href="zurb.com" class="tiny">Tiny Button</button>
 <button href="zurb.com" class="small">Small Button</button>
 <button href="zurb.com" class="large">Large Button</button>
@@ -34,7 +34,7 @@ To create an expanded button, add the class `.expanded` to the outer `<table>` o
 
 In Inky HTML, add the `.expanded` class to the `<button>` tag.
 
-```inky
+```inky_example
 <button href="zurb.com" class="expand">Expanded Button</button>
 ```
 
@@ -44,7 +44,7 @@ In Inky HTML, add the `.expanded` class to the `<button>` tag.
 
 Change the background color of a button by adding the class `.secondary`, `.success`, `.warning`, or `.alert` to the outer `<table>` (or the `<button>` tag in Inky HTML).
 
-```inky
+```inky_example
 <button href="zurb.com" class="secondary">Secondary Button</button>
 <button href="zurb.com" class="success">Success Button</button>
 <button href="zurb.com" class="warning">Warning Button</button>
index 90ca748ea49b255a66479d1f1ccde41a70fa8da9..a2aeadabd26b4e40e8cb5a37db454e35c95f3fcb 100644 (file)
@@ -13,7 +13,7 @@ Callouts use a full table structure, with the class `.callout` applied to the in
 
 When using [Inky](inky.html) HTML, the `<callout>` tag will create this structure for you.
 
-```inky
+```inky_example
 <callout>
   <p>Beware of the Kraken! Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco.</p>
 </callout>
@@ -25,7 +25,7 @@ When using [Inky](inky.html) HTML, the `<callout>` tag will create this structur
 
 The color of a callout can be changed by adding the class `.success`, `.warning`, or `.alert` to the element.
 
-```inky
+```inky_example
 <callout class="primary">
   <p>Successfully avoided Kraken. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p>
 </callout>
index c3bd7d5d268c47e456cb0dff60925b2ceb8b537c..a9075b16f2a0d3c5ac97b4f5a2e13732a1f803cc 100644 (file)
@@ -12,7 +12,7 @@ All emails should have a container element. This gives the email a maximum width
 
 A container is a full table, so it needs the tags `<table>` `<tbody>`, `<tr>`, and finally `<td>`. The class `.container` goes on the `<table>`.
 
-```inky
+```inky_example
 <container></container>
 ```
 
@@ -24,7 +24,7 @@ A row is a `<table>` with a `<tbody>` and `<tr>`. Inside of this `<tr>`, you'll
 
 In Inky HTML, use the `<row>` tag to create a row.
 
-```inky
+```inky_example
 <row></row>
 ```
 
@@ -51,7 +51,7 @@ Here's our full column syntax so far:
 
 In Inky HTML, use the `<columns>` class to create a column.
 
-```inky
+```inky_example
 <columns>This is a column.</columns>
 ```
 
@@ -63,7 +63,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 `<columns>` 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
+```inky_example
 <columns small="12" large="6"></columns>
 ```
 
@@ -73,7 +73,7 @@ The first column in a row must have the class `.first`, and the last column must
 
 In Inky HTML, these classes are added for you.
 
-```inky
+```inky_example
 <columns large="4">One</columns>
 <columns large="4">Two</columns>
 <columns large="4">Three</columns>
@@ -85,7 +85,7 @@ In Inky HTML, these classes are added for you.
 
 Collapsing a row removes the gutters from every column, which is the spacing between them. Add the class `.collapse` to a row to enable this.
 
-```inky
+```inky_example
 <row class="collapse">
   <columns large="6">These columns touch.</columns>
   <columns large="6">These columns touch.</columns>
@@ -100,7 +100,7 @@ Offsets add spacing to the left of a column. Use this if all the columns in a ro
 
 Use the class `.large-offset-n` to create an offset, where `n` is the amount of columns to offset by. So, for example, `.large-offset-3` would offset the column by 25% of the width of the row.
 
-```inky
+```inky_example
 <row>
   <columns large="3" class="large-offset-3">One</columns>
   <columns large="3">Two</columns>
index b9369e4134df75731b0d13b869eb71ccb0e13002..9cd04373759dbf2603e3395958f2ff0c6edce172 100644 (file)
@@ -10,7 +10,7 @@ HTML emails require tables upon tables *upon tables* to work properly. Although
 
 Inky keeps you out of a sea of tables and focused on your email. Check out this example&mdash;click "Switch to Inky" to see the difference.
 
-```inky
+```inky_example
 <container>
   <row>
     <columns></columns>
index 73f6348244efc0934cd761ad0dcb338e4834561f..546e7bf3da887f042e4ae93e66d1daee0ff644d1 100644 (file)
@@ -10,7 +10,7 @@ A menu is a `<table>` with a class of `.menu` and a `<tr>` inside of it. Each li
 
 In Inky HTML, use the tag `<menu>` to make a menu, and the tag `<item>` to make an item.
 
-```inky
+```inky_example
 <menu>
   <item href="http://zurb.com">Item</item>
   <item href="http://zurb.com">Item</item>
@@ -24,7 +24,7 @@ In Inky HTML, use the tag `<menu>` to make a menu, and the tag `<item>` to make
 
 Menu items have padding around them, which in some situations will misalign your link text with another element of your design. To strip the padding from menu items, add the class `.simple` to the menu. There will still be some horizontal space between them, to space them out.
 
-```inky
+```inky_example
 <menu class="simple">
   <item href="http://zurb.com">Item</item>
   <item href="http://zurb.com">Item</item>
@@ -38,7 +38,7 @@ Menu items have padding around them, which in some situations will misalign your
 
 Menus align horizontally by default. To switch to a vertical menu, add the class `.vertical` to the menu.
 
-```inky
+```inky_example
 <menu class="vertical">
   <item href="http://zurb.com">Item</item>
   <item href="http://zurb.com">Item</item>
index 483627413835234dc4da4867f095ee59b335dbb1..27aa58d7cf24034fa96f715fd1adb724e575821f 100644 (file)
@@ -5,7 +5,7 @@ description: Spruce up an image tag with our thumbnail style.
 
 The thumbnail style adds padding and a box shadow to an image. To use it, just add the class `.thumbnail` to an image element.
 
-```inky
+```inky_example
 <table class="thumbnail">
   <tr>
     <td><img src="//placehold.it/300x300" class="thumbnail" /></td>
index af779e2630a2887ac2ed2279c924fad65e9f9e70..665f7bb2a04fe7044292939a4dd6e20969e201cf 100644 (file)
@@ -9,7 +9,7 @@ You can use a visibility class to selectively show or hide content on mobile vs.
 
 **To show content only on mobile clients,** add the class `.hide-for-large` to the element.
 
-```inky
+```inky_example
 <callout class="hide-for-large">
   <p>This callout will only appear on small screens.</p>
 </callout>
@@ -17,7 +17,7 @@ You can use a visibility class to selectively show or hide content on mobile vs.
 
 **To show content only on desktop clients,** add the class `.show-for-large` to the element.
 
-```inky
+```inky_example
 <callout class="show-for-large">
   <p>This callout will only appear on large screens.</p>
 </callout>