octocatstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

            
              <body>
<div class="wrap">
  <div id="behind">
    <nav>
		<span class="linkAside">
      	  <a href="./">Home</a></span><br>
      <div class="lineSplitter"></div>
	  <span class="linkAside">
      	<a href="http://www.twitter.com/danielpox/">My Twitter (@DanielPox)</a></span><br>
      <div class="lineSplitter"></div>
	  <span class="linkAside">
    		<a href="#">Third</a>
	  </span><br>
    </nav>
  </div>
  <div id="over">
    <header>
      <div class="button"></div><span class="title">&nbsp;PoxMedia</span>
    </header>
    <section>
      <p>Content goes here..</p>
    </section>
  </div>
</div>
</body>
            
          
!
            
              @import url(http://fonts.googleapis.com/css?family=Shanti);

li {
  list-style: none;
}

a {
  color: white;
  text-decoration: none;
}
a:hover {
  color: #888;
  text-shadow: 0 -1px #505050;
  text-decoration: underline;
}

#behind {
  z-index: -1000;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 196px;
  background: -webkit-linear-gradient(top, #707A8A, #8D97A7);
  box-shadow: inset 0 1px 5px rgb(44, 49, 56);
  border-top: 1px solid #21252C;
  border-left: 1px solid 4C515B;
  border-right: 1px solid 4C515B;
  border-bottom: 1px solid #676767;

  padding-top: 12px;
  padding-left: 16px;
  padding-right: 12px;

  color: white;
  text-shadow: 0 1px #535353;
  font-weight: bold;
  font-size: 18px;
}

#behind a {
    color: white;
    text-shadow: 0 1px #535353;
    padding-bottom: 1px;
    padding-top: 2px;
}

.lineSplitter {
  content: '';
  height 1px;
  color: #aaa;
  background: #aaa;
  width: 100%;
}

#over {
  z-index: 1000;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  background: -webkit-linear-gradient(top, #fefefe, #fafafa);
  -webkit-box-shadow: -2px 0 20px rgba(0, 0, 0, 0.8), inset 1px 0 #bababa, inset -1px 0 #bababa;
}

.box {
  background: #EBEBEB;
  border: 1px solid #ECECEC;
  border-radius: 4px;
}

.openedMenu {
  -webkit-transition: -webkit-transform .1s;
  -webkit-transform: translateX(204px);
}

.closedMenu {
  -webkit-transition: -webkit-transform .1s;
  -webkit-transform: translateX(0px);
}

header {
  background: -webkit-linear-gradient(top, #e5e5e5, #d4d4d4);
  padding-left: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  border-top: 1px solid white;
  border-bottom: 1px solid #999;
  color: #353535;
  z-index: 1002;
}

.button {
  cursor: pointer;
  color: #2c2c2c;
  background: -webkit-linear-gradient(top, #f0f0f0, #b6b6b6);
  border: 1px solid #b0b0b0;
  border-top: 1px solid #b8b8b8;
  border-bottom: #a0a0a0;
  border-radius: 4px;
  box-shadow: 0 1px #e8e8e8;
  width: 24px;
  height: 24px;
  position: relative;
  top: -2px;
  float: left;
  text-shadow: 0 1px #333;
}
.button:before {
    border-bottom: 9px double #2c2c2c;
    border-top: 3px solid #2c2c2c;    
    border-radius: 1px;
    content:"";
    height: 3px; 
    position: absolute; 
    right: 4px;  
    top: 4px;
    width:16px;
}
.button:hover {
  background: -webkit-linear-gradient(top, #f2f2f2, #b8b8b8);
}
.button:active {
  background: -webkit-linear-gradient(top, #cdcdcd, #e1e1e1);
  border: 1px solid #a9a9a9;
  border-top: 1px solid #898989;
  border-bottom: 1px solid #ccc;
  box-shadow: 0 1px white, inset 0 1px 3px #acacac;
  border-radius: 3px;
}

.title {
  font-weight: bold;
}

* {
  margin: 0;
  padding: 0;
  font-family: 'Shanti';
}

hr {
  color: #444;
  background-color: #444;
}

section {
  background: #f0f0f0;
  border-top: 1px solid white;
  height: 100%;
  z-index: 1001;
}

section p {
  padding: 16px;
  padding-left: 32px;
}
            
          
!
            
              $(function() {
  $('.button').click(function() {
    $(this.parentElement.parentElement).toggleClass('openedMenu');

    
  });
});
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console