]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Merge branch master into 6.2-stable
authorGeoff Kimball <geoff@zurb.com>
Fri, 26 Feb 2016 19:29:56 +0000 (11:29 -0800)
committerGeoff Kimball <geoff@zurb.com>
Fri, 26 Feb 2016 19:29:56 +0000 (11:29 -0800)
1  2 
docs/assets/scss/docs.scss
docs/layout/default.html
docs/pages/flex-grid.md
docs/pages/kitchen-sink.md
docs/pages/menu.md
js/foundation.toggler.js
scss/components/_media-object.scss

Simple merge
index 50a70ee2a9da9f9eb9aa460500b47bab44f5daab,513fb996dba223bdb789910e25d910c9839e9bec..08578c169b98c724e2ae5ec21fc562c9ba7a84e9
      <div class="off-canvas-content" data-off-canvas-content>
        <!-- Info Banner For Announcements or Links -->
        <!-- <a href="http://zurb.com/article/1416/foundation-6-is-here" id="notice">
 -      <div class="info">
 -      <h5>Foundation 6 is here!</h5>
 -    </div>
 -  </a> -->
 +        <div class="info">
 +          <h5>Foundation 6 is here!</h5>
 +        </div>
 +      </a> -->
  
 -  {{> navigation}}
 -  {{> mobile-navigation}}
 +      {{> navigation}}
 +      {{> mobile-navigation}}
  
 -  <input type="text" class="docs-search" data-docs-search placeholder="Find a page, component, variable, mixin, function...">
 +      <input type="text" class="docs-search" data-docs-search placeholder="Find a page, component, variable, mixin, function...">
  
 -  <div class="expanded row">
 -    <div class="medium-9 large-10 medium-push-3 large-push-2 columns">
 -      {{> body}}
 -    </div>
 -    <div class="medium-3 large-2 medium-pull-9 large-pull-10 columns">
 -      {{> component-list}}
 +      <div class="expanded row">
 +        <div class="medium-9 large-10 medium-push-3 large-push-2 columns">
 +{{> body}}
 +        </div>
 +        <div class="medium-3 large-2 medium-pull-9 large-pull-10 columns">
 +          {{> component-list}}
 +        </div>
 +      </div>
 +
 +      {{> footer}}
      </div>
+   </div>
  
-     </div></div>
 -  {{> footer}}
 -</div>
 -
 -</div></div>
 -
 -<script>
 -var _gaq = _gaq || [];
 -_gaq.push(
 -  ['_setAccount', 'UA-2195009-2'],
 -  ['_trackPageview'],
 -  ['b._setAccount', 'UA-2195009-27'],
 -  ['b._trackPageview']
 -);
 -(function() {
 -  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
 -  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 -  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 -})();
 -</script>
++  <script>
++  var _gaq = _gaq || [];
++  _gaq.push(
++    ['_setAccount', 'UA-2195009-2'],
++    ['_trackPageview'],
++    ['b._setAccount', 'UA-2195009-27'],
++    ['b._trackPageview']
++  );
++  (function() {
++    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
++    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
++    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
++  })();
++  </script>
  
-     <script>
-       var _gaq = _gaq || [];
-       _gaq.push(
-         ['_setAccount', 'UA-2195009-2'],
-         ['_trackPageview'],
-         ['b._setAccount', 'UA-2195009-27'],
-         ['b._trackPageview']
-       );
-       (function() {
-         var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
-         ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
-         var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
-       })();
-     </script>
-     <script src="assets/js/vendor.js"></script>
-     <script src="assets/js/foundation.js"></script>
-     <script src="assets/js/docs.js"></script>
-   </body>
 -<script src="assets/js/vendor.js"></script>
 -<script src="assets/js/foundation.js"></script>
 -<script src="assets/js/docs.js"></script>
 -<script type="text/javascript" src="https://intercom.zurb.com/scripts/zcom.js"></script>
++  <script src="assets/js/vendor.js"></script>
++  <script src="assets/js/foundation.js"></script>
++  <script src="assets/js/docs.js"></script>
++  <script type="text/javascript" src="https://intercom.zurb.com/scripts/zcom.js"></script>
+ </body>
  </html>
Simple merge
Simple merge
index cbd009261b0d2f02e4852e2158013988ff3d7d90,42e99ba4caa491e32e08790c29e06b4273b8d6fa..e077a5f6efa55c1592aa218f01189563449b0b6c
@@@ -145,20 -125,21 +145,35 @@@ Add a new menu inside the `<li>` of a M
  
  ---
  
 +## Active State
 +
 +Add the class `.active` to any `<li>` to create an active state. You could apply this server-side to mark the active page, or dynamically with JavaScript.
 +
 +```html_example
 +<ul class="menu">
 +  <li class="active"><a>Home</a></li>
 +  <li><a>About</a></li>
 +  <li><a>Nachos</a></li>
 +</ul>
 +```
 +
 +---
 +
+ ## Text
+ Because the padding of the menu item is applied to the `<a>`, if you try to add an item that's text only, it will be misaligned. To get around this, add the class `.menu-text` to any `<li>` that doesn't have a link inside of it.
+ ```html_example
+ <ul class="menu">
+   <li class="menu-text">Site Title</li>
+   <li><a href="#">One</a></li>
+   <li><a href="#">Two</a></li>
+   <li><a href="#">Three</a></li>
+ </ul>
+ ```
+ ---
  ## Icons
  
  Menu items can have icons. Wrap the text of the item in a `<span>`, and then add an `<img>` element before the `<span>`. If you're using the Foundation icon font, the `<img>` will be an `<i>` instead.
index 0bd400b2368f2dc323f9cf131a131c06dfb0e012,3637ff6fad061b6e0ac6e299700f584701f318f8..d6772c429a854b7e08170dd6e95934ee52f33d8f
@@@ -6,9 -2,12 +6,10 @@@
   * Toggler module.
   * @module foundation.toggler
   * @requires foundation.util.motion
+  * @requires foundation.util.triggers
   */
  
 -!function(Foundation, $) {
 -  'use strict';
 -
 +class Toggler {
    /**
     * Creates a new instance of Toggler.
     * @class
Simple merge