$sideMenuWidth: 180px; $sideMeunPosition: 45px; $transition1: all .5s ease-out 0s; $transition2: all 1s ease 0s; a, button { transition: $transition1; } .glyphicon { top: 3px; } #topBar { background: black; background: linear-gradient(to bottom, #283848, #012); width: 100%; padding: 5px 12px; font-size: 22px; #sidebarToggle { background: none; padding: 0; margin: 0; border: none; color: #999; &:hover, &:focus, &:active, &.active { outline: none; } &:hover { color: white; } } } #sidebar { height: 100%; z-index: 10000; position: fixed; left: -$sideMenuWidth + $sideMeunPosition; width: $sideMenuWidth; color: white; background: linear-gradient(to bottom, #283848, #012); transition: $transition1; &.active { left: 0; box-shadow: 5px 0 15px rgba(0, 0, 0, .5), 10px 0 15px rgba(0, 0, 0, .5); .footer { left: 0; transition: $transition2; } } ul { display: block; margin: 0; padding: 0; list-style: none; li a { display: block; /* border-top: 1px solid #444; */ /* border-bottom: 1px solid #1A1A1A; */ color: #999; padding: 10px 15px; &:hover, &:focus, &:active { text-decoration: none; } &:hover { color: #fff; background: rgba(255,255,255,0.2); } } } .footer { position: fixed; bottom: 0; left: -$sideMenuWidth; padding-bottom: 10px; transition: $transition1; width: $sideMenuWidth; border-top: 1px solid #444; li a { border-top: none; border-bottom: none; padding: 5px 15px; font-size: .9em; &:hover { background: none; } } .disclaimer { font-size: .7em; } } .sidebar-brand a { padding: 20px 15px; font-size: 18px; &:hover { background: none; } } } #wrapper { transition: $transition1; padding-left: $sideMeunPosition; height: 100%; &.active { // Make content shift right as well. /* padding-left: $sideMenuWidth; */ } #wrapperContent { padding: 3%; } }