]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add menu-centered to flexbox mode. 9712/head
authorharry <harmanmanchanda182@gmail.com>
Fri, 27 Jan 2017 16:05:36 +0000 (21:35 +0530)
committerharry <harmanmanchanda182@gmail.com>
Fri, 27 Jan 2017 16:05:36 +0000 (21:35 +0530)
docs/pages/menu.md
scss/components/_menu.scss

index cbe0748f4f386ccbcdda34b915b273b9189c134f..1fa5f515b1d3ae0b08717a7bbf8b5865290a1b6a 100644 (file)
@@ -52,7 +52,7 @@ By default, each item in the menu aligns to the left. They can also be aligned t
 To align items in the middle, add a wrapping element with the class `.menu-centered`.
 
 <div class="primary callout">
-  <p>If you're using <a href="flexbox.html">Flexbox mode</a>, you don't need the wrapper class. Instead, you can just add the class <code>.align-center</code> to the menu.</p>
+  <p>If you're using <a href="flexbox.html">Flexbox mode</a>, you have the option of either using <code>.align-center</code> to the menu like this <a href="http://codepen.io/IamManchanda/pen/jyGjmV">codepen</a> or instead you can use the default wrapper class below.</p>
 </div>
 
 ```html_example
index 13cb2c5015b4dc9d6908cd3765c2b4b1db49c914..b13e2d599ecf78b986be8f8b766a12c427f3b758 100644 (file)
@@ -359,8 +359,13 @@ $menu-border: $light-gray !default;
     text-align: center;
 
     > .menu {
-      display: inline-block;
-      vertical-align: top;
+      @if $global-flexbox {
+        @include flex-align($x: center, $y: top);
+      }
+      @else {
+        display: inline-block;
+        vertical-align: top;
+      }
     }
   }