.zhny-bare-tree {
  .ant-tree-node-content-wrapper {
    display: inline-block;
    flex: 1;
    min-width: 0;
    &.ant-tree-node-content-wrapper-open {
      .custom-iconfont::before {
        content: attr(expand-code);
      }
    }
    &.ant-tree-node-content-wrapper-close {
      .custom-iconfont::before {
        content: attr(fold-code);
      }
    }
    &:hover {
      .rename-icon {
        opacity: 1;
      }
    }
    .ant-tree-iconEle {
      font-size: 0;
    }
  }
  .ant-tree-treenode {
    &:not([aria-hidden='true']) {
      width: 100%;
    }
    .ant-tree-title {
      display: block;
      &:hover {
        .title-node-box {
          .submenu-icon.zhnycomp-more-menu {
            visibility: visible;
          }
        }
      }
      .title-node-box {
        position: relative;
        width: 100%;
        height: 100%;
        div {
          display: flex;
          align-items: center;
          width: 100%;
          height: 100%;
        }
        .submenu-icon.zhnycomp-more-menu {
          position: absolute;
          right: 10px;
          top: 50%;
          transform: translateY(-50%) rotate(90deg);
          margin: 0;
          visibility: hidden;
          color: #000;
          border-radius: 4px;
          .skin-dark & {
            color: #95ADFF;
          }
          &:hover {
            color: @blue-primary;
            .skin-red & {
              color: @red-primary;
            }
            .skin-green & {
              color: @green-primary;
            }
            .skin-gray & {
              color: @gray-primary;
            }
            .skin-yellow & {
              color: @yellow-primary;
            }
            .skin-dark & {
              color: #95ADFF;
            }
          }
        }
      }
    }
    .rename-icon {
      opacity: 0;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      &:hover {
        color: @blue-primary;
        .skin-red & {
          color: @red-primary;
        }
        .skin-green & {
          color: @green-primary;
        }
        .skin-gray & {
          color: @gray-primary;
        }
        .skin-yellow & {
          color: @yellow-primary;
        }
        .skin-dark & {
          color: @dark-primary;
        }
      }
    }
    .title-box {
      flex: 1 0 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .custom-iconfont {
      color: #e8b33a;
      &:hover {
        color: #e8b33a;
      }
    }
  }
}

.tree-sub-menu {
  padding: 10px 0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.2);
  .skin-dark & {
    background: #2a3253;
  }
  .menu-list-item {
    display: flex;
    padding: 0 10px;
    min-width: 170px;
    align-items: center;
    height: 30px;
    cursor: pointer;
    &.menu-list-item-disabled {
      color: #cecece;
      cursor: not-allowed;
      user-select: none;
      &:hover {
        color: #cecece !important;
        background: none !important;
      }
      .iconfont {
        color: #cecece !important;
        cursor: not-allowed;
      }
    }
    .item-name {
      flex: 1;
      min-width: 0;
    }
    .item-icon {
      width: 16px;
      margin-right: 14px;
    }
    &:hover {
      color: #4284e5;
      background: #f5f5f5;
      .skin-red & {
        color: #ac0f15;
      }
      .skin-green & {
        color: #ca5636;
      }
      .skin-gray & {
        color: #eb7200;
      }
      .skin-dark & {
        color: #cad6ff;
        background: #4c557c;
      }
      .iconfont {
        color: #4284e5;
        .skin-red & {
          color: #ac0f15;
        }
        .skin-green & {
          color: #ca5636;
        }
        .skin-gray & {
          color: #eb7200;
        }
      }
    }
  }
}
