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

@top-height: 50px;
@menu-bakg: #2B2E37;
@active-color: #FFB714;
.left-container {
  position: absolute;
  z-index: 2;
  top: @top-height;
  left: 0;
  bottom: 0;
  width: @xm-left-width;
  background: @menu-bakg;
  color: #FFFFFF;
  .ant-menu {
    padding-left: 0 !important;
    background: transparent;
  }
  .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-selected{
        color:@active-color;
      }
      .ant-menu-sub{
        .ant-menu-item{
          padding-left:58px
        }
      }
     
      .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;
      }
    }
  }
}
.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected {
  background:@menu-bakg !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: #9A9DA7;
  padding-left: 15px;
  width: 132px;
  min-width: auto;

  li {
    padding-left: 22px;
    padding-right: 0;
    width: 117px;
  }

  .listType {
    width: 5px;
    height: 5px;
    background: #9A9DA7;
    border-radius: 50%;
    top: 18px;
    left: 10px;
    position: absolute;
  }

  .ant-menu-item-selected {
    background: @menu-bakg;
    color: #fff;

    .listType {
      background: @active-color;
    }
  }

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

    .ant-menu-item-selected {
      .listType {
        background: @active-color;
      }
    }
  }
}
