@import 'common/var.scss';

.qf-nav-group {
  overflow: hidden;
  width: 56px;
  height: 76px;
  line-height: 76px;
  font-size: 14px;
  transition: width .2s;
  cursor: pointer;
  .menu-popper {
    left: 56px;
    padding-left: 0;
    padding-right: 0;
    .ul-item {
      list-style: none;
    }
    .ul-title {
      padding-left: 12px;
      color: rgba(144, 147, 153, 1)
    }
    .hover-item {
      color: rgba(92, 96, 115, 1);
      padding-left: 20px;
      height: 36px;
      line-height: 36px;
      &:hover {
        color: black;
        background: rgba(235, 238, 245, 1);
        border-right: 3px solid rgba(252, 62, 77, 1);;
      }
    }
  }
  .nav-title {
    left: 76px;
    top: 0;
    position: absolute;
  }

  .nav-btn {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    outline: none;
    padding-bottom: 16px;
    .nav-icon {
      width: 100%;
      /*height: 32px;*/
      line-height: 32px;
      /*margin-left: 12px;*/
      text-align: center;
      .bottom-name {
        position: absolute;
        bottom: 9px;
        /* left: 24px; */
        width: 100%;
        text-align: center;
      }
    }

    .qf-icon {
      font-size: 16px;
      line-height: 32px;
      color: rgba(255, 255, 255, 0.5);
    }
  }

  .nav-header-line {
    position: relative;
    height: 55px;
    &::after {
      content: '';
      /*border-bottom: rgba(0, 0, 0, 0.2) 1px solid;*/
      position: absolute;
      bottom: 0;
      left: 12px;
      right: 8px;
    }
  }

  .nav-items {
    position: absolute;
    width: 132px;
    top: 0;
    left: 56px;
    height: 100%;
    overflow: hidden;
    cursor: default;
    background: white;
    color: rgba(92, 96, 115, 1);
    /*background-image: linear-gradient(to bottom, #3A3F59, #594A5E);*/

    list-style: none;
    margin: 0;
    padding: 0;

    .group-title {
      height: 36px;
      line-height: 36px;
      padding-left: 12px;
      font-size: 14px;
      color: rgba(144, 147, 153, 1);
    }
  }
  &:hover {
    background: rgba(255, 255, 255, 0.12)
  }

  &.is-home {
    height: 72px;
    line-height: 72px;
  }

  &.is-fixed {
    /*width: 100%;*/

    .nav-title {
      width: 100%;
    }

    &:hover {
      color: #fff;
    }
  }

  & > :not(ul):hover {
    color: #fff;
    .qf-icon {
      color: #fff;
    }
  }

  &.is-selected {
    /*background-color: rgba(255, 255, 255, 0.06);*/
    background-color: $--color-primary;
    & > :not(ul) {
      color: #fff;

      .nav-icon {
      }
      .qf-icon {
        color: #fff;
      }
    }
  }

  .qf-nav-right-in-enter {
    transform: translate(112, 0);
  }

  .qf-nav-right-in-enter-active {
    transition: .2s;
  }

  .qf-nav-select-out-leave-to {
    opacity: 0;
  }

  .qf-nav-select-out-leave-active {
    transition: .2s;
  }

  .qf-nav-fixed-out-leave-to {
    transform: translate(112, 0);
  }

  .qf-nav-fixed-out-leave-active {
    transition: .2s;
  }

}
