@import '../../core/variables.less';

@top-height: 0px;
@menu-bakg: #FFF;
@active-color: #2966FF;
.left-container {
  position: absolute;
  z-index: 2;
  top: @top-height;
  left: 0;
  bottom: 0;
  width: @xm-left-width;
  background: @menu-bakg;
  color: #333;
  .topLogo {
    height: 62px;
    img {
      width: 138px;
      height: 35px;
      margin-left: 19px;
      margin-top: 13px;
    }
  }
  .menu-type-icon{
    margin:4px  0 0px 150px;
    cursor: pointer;
    .icon{
      font-size:14px;
      color:#5E606A;
    }
  }
  .ant-menu {
    padding-left: 0 !important;
    color: #333;
    background: #FFF !important;
  }
  .left {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    -webkit-flex-direction: column;
   
    .nav {
      -webkit-flex: 1;
      cursor: default;
      font-size: 16px;
      height: calc(~'100% - 72px');
      overflow: auto;
      &::-webkit-scrollbar {
        display: none;
      }
      .icon {
        margin-right: 20px
      }
      .icon-img{
        width:18px;
        height:18px;
        margin-right:16px;
      }
      .listType {
        width: 5px;
        height: 5px;
        background: #9A9DA7;
        border-radius: 50%;
        top: 18px;
        left: 38px;
        position: absolute;
      }
      .ant-menu-item{
        padding-left: 13px !important;
        padding-right: 0px;
        margin: 6px 8px;
        width: calc(100% - 15px);
        &:hover{
          background: #F3F6FA;
          border-radius: 2px;
          color:#333;
        }
      }
      .ant-menu-item-selected{
        background-color:@active-color;
        color:#FFF;
        border-radius:2px;
        &:hover{
          color:#FFF;
        }
      }
      .ant-menu-submenu{
        .ant-menu-submenu-title{
          margin:6px 8px;
          padding-left:13px !important;
        }
        .ant-menu-item{
          padding-left:46px !important;
        }
      }
     
      .ant-menu-submenu-selected{
        color:@active-color;
       
        .ant-menu-item-selected{
          color:#FFF;
          .listType {
            background: @active-color;
          }
        }
      
      }
      .ant-menu-submenu-arrow{
        right:22px;
        color:#5E606A;
      }
    }
  
  }

  &.left-container-vertical {
    width: 56px;
    .menu-type-icon{
      margin:4px 0 0px 22px;
    }
    .left {
      .ant-menu-submenu-arrow{
        display:none !important;
      }
    }
  }
  .shink-footer {
    left: 74px;
  }
  // &:hover{
  //   .menu-type-icon{
  //     display:inline-block;
  //   }
  // }
}
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
  background:@active-color !important;
}
.ant-menu.ant-menu-dark, .ant-menu-dark .ant-menu-sub, .ant-menu.ant-menu-dark .ant-menu-sub{
  background: @menu-bakg !important;
}
.ant-menu-submenu-popup{
  left:67px !important;
}
.ant-menu-submenu-popup>.ant-menu {
  background: @menu-bakg  !important;
  color: #333;
  width: 132px;
  min-width: auto;
  li {
    width: calc(100% - 16px);
    padding-left: 20px;
    margin:12px  8px !important;
    &:hover{
      background: #F3F6FA;
      border-radius: 2px;
      color:#333 !important;
    }
  }

  .ant-menu-item-selected {
    background: @active-color;
    color: #fff;
    &:hover{
      color: #fff !important; 
    }
  }

  &:hover {
    .ant-menu-item-active {
      color: #fff;
    }
  }
}
