]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
Fix deploy process for templates
authorEric Morris <eric@zurb.com>
Thu, 7 Nov 2013 09:56:51 +0000 (01:56 -0800)
committerEric Morris <eric@zurb.com>
Thu, 7 Nov 2013 09:56:51 +0000 (01:56 -0800)
Gruntfile.js
docs/components/getting-started.php
docs/components/grid.php
docs/components/sub-grid.php
docs/docs.php
docs/examples/buttons.html

index 491b45468ff7955aa041f905e03ed8bdef0545e7..2d3a9f64e5a072d8fc446998f903cb6117411390 100644 (file)
@@ -43,7 +43,10 @@ module.exports = function(grunt) {
       },
       zipTemplates: { 
         command: [
-          'cd build/downloads/templates',
+          'cd build/downloads/templates/base',
+          'cp * ../',
+          'cd ../',
+          'rm -rf base',
           'zip all-templates.zip *.html',
           'for i in *.html; do zip "${i%}.zip" "$i"; done',
           'cd ../../../'
index a533b622d73b38766653b99987b686e47457d2a7..2fd4f88fc9daff7cfc9d6b5ab37bed1ec7f51bc3 100644 (file)
@@ -1,12 +1,12 @@
 <h1 id="start" data-magellan-destination="start" class="light">Getting Started</h1>
-    <p class="lead">Dive into creating your responsive email.</p>
-    <hr>
-    <h2 class="light">The Boilerplate</h2>
-    <p>
-      Starting a new Ink project is fairly straightforward.  If you aren't using one of our <a href="templates.php">templates</a>, grab the boilerplate code from below to use as a starting point.  While you can reference <code>ink.css</code> using a link tag for testing purposes, be sure to remove the <kbd>&lt;link rel="stylesheet" href="ink.css" /&gt;</kbd> statement and paste your CSS into the style tag in the head before running your email through an inliner.
-    </p>
-    <h6>Boilerplate.html</h6>
-    <?php code_example(
+<p class="lead">Dive into creating your responsive email.</p>
+<hr>
+<h2 class="light">The Boilerplate</h2>
+<p>
+  Starting a new Ink project is fairly straightforward.  If you aren't using one of our <a href="templates.php">templates</a>, grab the boilerplate code from below to use as a starting point.  While you can reference <code>ink.css</code> using a link tag for testing purposes, be sure to remove the <kbd>&lt;link rel="stylesheet" href="ink.css" /&gt;</kbd> statement and paste your CSS into the style tag in the head before running your email through an inliner.
+</p>
+<h6>Boilerplate.html</h6>
+<?php code_example(
 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
     </table>
   </body>
 </html>'
-    , 'html'); ?>
-    <br>
-    <p>
-      If you're applying a background color to your entire email, be sure to attach it to the table with a class of <code>body</code> as well as to the actual <kbd>&lt;body&gt;</kbd> tag, since some clients remove this by default.
-    </p>
-    <h6>Inline Styles</h6>
-    <?php code_example(
+, 'html'); ?>
+<br>
+<p>
+  If you're applying a background color to your entire email, be sure to attach it to the table with a class of <code>body</code> as well as to the actual <kbd>&lt;body&gt;</kbd> tag, since some clients remove this by default.
+</p>
+<h6>Inline Styles</h6>
+<?php code_example(
 '<html>
     
 ...
         
   </table>
 </body>'
-    , 'html'); ?>
-    <br>
-    <h6>CSS</h6>
-    <?php code_example( 
+, 'html'); ?>
+<br>
+<h6>CSS</h6>
+<?php code_example( 
 'body, .body {
   background: #ddd;
 }'
-    , 'css'); ?>
-    <br>
\ No newline at end of file
+, 'css'); ?>
+<br>
\ No newline at end of file
index 7579a4ccd5cb9c56147b684f9ebbba0aa3105a80..5181fb5a32fd143365f935b0df70d81e44c7b9c0 100644 (file)
@@ -1,6 +1,5 @@
 <h1 id="grid" data-magellan-destination="grid" class="light">Grid</h1>
 <p class="lead">Create powerful multi-device layouts quickly and easily.</p>
-
 <hr>
 <h2 class="light">Structure</h2>
 <p>Ink uses a 12-column grid with a 580px wrapper.  On mobile devices (under 580px wide), columns become full width and stack vertically.</p>
index 9a628b8d7e90bd3837270bca959e0f9e7e5e6f9b..c8383d13d0cf7e3a4a52e8d3dd6dbbbe4448e88f 100644 (file)
 
       <table class="eight columns">
         <tr>
-          <td class="eight sub-columns" style="background:green;">
+          <td class="eight sub-columns">
 
             .eight.sub-columns
 
           </td>
-          <td class="four sub-columns last" style="background:purple;">
+          <td class="four sub-columns last">
 
             .four.sub-columns
 
@@ -32,7 +32,7 @@
 
       <table class="four columns">
         <tr>
-          <td style="background:pink;">
+          <td>
 
             .four columns
 
index 64ab0f7d28fd4371f873aba6ed700320aec894d6..9c53b02c343050cf8be1bfbfaf322006376c5a21 100644 (file)
@@ -5,6 +5,7 @@
     #if-basicGrid {height: 200px;}
     #if-evenColumns {height: 260px;}
     #if-subGrid {height: 140px;}
+    #if-blockGrid {height: 540px;}
     #if-centerClass {height: 220px;}
     #if-visibilityClasses {height: 110px;}
     #if-panels {height: 420px;}
@@ -14,6 +15,7 @@
     #if-basicGrid {height: 225px;}
     #if-evenColumns {height: 570px;}
     #if-subGrid {height: 210px;}
+    #if-blockGrid {height: 1000px;}
     #if-centerClass {height: 270px;}   
     #if-visibilityClasses {height: 110px;}   
     #if-panels {height: 400px;}   
@@ -28,6 +30,7 @@
         <li><a href="#start">Getting Started</a></li>
         <li><a href="#grid">Grid</a></li>
         <li><a href="#sub-grid">Sub-Grid</a></li>
+        <li><a href="#block-grid">Block-Grid</a></li>
         <li><a href="#visibility-classes">Visibility Classes</a></li>
         <li><a href="#panels">Panels</a></li>
         <li><a href="#buttons">Buttons</a></li>
     <hr class="section">
 
     <?php require 'components/sub-grid.php' ?>
+
+    <hr class="section">
+
+    <?php require 'components/block-grid.php' ?>
     
     <hr class="section">
 
index 6553d8366c68e7d7e45f62b5ca31f26d143661e9..4cf029f7ae45bf4089c0de43425ce0d2df9e6b92 100644 (file)
                         <tr>
                           <td>
 
-                              <a class="tiny-button" href="#">
-                                <table>
-                                  <tr>
-                                    <td>
-                                      .tiny-button
-                                    </td>
-                                  </tr>
-                                </table>
-                              </a>
+                            <a class="tiny-button" href="#">
+                              <table>
+                                <tr>
+                                  <td>
+                                    .tiny-button
+                                  </td>
+                                </tr>
+                              </table>
+                            </a>
 
                           </td>
                           <td class="expander"></td>
                         <tr>
                           <td>
 
-                              <a class="primary button" href="#">
-                                <table>
-                                  <tr>
-                                    <td>
-                                      .primary.button
-                                    </td>
-                                  </tr>
-                                </table>
-                              </a>
+                            <a class="radius button" href="#">
+                              <table>
+                                <tr>
+                                  <td>
+                                    .radius.button
+                                  </td>
+                                </tr>
+                              </table>
+                            </a>
 
                           </td>
                           <td class="expander"></td>
                         <tr>
                           <td>
 
-                            <a class="radius button" href="#">
-                                <table>
-                                  <tr>
-                                    <td>
-                                      .radius.button
-                                    </td>
-                                  </tr>
-                                </table>
-                              </a>
+                            <a class="primary button" href="#">
+                              <table>
+                                <tr>
+                                  <td>
+                                    .primary.button
+                                  </td>
+                                </tr>
+                              </table>
+                            </a>
 
                           </td>
                           <td class="expander"></td>
                         <tr>
                           <td>
 
-                              <a class="small-button" href="#">
-                                <table>
-                                  <tr>
-                                    <td>
-                                      .small-button
-                                    </td>
-                                  </tr>
-                                </table>
-                              </a>
+                            <a class="small-button" href="#">
+                              <table>
+                                <tr>
+                                  <td>
+                                    .small-button
+                                  </td>
+                                </tr>
+                              </table>
+                            </a>
 
                           </td>
                           <td class="expander"></td>
                         <tr>
                           <td>
 
-                              <a class="secondary button" href="#">
-                                <table>
-                                  <tr>
-                                    <td>
-                                      .secondary.button
-                                    </td>
-                                  </tr>
-                                </table>
-                              </a>
+                            <a class="round button" href="#">
+                              <table>
+                                <tr>
+                                  <td>
+                                    .round.button
+                                  </td>
+                                </tr>
+                              </table>
+                            </a>
 
                           </td>
                           <td class="expander"></td>
                         <tr>
                           <td>
 
-                            <a class="round button" href="#">
-                                <table>
-                                  <tr>
-                                    <td>
-                                      .round.button
-                                    </td>
-                                  </tr>
-                                </table>
-                              </a>
+                            <a class="secondary button" href="#">
+                              <table>
+                                <tr>
+                                  <td>
+                                    .secondary.button
+                                  </td>
+                                </tr>
+                              </table>
+                            </a>
 
                           </td>
                           <td class="expander"></td>
                         <tr>
                           <td>
 
-                              <a class="medium-button" href="#">
-                                <table>
-                                  <tr>
-                                    <td>
-                                      .medium-button
-                                    </td>
-                                  </tr>
-                                </table>
-                              </a>
+                            <a class="medium-button" href="#">
+                              <table>
+                                <tr>
+                                  <td>
+                                    .medium-button
+                                  </td>
+                                </tr>
+                              </table>
+                            </a>
 
                           </td>
                           <td class="expander"></td>
                         <tr>
                           <td>
 
-                              <a class="alert button" href="#">
-                                <table>
-                                  <tr>
-                                    <td>
-                                      .alert.button
-                                    </td>
-                                  </tr>
-                                </table>
-                              </a>
+                            <a class="alert button" href="#">
+                              <table>
+                                <tr>
+                                  <td>
+                                    .alert.button
+                                  </td>
+                                </tr>
+                              </table>
+                            </a>
 
                           </td>
                           <td class="expander"></td>
                         <tr>
                           <td>
 
-                              <a class="large-button" href="#">
-                                <table>
-                                  <tr>
-                                    <td>
-                                      .large-button
-                                    </td>
-                                  </tr>
-                                </table>
-                              </a>
+                            <a class="large-button" href="#">
+                              <table>
+                                <tr>
+                                  <td>
+                                    .large-button
+                                  </td>
+                                </tr>
+                              </table>
+                            </a>
 
                           </td>
                           <td class="expander"></td>
                         <tr>
                           <td>
 
-                              <a class="success button" href="#">
-                                <table>
-                                  <tr>
-                                    <td>
-                                      .success.button
-                                    </td>
-                                  </tr>
-                                </table>
-                              </a>
+                            <a class="success button" href="#">
+                              <table>
+                                <tr>
+                                  <td>
+                                    .success.button
+                                  </td>
+                                </tr>
+                              </table>
+                            </a>
 
                           </td>
                           <td class="expander"></td>