index.less 4.6 KB
.qx-flow-node-panel {
  .ant-drawer-body {
    padding: 0;
    overflow: hidden;
  }
  &__title {
    height: 56px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: @N9;
    border-bottom: 1px solid @N4;
    .qx-flow-node-panel__title-left {
      font-size: 16px;
      font-weight: 600;
    }
    .qx-flow-node-panel__title-right {
      font-size: 14px;
      span {
        cursor: pointer;
        margin-left: 12px;
        transition: all 0.3s;
      }
    }
  }

  &--save {
    color: @B8;
    &:hover {
      color: @B7;
    }
  }

  &--manage {
    &:hover {
      color: @B8;
    }
  }

  &__tabs {
    .ant-tabs-nav {
      margin: 0 !important;
      &::before {
        border: none;
      }
      .ant-tabs-nav-list {
        width: 100%;

        .ant-tabs-tab {
          flex: 1;
          display: flex;
          align-items: center;
          justify-content: center;
          font-weight: 600;
          color: @N8;
          padding: 9px 0;
          .ant-tabs-tab-btn {
          }
        }
        .ant-tabs-tab-active {
          position: relative;
          &::before {
            content: '';
            position: absolute;
            left: 50%;
            bottom: 0;
            width: 88px;
            height: 2px;
            margin-left: -44px;
            border-radius: 2px;
            background-color: @B8;
            transition:
              width 0.3s,
              left 0.3s,
              right 0.3s;
          }
        }

        .ant-tabs-ink-bar {
          display: none;
        }
      }
    }
  }

  &__content {
    height: calc(100vh - 56px - 40px);
    overflow-y: auto;
    padding: 16px;

    &--manage {
      height: calc(100vh - 56px - 40px - 44px);
    }
  }

  &__list {
    margin-bottom: 16px;
    width: 100%;

    .qx-flow-node-panel__list-title {
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: @N7;
      font-size: 14px;
      width: 100%;
    }

    .qx-flow-node-panel__list-title-left {
      display: flex;
      align-items: center;
      flex: 1;

      input {
        flex: 1;
      }
      .qx-flow-node-panel__left-icon {
        margin-right: 4px;
        width: 14px;
        height: 14px;
      }

      .qx-flow-node-panel__left-span {
        cursor: pointer;
        font-weight: 600;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 300px;
      }
    }

    .qx-flow-node-panel__list-title-right {
      margin-left: 18px;
      cursor: pointer;
    }

    .qx-flow-node-panel__list-box {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      transition: all 0.3s;
    }
  }
  &__item {
    margin: 8px 8px 0 0;
    width: 30%;
    height: 40px;
    border-radius: 4px;
    border: 1px solid @N4;
    background: @N2;
    padding: 0 8px;
    display: flex;
    align-items: center;
    max-width: 142px;
    flex: 1;
    position: relative;
    cursor: pointer;

    &:nth-child(3n) {
      margin-right: 0;
    }

    .qx-flow-node-panel__item-icon {
      width: 28px;
      height: 28px;
      border-radius: 14px;
      background-color: pink;
      color: #fff;
      font-size: 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .qx-flow-node-panel__item-name {
      margin-left: 8px;
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: @N9;
      font-size: 14px;
    }
  }

  .qx-flow-node-panel__item--close {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 8px;
    color: #fff;
    background-color: @E3;
    top: -8px;
    right: -8px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  &--empty {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 8px;
    img {
      width: 190px;
      height: 126px;
    }
    span {
      margin-top: 4px;
      line-height: 22px;
      font-weight: 600;
      color: @N7;
    }

    &-max {
      margin-top: 24px;
    }
  }

  .qx-flow-node-panel__loading {
    width: 100%;
    margin-top: 100px;
  }

  &__opt {
    position: static;
    padding: 16px 16px 0;
    height: 44px;
    background-color: #fff;
    color: @B8;
    display: flex;
    align-items: center;

    &-icon {
      margin-right: 16px;
      cursor: pointer;
      &:hover {
        color: @B7;
      }
      > span {
        margin-right: 4px;
      }
    }
  }
}