karantin2020
10/17/2015 - 7:39 AM

SidebarExperiment

SidebarExperiment

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  
  <div class="pageBody">
    <div class="contents">
      <div>
        <div class="sideBar">
          <div class="scrollContent">
            here is side
            <div class="inScroll">
              here is inSide

            </div>
          </div>
        </div>
        <div class="docContents">
          <div>
            <h1 class="typeHeader">Map</h1>
            <div class="synopsis">
            </div>
            <code class="codeBlock memberSignature">
            </code>
            <section>
            </section>
          </div>
        </div>
      </div>
    </div>
  </div>

</body>
</html>
html, body {
    color: #626466;
    font-family: "Fira Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 16px;
    line-height: 1.625;
  background: #fff none repeat scroll 0 0;
}

.pageBody {
    padding: 0 36px;
    position: relative;
}

.contents {
    margin: 0 auto;
    max-width: 880px;
    padding: 64px 0;
}

.sideBar {
    -moz-user-select: none;
    cursor: default;
    font-size: 1em;
    height: 100%;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 220px;
    z-index: 0;
}

.sideBar .scrollContent {
    box-sizing: border-box;
    height: 100%;
    overflow: auto;
    padding: 66px 0 100px;
    width: 240px;
}

.inScroll {
  height: 250%;
}

.docContents {
    margin-left: 240px;
}

.typeHeader {
    color: #555;
    font-size: 1.5em;
    font-weight: bold;
    margin: 1rem 0;
}

.memberSignature {
    background: #f8f9fa none repeat scroll 0 0;
    border-left-color: #9cdae9;
}
.codeBlock {
    background: #fcfbfa none repeat scroll 0 0;
    border-left: 5px solid #a5ccec;
    box-sizing: border-box;
    display: block;
    font-size: 0.875em;
    margin: 0.5rem 0;
    overflow: hidden;
    padding: 0.5rem 8px 0.5rem 12px;
    white-space: pre;
}
code {
    margin: -0.05rem -0.15em;
    padding: 0.05rem 0.35em;
}