]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Update javascript to support auto tabs.
authorJordan Humphreys <jordan@mailyard.net>
Tue, 19 Mar 2013 15:54:25 +0000 (08:54 -0700)
committerJordan Humphreys <jordan@mailyard.net>
Tue, 19 Mar 2013 15:54:25 +0000 (08:54 -0700)
docs/components/section.html.erb
scss/foundation/components/_section.scss

index e837508b9ad1f4dbe75426b308876a288a688698..186a23df7f4e40cc3818c7b88be54b2325d31e5c 100644 (file)
@@ -65,7 +65,7 @@
                 </div>
               </section>
             </div>
-            <div class="section-container tabs" data-section data-options="deep_linking: true;">
+            <div class="section-container auto" data-section data-options="deep_linking: true;">
               <section class="section">
                 <p class="title"><a href="#panel1">Section 1</a></p>
                 <div class="content" data-slug="panel1">
@@ -316,7 +316,7 @@ $section-bottom-margin:          emCalc(20px);
         <hr>
 
         <h3>Using the JavaScript</h3>
-        <p>You don't need ths JS to create sections with Foundation. The only reason you'll need to include <code>foundation.section.js</code> is if you want to add the ability to close an alert. You'll also need to make sure to include <code>zepto.js</code> and <code>foundation.js</code> above the sections plugin. Above your closing <code>&lt;/body&gt;</code> tag include the following line of code and make sure you have the JS in your directory.</p>
+        <p>The only reason you'll need to include <code>foundation.section.js</code> is if you want to add the ability to close an alert. You'll also need to make sure to include <code>zepto.js</code> and <code>foundation.js</code> above the sections plugin. Above your closing <code>&lt;/body&gt;</code> tag include the following line of code and make sure you have the JS in your directory.</p>
 
         <p><a href="../javascript.html" title="How to install Foundation JavaScript">Read how to install Foundation JavaScript</a></p>
 
index fb68d0f4aaa0dab64faee83a3f59027adc686f76..9f272bb49e72fbff910c11d9ce646b56cefeffe2 100644 (file)
@@ -210,7 +210,7 @@ $section-bottom-margin:          emCalc(20px) !default;
     .section { @include section; }
   }
 
-  .section-container.tabs {
+  .section-container.tabs, .section-container.auto {
     @include section-container(false, tabs);
 
     section,