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 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.

            
              
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.3/css/font-awesome.min.css"/>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<div id="sidemenu-bg" class="sidemenu-bg hide"></div>
<div id="wrap">
  <div id="content"></div>
  <ul id="sidemenu" class="sidemenu">
    <li class="logo"><a href="#home"><i class="habra">H</i></a></li>
    <li class="has-submenu"><a href="#user"><i class="fa fa-user"></i></a>
      <ul class="sidemenu-sub">
        <li class="text">
          <h4>User</h4>
          <p>You do not have the karma to vote. <a href="#karmadrocherstvo">How to raise karma?</a></p>
        </li>
        <li><a href="#my-feed">My feed</a></li>
        <li><a href="#my-profile">My profile</a></li>
        <li><a href="#my-posts">My posts</a></li>
        <li><a href="#my-comments">My comments</a></li>
        <li><a href="#my-dialogues">My dialogues</a></li>
        <li><a href="#my-favourites">My favourites</a></li>
      </ul>
    </li>
    <li class="tracker has-submenu"><a href="#tracker">
        <div class="marker">79</div><i class="fa fa-bell"></i></a>
      <ul class="sidemenu-sub">
        <li class="text">
          <h4>Tracker</h4>
        </li>
        <li><a href="#track-posts">
            <div class="marker pull-right">79</div>Posts</a></li>
        <li><a href="#subscribers">Subscribers</a></li>
        <li><a href="#mentions">Mentions</a></li>
        <li><a href="#applications">Applications</a></li>
      </ul>
    </li>
    <li class="has-submenu"><a href="#sections"><i class="fa fa-bars"></i></a>
      <ul class="sidemenu-sub">
        <li class="text">
          <h4>Sections</h4>
        </li>
        <li><a href="#search">Search</a></li>
        <li><a href="#posts">Posts</a></li>
        <li><a href="#hubs">Habs</a></li>
        <li><a href="#companies">Companies</a></li>
        <li><a href="#users">Users</a></li>
        <li><a href="#q_a"><i class="fa fa-rocket pull-right"></i>Q&A</a></li>
        <li><a href="#sandbox">Sandbox</a></li>
      </ul>
    </li>
    <li><a href="#write"><i class="fa fa-pencil"></i></a></li>
    <li class="full-height"><a id="move-up" href="#move-up" class="hide"><i class="fa fa-arrow-circle-up"></i></a><a id="move-down" href="#move-down" class="hide"><i class="fa fa-arrow-circle-down"></i></a></li>
    <li class="has-submenu"><a href="#settings"><i class="fa fa-cog"></i></a>
      <ul class="sidemenu-sub">
        <li class="text">
          <h4>Settings</h4>
        </li>
        <li><a href="#account">Account</a></li>
        <li class="pull-down"><a href="#exit">Exit</a></li>
      </ul>
    </li>
  </ul>
</div>
            
          
!
            
              *
*: before;
*:after {
  box-sizing: border-box;
}
html {
  font: 300 12px Arial, "PT Sans", sans-serif;
  color: #333;
}
html,
body {
  padding: 0;
  margin: 0;
}
html,
body,
.sidemenu {
  height: 100%;
}
a {
  color: #6da3bd;
  text-decoration: none;
}
a:hover {
  color: #3d6f87;
  text-decoration: underline;
}
ul {
  margin: 0;
  padding: 0;
}
h4,
p {
  margin: 0 0 6px;
}
h4 {
  font-size: 19.200000000000003px;
  font-weight: 500;
}
#wrap {
  max-width: 640px;
}
#content {
  margin-left: 71px;
  padding: 17.75px;
}
.pull-right {
  float: right;
}
.hide {
  display: none !important;
}
.sidemenu-bg {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0,0,0,0.37);
  z-index: 99;
}
.sidemenu {
  position: fixed;
  top: 0;
  display: table;
  background-color: #f2f2f2;
  z-index: 100;
}
.sidemenu > li {
  display: table-row;
}
.sidemenu > li:hover,
.sidemenu > li.active {
  background-color: #e8e8e8;
}
.sidemenu > li > a {
  box-shadow: inset 0 -1px 0 #e3e3e3;
}
.sidemenu > li:first-child > a,
.sidemenu > li:last-child > a {
  box-shadow: none;
}
.sidemenu > li.active .sidemenu-sub {
  display: table-cell;
}
.sidemenu > li.active > a {
  box-shadow: inset 3px 0 0 #bababa;
  color: #595959;
}
.sidemenu > li.full-height {
  height: 100%;
}
.sidemenu > li.full-height > a {
  vertical-align: middle;
}
.sidemenu > li > a {
  display: table-cell;
  height: 71px;
  width: 71px;
  color: #ccc;
  text-align: center;
  text-decoration: none;
}
.sidemenu > li > a:hover {
  color: #727272;
}
.sidemenu > li > a > .fa {
  font-size: 28px;
  line-height: 71px;
}
.sidemenu > li.logo {
  background-color: #a0c2ce;
  text-align: center;
  overflow: hidden;
}
.sidemenu > li.logo > a {
  color: #fff;
  overflow: hidden;
}
.sidemenu > li.logo .habra {
  font: 700 48.28px Tahoma;
  line-height: 71px;
  text-shadow: 0px 0px #819da6 , 1px 1px #819da6 , 2px 2px #819da6 , 3px 3px #819da6 , 4px 4px #819da6 , 5px 5px #819da6 , 6px 6px #819da6 , 7px 7px #819da6 , 8px 8px #819da6 , 9px 9px #819da6 , 10px 10px #819da6 , 11px 11px #819da6 , 12px 12px #819da6 , 13px 13px #819da6 , 14px 14px #819da6 , 15px 15px #819da6 , 16px 16px #819da6 , 17px 17px #819da6 , 18px 18px #819da6 , 19px 19px #819da6 , 20px 20px #819da6 , 21px 21px #819da6 , 22px 22px #819da6 , 23px 23px #819da6 , 24px 24px #819da6 , 25px 25px #819da6 , 26px 26px #819da6 , 27px 27px #819da6 , 28px 28px #819da6;
}
.sidemenu > li.tracker > a {
  position: relative;
}
.sidemenu > li.tracker > a > .marker {
  position: absolute;
  top: 7.2px;
  right: 7.2px;
}
.sidemenu > li.tracker .marker {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background-color: #fb8a87;
  display: inline-block;
  border-radius: 16px;
  line-height: 16px;
  min-width: 16px;
  text-align: center;
}
.sidemenu > li .sidemenu-sub {
  display: none;
  list-style: none;
  background-color: #ededed;
  width: 177.5px;
  position: absolute;
  top: 0;
  left: 71px;
  bottom: 0;
  border-left: 1px solid #e5e5e5;
  z-index: 101;
}
.sidemenu > li .sidemenu-sub > li.text,
.sidemenu > li .sidemenu-sub > li > a {
  padding: 10.65px 17.75px;
}
.sidemenu > li .sidemenu-sub > li.text > h4 {
  margin-top: 8px;
}
.sidemenu > li .sidemenu-sub > li.text > p {
  color: #8c8c8c;
}
.sidemenu > li .sidemenu-sub > li.pull-down > a {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 71px;
}
.sidemenu > li .sidemenu-sub > li > a {
  display: block;
  font-size: 14.399999999999999px;
  font-weight: 700;
  color: #7f7f7f;
}
.sidemenu > li .sidemenu-sub > li > a:hover {
  color: #424242;
  text-decoration: none;
  background-color: #dbdbdb;
}
.sidemenu > li .sidemenu-sub > li > a > .fa {
  margin-top: 2px;
}

            
          
!
            
              (function() {

  $(function() {
    var $content, $doc, $has_submenu, $no_submenu, $sidemenu, $slidemenu_bg, hide, move, removeActive;
    $doc = $(document);
    $content = $('#content');
    $slidemenu_bg = $('#sidemenu-bg');
    $sidemenu = $('#sidemenu');
    $has_submenu = $sidemenu.find('> li.has-submenu');
    $no_submenu = $sidemenu.find('> li:not(.has-submenu)');
    removeActive = null;
    $content.load("http://cors.io/loripsum.net/api/100");
    move = {
      up: $('#move-up'),
      down: $('#move-down'),
      last: $doc.scrollTop()
    };
    move.up.click(function() {
      move.last = $doc.scrollTop();
      $doc.scrollTop(0);
      $doc.scroll();
      return move.down.removeClass('hide');
    });
    move.down.click(function() {
      $doc.scrollTop(move.last);
      $doc.scroll();
      move.up.removeClass('hide');
      return move.down.addClass('hide');
    });
    $doc.scroll(function() {
      if ($doc.scrollTop() > 0) {
        move.up.removeClass('hide');
        return move.down.addClass('hide');
      } else {
        return move.up.addClass('hide');
      }
    });
    $has_submenu.hover(function() {
      var $t;
      $t = $(this);
      $has_submenu.removeClass('active');
      $t.addClass('active');
      $slidemenu_bg.removeClass('hide');
      return clearInterval(removeActive);
    }, function() {
      var $t;
      $t = $(this);
      return removeActive = setTimeout((function() {
        $t.removeClass('active');
        return $slidemenu_bg.addClass('hide');
      }), 1000);
    });
    hide = function() {
      $slidemenu_bg.addClass('hide');
      return $has_submenu.removeClass('active');
    };
    $slidemenu_bg.click(hide);
    return $no_submenu.hover(hide);
  });

}).call(this);

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

Console