@import "variables";

.toc-article{

  width: 240px;

  &::-webkit-scrollbar {
    width: 0;
  }

  &::-webkit-scrollbar-thumb {
    background-color: transparent;
    -webkit-border-radius: 4px;
    border-radius: 2px;
  }

  .toc-title{
  }
  ol{
    padding-left: 10px;
    padding-right: 10px;
    cursor: pointer;
    font-size: 0;
  }
  li{
    font-size: 0;
    box-sizing: border-box;
    border-left: 2px solid #cccccc;
    list-style: none;
    padding-left: 10px;
    a{
      display: block;
      line-height: 20px;
      margin-bottom: 10px;
      text-decoration: none;
      color: #999999;
      font-size: 14px;
      span{
        word-break: break-all;
      }
    }
  }
  li.active{
    border-left: 2px solid @link-color;
    &>a {
      color: @link-color;
    }
  }
  li:hover{
    border-left: 2px solid @link-color;
    &>a {
      color: @link-color;
    }
  }
  &>ol>li{
    border-left: none !important;
  }
}

.toc-fixed{
  position: fixed;
  top:10px;
  width: 240px;
  //max-height: 600px;
  //overflow: scroll;
  &::-webkit-scrollbar {
    width: 0;
  }

  &::-webkit-scrollbar-thumb {
    background-color: #ffffff;
    -webkit-border-radius: 4px;
    border-radius: 2px;
  }
}

@media screen and (max-width: 1180px){

  .toc-article{
    display: none;
  }

}