]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add vertical dropdown menu codepen!
authorharry <harmanmanchanda182@gmail.com>
Sun, 14 May 2017 14:26:47 +0000 (19:56 +0530)
committerharry <harmanmanchanda182@gmail.com>
Sun, 14 May 2017 14:26:47 +0000 (19:56 +0530)
docs/pages/dropdown-menu.md

index e7d9968925cc4f063ad0fecfc8a8f26d6ece8bd7..40a83bbfc38b56d192e2e42a530cd5ec9969b818 100644 (file)
@@ -95,14 +95,20 @@ Add the `.vertical` class to the top-level menu to make it vertical. Sub-menus a
   <p>Menus are block-level elements, which means they stretch to fill the width of their container. To make the below example less goofy, we've hard-coded a <code>max-width</code> on the menu.</p>
 </div>
 
+<div class="docs-video-codepen-container">
+  <a class="" data-open-video="12:00"><img src="https://www.elastic.co/static/images/svg/video-play-btn.svg" class="video-icon" height="30" width="30" alt=""> Watch this part in video</a>
+
+  <a class="codepen-logo-link" href="https://codepen.io/IamManchanda/pen/LyrYaE?editors=1000" target="_blank"><img src="{{root}}assets/img/logos/cp1.svg" class="" height="" width="" alt="edit on codepen button"></a>
+</div>
+
 ```html
-<ul class="vertical dropdown menu" data-dropdown-menu style="max-width: 300px;">
+<ul class="vertical dropdown menu" data-dropdown-menu style="max-width: 250px;">
   <li><a href="#">Item 1</a></li>
   <!-- ... -->
 </ul>
 ```
 
-<ul class="vertical dropdown menu" data-dropdown-menu style="max-width: 300px;">
+<ul class="vertical dropdown menu" data-dropdown-menu style="max-width: 250px;">
   <li>
     <a href="#Item-1">Item 1</a>
     <ul class="menu">