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

@top-height: 60px;
@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;
  .menu-type-icon{
    position: absolute;
    display:inline-block;
    width: 24px;
    height: 24px;
    background: #FFFFFF;
    border-radius: 50%;
    border: 1px solid #F1F3F6;
    right:-12px;
    top:29px;
    text-align:center;
    z-index:3;
    cursor: pointer;
    .icon{
      font-size:11px;
    }
    display:none;
  }
  .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;
    height: 100%;
   
    .nav {
      -webkit-flex: 1;
      cursor: default;
      font-size: 16px;
      margin-top: 16px;
      height: calc(~'100% - 72px');
      overflow: auto;
      &::-webkit-scrollbar {
        display: none;
      }
      .icon {
        margin-right: 20px
      }
      .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;
        &: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;
          }
        }
      
      }
     
    }
  }

  &.left-container-vertical {
    width: 62px;
    .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>.ant-menu {
  background: @menu-bakg  !important;
  color: #333;
  padding-left: 15px;
  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;
    }
  }
}
