Pen Settings

HTML

CSS

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.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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.

+ add another resource

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <nav>
  <ul>
    <li class="drop">
      <div class="user-avatar"><img src="http://www.stedesign.com/ste.png"></div><a href="#">Stefano</a> <span aria-hidden="true" class=
      "glyphicon glyphicon-menu-hamburger orange-txt"></span>
      <div class="triangle"></div>
      <div class="dropdownContain">
        <div class="dropOut">
          <ul>
            <li><span aria-hidden="true" class="icon-envelope-alt"></span> Messaggi</li>
            <li><span aria-hidden="true" class="icon-user"></span> Mio Profilo</li>
            <li><span aria-hidden="true" class="icon-cog"></span> Impostazioni</li>
            <li><span aria-hidden="true" class="icon-off"></span> Log Out</li>
          </ul>
        </div>
      </div>
    </li>
  </ul>
</nav>
              
            
!

CSS

              
                @import "compass/css3";

body{
  line-height: 1.2em;
  background: #e7e7e7;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

nav {
	width:13em;
  margin:2em auto;
	background:#f6f6f6;
  @include border-radius(.4em, .4em);
  box-shadow: 0 0 4px rgba(0,0,0,.15);
}

.user-avatar img{
	@include border-radius(4em,4em);
	float:left;
	margin-left:.618em;
	margin-top:.2em
}


.glyphicon-menu-hamburger{
     padding:.8em 1em;
     color: white;
     border-radius:0 .4em .4em 0;
     float: right;
     top: 0
}


.drop {
	position: relative;
	font-size: 1em;
	cursor: pointer;

   a {
	   font-weight: 400;
	   line-height: 2.5em;
	   padding: 0 1em;
	   color: lighten(black,30%);
     text-decoration:none;
  }
}

 .triangle {
	width: 0;
	height: 0;
	position: absolute;
	border-left: .4em solid transparent;
	border-right: .4em solid transparent;
	border-top: .4em solid #FFB135;
	left: 89.5%;
	margin-left: -.4em;
	opacity:0
}
.dropdownContain {
	width: 13em;
	position: absolute;
	z-index: 2;
	left: 50%;
	margin-left: -6.5em; /* half of width */
	top: -300px;
	
}
.dropOut {
	width: 13em;
	background:#f6f6f6;
	float: left;
	position: relative;
	margin-top: 0;
	opacity: 0;
  @include border-radius(.4em, .4em);
	box-shadow: 0 0 4px rgba(0,0,0,.15);
  border:1px solid rgba(white, .75) ;
  overflow:hidden;
	
  -webkit-transition: all 0.1s ease-out;
  -moz-transition: all 0.1s ease-out;
  -ms-transition: all 0.1s ease-out;
  -o-transition: all 0.1s ease-out;
  transition: all 0.1s ease-out;

 ul {
	padding: .3em 0;
	margin:0
 }


}



.dropOut li {
	text-align: left;
	width: 100%;
	padding: .6em 0 ;
	color: darken(#fff, 50%);
	border-left:3px solid #f7f7f7;

  -webkit-transition: all 0.1s ease-out;
  -moz-transition: all 0.1s ease-out;
  -ms-transition: all 0.1s ease-out;
  -o-transition: all 0.1s ease-out;
  transition: all 0.1s ease-out;	
	span{
	 color: darken(#fff, 20%);
	 margin: 0 1.5em 0 .8em;

	}
	
	
	&:hover{
	  border-color: lighten(#FFB135,10%);	
	  color: darken(#fff, 70%);
	  background: darken(#f7f7f7,4%);
	  
	  span{
		 color:darken(#fff, 50%)
		  
	  }	
	}
	
	
	
}



ul li:hover .triangle { opacity: 1 }
ul li:hover .dropdownContain { top: 30px; }
ul li:hover .dropOut { opacity: 1; margin-top: 20px; }




.orange-txt {
  background-color: #ffc15e;
  background-image: -o-linear-gradient(bottom, #ffb135 0%, #ffc15e 100%);
  background-image: -moz-linear-gradient(bottom, #ffb135 0%, #ffc15e 100%);
  background-image: -webkit-linear-gradient(bottom, #ffb135 0%, #ffc15e 100%);
  background-image: -ms-linear-gradient(bottom, #ffb135 0%, #ffc15e 100%);
  background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0%, #ffb135), color-stop(100%, #ffc15e));
  background-image: linear, bottom, #ffb135 0%, #ffc15e 100%; 

&:hover {
    background: #ffb135; 
}

}
  




              
            
!

JS

              
                
              
            
!
999px

Console