cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <meta name="viewport" content="width=device-width, user-scalable=no" />

<link href='https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic' rel='stylesheet' type='text/css'>

<link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700' rel='stylesheet' type='text/css'>


<div id="menu">
  <div class="abrir_menu"><span>MENU</span></div>
  
  <div class="menu_aberto">
  <div id="navigator">
    <ul class="nav">
      <li class="title">navpad mobile</li>
      <li><a href="#" title="" style="border:none;">Home</a></li>
      <li><a href="#" title="">About Us</a></li>
      <li>
        <a href="#container" title="">Products</a>
        <ul>
          <li><a href="#" title="">Lorem Ipsum</a></li>
          <li><a href="#" title="">Dolor Sit</a></li>
          <li><a href="#" title="">Amet Fortn</a></li>
          <li><a href="#container" title="">Aliquam Vitae</a>
            <ul>
              <li><a href="#" title="">Lorem Ipsum</a></li>
              <li>
                <a href="#" title="">Class Aptent</a>
                <ul>
                  <li><a href="#" title="">Lorem Ipsum</a></li>
                  <li><a href="#" title="">Class Aptent</a></li>
                </ul>
              </li>
              <li><a href="#" title="">Lorem Ipsum</a></li>
              <li><a href="#" title="">Class Aptent</a></li>
              <li><a href="#" title="">Sed Interdum Felis</a></li>
              <li><a href="#" title="">Etiam Quis Aucto</a></li>
            </ul>
          </li>
          <li><a href="#" title="">Class Aptent</a></li>
          <li><a href="#" title="">Sed Interdum Felis</a></li>
          <li><a href="#" title="">Etiam Quis Aucto</a></li>
        </ul>
      </li>
      <li>
        <a href="#container" title="#" class="parent">Projects</a>
        <ul>
          <li><a href="#" title="">Dolor Sit</a></li>
          <li><a href="#" title="">Amet Fortn</a></li>
          <li><a href="#" title="">Lorem Ipsum</a></li>
          <li>
            <a href="#" title="">Class Aptent</a>
            <ul>
              <li><a href="#" title="">Lorem Ipsum</a></li>
              <li><a href="#" title="">Class Aptent</a></li>
            </ul>
          </li>
          <li><a href="#" title="">Sed Interdum Felis</a></li>
        </ul>
      </li>
      <li><a href="#" title="">Media</a></li>
      <li><a href="#" title="">Downloads</a></li>
      <li><a href="#" title="">Contact</a></li>
    </ul>
  </div>
  </div>
</div>
 
<div class="alert">
  Please, test on your mobile device too.
</div>
            
          
!
            
              /* Resets */
*{ margin: 0; padding: 0; }
body{ font-family: 'Ubuntu', sans-serif; font-weight: 400; background: #ddd; }
a{ text-decoration: none; }
/* Resets */
  
  
.alert{ color: #666; text-align: center; margin: 50px 0; }

@media handheld, screen and (min-width: 641px){
  .no_scroll{ overflow-y: hidden; }
  .abrir_menu{ display: none; }  
  
  #menu{
    max-width: 960px;
    height: 50px;
    margin: 0 auto;
    }  
 
  #navigator{
    height: 50px;
    line-height: 50px;
		box-shadow: 0 7px 6px -7px #373435;
		-webkit-box-shadow: 0 7px 6px -7px #373435;
		-moz-box-shadow: 0 7px 6px -7px #373435;
    }
  
  
  #navigator .title{ display: none; }
  #navigator ul{ list-style: none; }
  #navigator > ul > li{
    width: 14.28%;
    float: left;
    }
  
  #navigator > ul > li > a{
    color: #fefefe;
    font-size: 15px;
    font-family: 'Open Sans Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    display: block;
    background: #333;
    }
  
  #navigator > ul > li:hover > a{
    background: #555;
    }
  
  #navigator ul li > ul,
  #navigator ul li li > ul,
  #navigator ul li li li > ul,
  #navigator ul li li li li> ul,
  #navigator ul li li li li li > ul{ display: none; }
  
  #navigator ul li:hover > ul,
  #navigator ul li li:hover > ul,
  #navigator ul li li li:hover > ul,
  #navigator ul li li li li:hover > ul,
  #navigator ul li li li li li:hover > ul{
    position: absolute;
    z-index: 10;
    width: 180px;
    line-height: 20px;
    display: block;
    background: #555;
		
		box-shadow: 0 7px 6px -7px #373435;
		-webkit-box-shadow: 0 7px 6px -7px #373435;
		-moz-box-shadow: 0 7px 6px -7px #373435;
    }
  
  #menu ul ul li ul{
    top: 0;
    left: 179px;
    min-height: 100%;
    border-left: 1px solid #444;
  }
  
  #menu ul ul li{ /*position: relative;*/ }
  #menu ul ul li a{
    color: #fefefe;
    font-size: 14px;
    font-family: 'Open Sans Condensed', sans-serif;
    text-transform: uppercase;
    display: block;
    padding: 12px 7px;
    border-top: 1px solid rgba(255,255,255,0.045);
    border-bottom: 1px solid rgba(0,0,0,0.045);
    text-transform: uppercase;
    }
   
  #menu ul ul li:hover > a{ background: #444; }
  #menu ul ul li li:hover > a{}
  #menu ul ul li li li:hover > a{}
  #menu ul ul li li li li:hover > a{}
  #menu ul ul li li li li li:hover > a{}
}



@media handheld, screen and (max-width: 640px){
  
  /* [ Open/Close =====================================*/
  /* ==================================================*/
  .abrir_menu{ display: block; }
  .abrir_menu span{
    color: #fefefe;
    font-size: 20px;
    font-family: 'Open Sans Condensed', sans-serif;
    text-align: center;
    letter-spacing: 5px;
    position: absolute;
    z-index: 99;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    line-height: 50px;
    margin: 0 auto;
    display: block;
    cursor: pointer;
    background: #333 url() no-repeat 10px center;

    box-shadow: 0 7px 3px -7px #373435;
    -webkit-box-shadow: 0 7px 3px -7px #373435;
    -moz-box-shadow: 0 7px 3px -7px #373435;
    }

  .open > .abrir_menu{ position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: block; background: rgba(225,225,225,0.85); }
  .open > .abrir_menu span{ opacity: 0.1 !important; }
  
  .menu_aberto{
    position: fixed;
    z-index: 99;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    background: #555;
    transition: 0.3s;

    box-shadow: -4px 0 15px 0px #373435;
    -webkit-box-shadow: -4px 0 15px 0px #373435;
    -moz-box-shadow: -4px 0 15px 0px #373435;

    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
  }
  .open > .menu_aberto{ left: 0; }	
  
  /* Open/Close ] =====================================*/
  /* ==================================================*/
  
  
  /* [ Menu ===========================================*/
  /* ==================================================*/
  #navigator .title{
    color: #666;
    font-size: 20px;
    font-family: 'Open Sans Condensed', sans-serif;
    text-transform: uppercase;
    text-shadow: 0.8px 0.8px 3px #111;
    height: 60px;
    line-height: 62px;
    display: block;
    padding: 0 20px;
    border-bottom: 1px solid rgba(0,0,0,0.045);
    background: #333 url() no-repeat 20px center;

    box-shadow: -4px 0 5px 0px #373435;
    -webkit-box-shadow: -4px 0 5px 0px #373435;
    -moz-box-shadow: -4px 0 5px 0px #373435;
  }

  #navigator ul li > ul,
  #navigator ul li li > ul,
  #navigator ul li li li > ul,
  #navigator ul li li li li > ul,
  #navigator ul li li li li li > ul{
    position: relative;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(0,0,0,0.1);

    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
  }

  #navigator ul li{ float: none; display: block; }		
  #navigator ul li a{
    color: #999;
    font-size: 14px;
    display: block;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.045) !important;
    border-bottom: 1px solid rgba(0,0,0,0.045) !important;
  }

  #navigator > ul > li:hover > a{ color: #aaa; background: #444; }


  /* Styles (Links/Hover/Ativo Sub Menu) ==============*/
  /* ==================================================*/
  #navigator > ul > li > .parent,
  #navigator > ul > li:hover > .parent,
  #navigator > ul > li.hover > .parent,

  #navigator ul li li > .parent,
  #navigator ul li li:hover > .parent,
  #navigator ul li li.hover > .parent{ background-repeat: no-repeat; background-position: 260px center; }

  #navigator > ul > li > .parent,
  #navigator > ul > li:hover > .parent{ color: #aaa; background-color: inherit; background-image: url(); }	
  #navigator > ul > li.hover > .parent{ color: #aaa; background-color: #444; background-image: url(); }	

  
  /* Styles (Links/Hover/Ativo Sub>Sub Menu) ==========*/
  /* ==================================================*/
  #navigator ul li li a{ color: #aaa; font-size: 12px; }
  #navigator ul li li > .parent,
  #navigator ul li li:hover > .parent{ color: #aaa; background-color: inherit; background-image: url(); }	
  #navigator ul li li.hover > .parent{ color: #aaa; background-color: rgba(0,0,0,0.1); background-image: url(); }

  .nav ul{ display: none; left: -9999px; }
  .nav li.hover > ul,
  .nav li li.hover > ul,
  .nav li li li.hover > ul,
  .nav li li li li.hover > ul,
  .nav li li li li li.hover > ul,
  .nav li li li li li li.hover > ul{
    position: static !important;
    display: block !important;
  }
  /* Menu ] ===========================================*/
  /* ==================================================*/
}

@media handheld, screen and (max-width: 480px){
	
  .open > .menu_aberto{ width: 250px; }
  #menu > ul > li > .parent,
  #menu > ul > li:hover > .parent,
  #menu > ul > li.hover > .parent,

  #menu ul li li > .parent,
  #menu ul li li:hover > .parent,
  #menu ul li li.hover > .parent{ background-repeat: no-repeat; background-position: 210px center; }
	
}

@media handheld, screen and (max-width: 319px){
	
  .open > .menu_aberto{ width: 200px; }
  #menu > ul > li > .parent,
  #menu > ul > li:hover > .parent,
  #menu > ul > li.hover > .parent,

  #menu ul li li > .parent,
  #menu ul li li:hover > .parent,
  #menu ul li li.hover > .parent{ background-repeat: no-repeat; background-position: 150px center; }

}

            
          
!
            
              jQuery.noConflict();
jQuery(document).ready(function($){
  $('.abrir_menu').click(function(){
    $("body").toggleClass('no_scroll');
  });
});

jQuery.noConflict();
jQuery(document).ready(function($){
  $(function() {
    initDropDowns($("#menu"));
  });

  function initDropDowns(allMenus) {
    allMenus.children(".abrir_menu").on("click", function() {
      var thisTrigger = jQuery(this),
          thisMenu = thisTrigger.parent(),
          thisPanel = thisTrigger.next();

      if(thisMenu.hasClass("open")){
        thisMenu.removeClass("open");
        jQuery(document).off("click");                                 
        thisPanel.off("click");
      }
      else{	
        allMenus.removeClass("open");	
        thisMenu.addClass("open");
        jQuery(document).on("click", function() {
          allMenus.removeClass("open");
        });
        thisPanel.on("click", function(e) {
          e.stopPropagation();
        });
      }				
      return false;
    });
  }
});

jQuery(document).ready(function($){
  $(".menu_aberto").on("click", function(){
    
    if($(this).has){
      $("body").removeClass("no_scroll");
    }
  });
});

jQuery.noConflict();
jQuery(document).ready(function($){
  $(document).ready(function() {
    $(".nav li a").each(function() {
      if ($(this).next().length > 0) {
        $(this).addClass("parent");
      };
    })
  })

  $(function(){
    $(".nav li").unbind('mouseenter mouseleave');
    $(".nav li a.parent").unbind('click').bind('click', function(e){
      $(this).parent("li").toggleClass("hover");
      e.preventDefault();
    });
  });
});

            
          
!
999px
Loading ..................

Console