@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
      }
      .ant-menu-item {
        color: @xm-color-text-menu;
      }

      .ant-menu-item-selected {
        .name {
          color: #fff;
        }
      }
    }
  }

  &.left-container-vertical {
    width: 62px;
    .left {
      .ant-menu-item {
        text-align: center;
      }
      .icon {
        margin-right: 0px;
      }
    }
  }
}
.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;
}
