@import './common/var.scss';
.es-nav {
  overflow: hidden;
  display: inline-block;
  transition: all 0.2s;
  -webkit-transition: all 0.2s;
  .es-menu,
  .el-menu {
    background-color: transparent;
  }
  .es-nav-main {
    position: relative;
    overflow: hidden;
    display: inline-block;
    height: 100%;
    background-color: $--color-primary-light-9;
    &[biserial='true'] {
      background-color: $--color-primary-light-10;
    }
    &:not(.es-nav-overlap) {
      border-right: $--border-base;
    }
    .es-nav-title {
      width: 100%;
      height: 45px;
      font-size: 15px;
      line-height: 30px;
      text-align: center;
      overflow: hidden;
      padding: 7px 32px 7px 0;
      padding-right: 32px;
      background-color: $--color-primary-light-7;
      color: #fff;
      position: relative;
      z-index: 1;
      box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.2);
      .es-collapse-handle {
        font-size: 20px;
        cursor: pointer;
        position: absolute;
        right: 12px;
        top: 50%;
        margin-top: -15px;
        color: #fff;
        &.es-icon-zengjiasuojinliang {
          right: 50%;
          margin-right: -10px;
        }
      }
      .el-tooltip {
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        position: relative;
        padding: 0 4px;
        &.es-nav-title-filter {
          padding-right: 10px;
          cursor: pointer;
          .el-icon--right {
            position: absolute;
            right: 6px;
            top: 50%;
            margin-top: -4px;
          }
        }
      }
    }
  }
  .es-nav-initial {
    width: $--nav-initial-width;
    box-shadow: $--box-shadow-light;
    position: relative;
    z-index: 2;
    height: 100%;
    background: $--color-primary-light-9;
    .es-menu-vertical,
    .el-menu-item {
      height: auto;
      &.is-active {
        background: $--color-primary-light-7;
      }
    }
    .es-nav-overlap {
      .es-menu {
        display: flex;
        flex-wrap: wrap;
        .es-menu-item,
        .el-menu-item {
          width: 90px;
          height: 90px;
          margin-bottom: 20px;
          &:nth-child(2n) {
            margin-left: 20px;
          }
        }
      }
    }
  }
  &.es-nav-biserial {
    position: relative;
    .es-nav-main {
      position: absolute;
      top: 0;
      bottom: 0;
    }
    .es-menu-title-vertical {
      margin-right: 0;
    }
  }
}
