Skip to content

Instantly share code, notes, and snippets.

@bigglesrocks
Last active August 29, 2015 14:19
Show Gist options
  • Save bigglesrocks/4dc9f0189430102f7c0f to your computer and use it in GitHub Desktop.
Save bigglesrocks/4dc9f0189430102f7c0f to your computer and use it in GitHub Desktop.
dropdown markup
<!-- Multi Level Menu -->
<nav>
<ul class="main-nav-menu">
<!-- First Navigation link. Has a dropdown -->
<li class="main-nav-item-1">
<a href="#" class="submenu-toggle">Main Nav Item 1</a>
<ul class="sub-menu">
<li class="sub-menu-item-1"><%= link_to subnav_item_1_path %></li>
<li class="sub-menu-item-2"><%= link_to subnav_item_2_path %></li>
<li class="sub-menu-item-3"><%= link_to subnav_item_3_path %></li>
</ul>
</li>
<!-- Second Navigation item. Does not have a dropdown -->
<li class="nav-item-2">
<%= link_to nav_item_2_path %>
</li>
<li class="nav-item-3">
<%= link_to subnav_item_3_path %>
</li>
</ul>
</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment