@import '../../common/basic.less';

.help-content {
  height: 100%;
  .content {
    position: relative;
    margin-top: 20px;
    .left-wrap {
      width: 166px;
      margin-right: 20px;
      .dir-item {
        cursor: pointer;
        margin: 0;
        padding-left: 20px;
        width: 166px;
        height: 50px;
        line-height: 50px;
        background-color: #fff;
        border-bottom: 1px solid @main_border_color;
        &:last-child {
          border-bottom: none;
        }
        &.active {
          background-color: @primary_color;
          color: #fff;
        }
        &:hover:not(.active) {
          background-color: #eee;
        }
      }
    }
    .right-wrap {
      position: absolute;
      background-color: #fff;
      height: 100%;
      overflow: hidden;
      left: 186px;
      right: 0;
      top: 0;
      bottom: 0;
      padding: 0 24px;
      padding-bottom: 120px;
      .right-header {
        height: 70px;
        line-height: 70px;
        font-size: 20px;
        margin-bottom: 0;
        border-bottom: 1px solid @main_border_color;
      }
      .right-tags {
        overflow: hidden;
        padding: 0;
        border-bottom: 1px solid @main_border_color;
        margin-bottom: 0px;
        .tag-item {
          position: relative;
          margin-right: 18px;
          font-size: 14px;
          list-style-type: none;
          float: left;
          height: 50px;
          line-height: 50px;
          color: @primary_color;
          cursor: pointer;
          transition: border 0.2s linear;
          .tab-text {
            &:hover {
              border-bottom: 1px solid @primary_color;
            }
          }
          // &:hover{
          //   border-bottom: 1px solid @primary_color;
          // }
          &::after {
            content: '>';
            position: absolute;
            right: -14px;
            color: @font_color;
          }
          &:last-child::after {
            display: none;
          }
          // &.active{
          //   border-bottom: 1px solid @primary_color;
          // }
        }
      }
      .right-content-wrap {
        position: relative;
        height: 100%;
        padding-bottom: 20px;
        overflow-y: auto;
        &::before {
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          width: 90%;
          height: 20px;
          z-index: 5;
          background-color: #fff;
        }
        .markdown-wrap{
          padding-top: 12px;
        }
      }
      .right-content {
        height: 100%;
        overflow-y: auto;
        padding: 30px 12px;
        box-sizing: border-box;
        transition: all 0.2s linear;
        padding-bottom: 50px;
        .block {
          margin: 0px;
          .md-wrap{
            padding: 0;
          }
          .step-count {
            display: inline-block;
            width: 24px;
            height: 24px;
            line-height: 24px;
            font-size: 14px;
            border-radius: 50%;
            text-align: center;
            background-color: @primary_color_disabled;
            color: #fff;
            margin-right: 16px;
          }
          h3 {
            font-size: 18px;
            margin-bottom: 0;
            color: @primary_color_disabled;
          }
          .text-content {
            position: relative;
            margin: 10px 0;
            width: 90%;
            padding: 16px 0;
            padding-left: 70px;
            .img-wrap {
              cursor: pointer;
              width: 100%;
              margin-bottom: 20px;
              img {
                width: 100%;
              }
            }
            p {
              font-size: 14px;
              line-height: 24px;
              width: 100%;
            }
            &::before {
              content: '';
              position: absolute;
              left: 12px;
              top: 0;
              height: 100%;
              width: 0px;
              border-left: 1px solid @primary_color_disabled;
            }
          }
          &.active {
            .step-count {
              background-color: @primary_color;
            }
            h3 {
              color: @main_font_color;
            }
            .text-content::before {
              border-left: 1px solid @primary_color;
            }
          }
          &:last-child {
            .text-content::before {
              display: none;
            }
          }
        }
      }
    }
  }
  .show-wrap {
    cursor: pointer;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.75);
    overflow-y: auto;
    z-index: 10;
    .show-wrap-content {
      padding: 100px 0;
      width: 100%;
      margin: 0 auto;
    }
    img {
      width: 80%;
    }
  }
}
