@import (optional, once) '../../../theme/index';

.header-wrap-menu.ant-drawer-left,
.header-wrap-menu.ant-drawer-right {
  .ant-drawer-content-wrapper {
    top: 50px;
    height: calc(100% - 50px);
  }
  .ant-drawer-header {
    display: none;
  }
  .ant-drawer-body {
    position: relative;
    height: 100%;
    padding: 0;
    overflow: hidden;
  }
  .menu-search {
    width: calc(100% - 48px);
    margin: 16px 24px;
  }
  .ant-tabs {
    height: calc(100% - 68px);
    border-top: 1px solid @border-color-split;
    .ant-tabs-left-content {
      padding: 0;
      height: 100%;
      overflow-y: auto;
    }
    .ant-tabs-tab {
      width: 200px;
      height: 50px;
      padding: 0 10px 0 0;
      font-size: 15px;
      line-height: 50px;
      text-align: center;
      margin-bottom: 0;
      border-bottom: 1px solid @border-color-split;
      background-color: fade(@black, 2%);
      &::after {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 6px;
        height: 100%;
      }
      .iconfont {
        color: transparent;
        float: right;
      }
      &.ant-tabs-tab-active {
        font-weight: 700;
        background-color: transparent;
        &::after {
          background-color: @primary-color;
        }
        .iconfont {
          color: @primary-color;
        }
      }
    }
    .ant-tabs-ink-bar {
      width: 1px;
      background-color: @border-color-split;
      transition: all 0s ease 0s;
    }
  }
  .menu-container {
    padding: 0 30px 20px;
    column-count: 3;
    column-gap: 30px;
    .collect {
      position: relative;
      width: 36px;
      &-no {
        position: absolute;
        left: 6px;
        top: 0;
        color: transparent;
        z-index: 1;
      }
      &-yes {
        position: absolute;
        left: 6px;
        top: -2px;
        color: #FFA500;
        transform: scale(1.2);
        z-index: 2;
      }
    }
    .menu-icon {
      color: @primary-color;
    }
    .second-menu {
      &__title {
        position: relative;
        display: flex;
        align-items: center;
        line-height: 40px;
        font-weight: 700;
        border-bottom: 1px solid @border-color-split;
        .collect {
          height: 40px;
        }
        .text {
          margin-left: 6px;
        }
      }
    }
    .third-menu {
      &__title {
        position: relative;
        display: flex;
        align-items: center;
        font-size: 12px;
        line-height: 36px;
        cursor: pointer;
        &:hover {
          color: @primary-color;
          .collect-no {
            color: @primary-color;
          }
        }
        .text {
          margin-left: 6px;
        }
        .collect {
          height: 36px;
        }
      }
      &__content {
        padding: 6px 0;
        background-color: fade(@black, 2%);
      }
    }
    .four-menu {
      padding-left: 18px;
      &__title {
        position: relative;
        display: flex;
        color: @text-color-second;
        font-size: 12px;
        line-height: 24px;
        cursor: pointer;
        &:hover {
          color: @primary-color;
          .collect-no {
            color: @primary-color;
          }
        }
        .collect {
          height: 24px;
        }
      }
    }
  }
}

.uploader-drawer {
  .upload-iconfont {
    margin-right: 4px;
  }
  .db-parsing {
    position: absolute;
    top: 55px;
    width: calc(100% - 48px);
    height: calc(100% - 55px);
    text-align: center;
    .db-parsing-loading {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      &-icon {
        font-size: 40px;
        animation-name: rotate2;
        animation-duration: 1.5s;
        animation-iteration-count: infinite;
        animation-timing-function: linear;
      }
    }
  }
}

.menuForm .menu-icon {
  position: absolute;
  left: 10px;
  top: 6px;
}

@keyframes rotate2 {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
