/*extracted from https://gist.github.com/magican/5574556*/
#toc {
  overflow-y: scroll;
  max-height: 300px;

  ol.nested {
    counter-reset: item;
    list-style: none;
  }
  li.nested {
    display: block;
  }
  li.nested:before {
    counter-increment: item;
    content: counters(item, ".")" ";
  }
}

#toc-wrapper {
  position: fixed;
  top: 120px;
  max-width:430px;
  right: 20px;
  border: thin solid rgba(0, 0, 0, 0.38);
  border-radius: 5px;
  padding:10px;
  background-color: #fff;
  opacity: .8;
  z-index: 100;
}

#toc-wrapper.closed {
  min-width: 100px;
  width: auto;
  transition: width;
}
#toc-wrapper:hover{
  opacity: 1;
}
#toc-wrapper .header {
  font-size: 18px;
  font-weight: bold;
}
#toc-wrapper .hide-btn {
  font-size: 14px;
  font-family: monospace;
}

