From 5c08c570140cc3c547ae5e9ec8a381dc1232ab19 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Thu, 15 Sep 2016 12:42:52 +0300 Subject: [PATCH] Navigation dropdown demos --- docs/modules.html | 78 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 77 insertions(+), 1 deletion(-) diff --git a/docs/modules.html b/docs/modules.html index acd2962..70f59e1 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -180,6 +180,7 @@
  • Use an element with the .logo class for your website's logo.
  • For the navigation links, use an unordered list (<ul>) and inside each <li> element, add another element with the .link class to stylize the element as a navigation link.
  • Responsiveness can be added for fixed navigation bars by adding a hidden <input type="checkbox"> right before the navigation bar and a label linking to that specific checkbox right after the navigation bar.
  • +
  • Use autocomplete="off" to make your menu not open by default in mobile devices.
  • Horizontal navigation bar

    @@ -198,7 +199,7 @@ <li><a href="#" class="link">Link 2</a></li> </ul> </div> -
    +

    Vertical navigation bar

    Example


    @@ -218,7 +219,82 @@ </div>

    + +

    The dropdown module is an extra module that allows you to add dropdown components to your navigation bars. These components can be customized and work well on mobile devices. Using too many dropdowns or nesting dropdowns is yet undocumented and might cause unexpected behavior.

    +

    Dropdown structure

    +

    The basic structure of dropdowns is as follows

    + + +

    Horizontal navigation dropdown example

    +

    Example


    +
    +
    <div class="nav">
    +  <span class="logo">Logo</span>
    +  <ul>
    +    <li><a href="#" class="link">Link 1</a></li>
    +    <li><label class="link dropdown" for="dropdown1">Dropdown</label></li>
    +  </ul>
    +  <input type="checkbox" id="dropdown1" class="dropdown" autocomplete="off">
    +  <div>
    +    <ul>
    +      <li><a href="#" class="link">Link 2</a></li>
    +      <li><a href="#" class="link">Link 3</a></li>
    +    </ul>
    +  </div>
    +</div>
    +
    + +

    Vertical navigation dropdown example

    +

    Example


    +
    +
    <div class="nav vertical">
    +  <span class="logo">Logo</span>
    +  <ul>
    +    <li><a href="#" class="link">Link 1</a></li>
    +    <li><label class="link dropdown" for="dropdown1">Dropdown</label></li>
    +  </ul>
    +  <input type="checkbox" id="dropdown1" class="dropdown" autocomplete="off">
    +  <div>
    +    <ul>
    +      <li><a href="#" class="link">Link 2</a></li>
    +      <li><a href="#" class="link">Link 3</a></li>
    +    </ul>
    +  </div>
    +</div>
    +