index.module.less 4.62 KB
.qx-data-flow {
  width: 100%;
  height: 100%;
  background-color: @body-bg;
}

.qx-data-flow__img.ant-image,
.qx-data-flow__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 100%;
  font-size: 16px;
  line-height: 1;
  color: inherit;
}

.qx-data-flow__main {
  display: flex;
  padding: 16px;
  width: 100%;
  height: calc(100% - 57px);

  /*.main-aside {
    width: 240px;
    border-radius: 8px;
    background-color: #fff;
  }

  .main-aside-menus {
    padding-top: 12px;
    height: 100%;
    border-radius: 8px;

    // 菜单覆盖
    :global {
      .ant-menu-item {
        width: calc(100% - 24px);
        margin: 0 6px 0 12px;
        padding-top: 0;
        padding-bottom: 0;
        border-radius: 4px;

        &:hover {
          color: @N8;
          background-color: @N3;
        }

        &:not(:last-child) {
          margin-bottom: 4px;
        }

        &.ant-menu-item-selected {
          color: @B8;
          background-color: @B3;

          a {
            color: @B8;
          }

          &:hover {
            color: @B8;
            background-color: @B3;
          }
        }
      }
    }
  }*/

  .main-content {
    flex: 1;
    width: 100%;
    //width: calc(100% - 240px - 16px);
    height: 100%;
    padding: 16px;
    min-height: 0;
    //margin-left: 16px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
  }
}

.qx-flow-setting {
  &-container {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: calc(100% - 48px);

    :global {
      // 创建人 单元格 样式迭代
      td.ant-table-cell.qx-flow-table-cell {
        height: 40px;
        line-height: initial !important;

        &.qx-flow-table-cell-user {
          padding: 0 8px !important;
          height: 100% !important;
        }

        .anticon.qx-data-flow__icon {
          font-size: 16px;
          color: @N7;

          &:hover {
            color: @N9;
          }
        }

        .ant-btn.ant-btn-link.ant-btn-sm {
          flex: 1;
          display: inline-flex;
          align-items: center;
          justify-content: flex-start;
          height: 24px !important;
          padding: 0 !important;
          color: @B8;

          span {
            height: 100%;
            display: inline-flex;
            align-items: center;
            justify-content: flex-start;
          }

          &:hover {
            color: @B7;

            .anticon.qx-data-flow__icon {
              color: @B7;
            }
          }

          .anticon.qx-data-flow__icon {
            color: @B8;

            &:hover {
              color: @B7;
            }
          }
        }
      }

      // 覆盖单元格 hover样式变化
      td.qx-flow-table-cell.ant-table-cell-row-hover {
        //cursor: pointer;

        .qx-flow-version__default,
        .qx-flow-version__default-operational {
          background-color: @N4 !important;
          border-color: @N4 !important;
        }

        .qx-flow-version__default-operational:hover {
          border-color: @B8 !important;
        }

        .qx-flow-table-cell__avatar-name.ant-typography {
          background-color: @N4 !important;
        }
      }
    }
  }

  &__col-title,
  &__colspan,
  &__colspan-user {
    height: 100%;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
  }

  &__colspan {
    :global {
      .ant-typography {
        color: @N8;
      }
    }
  }

  &__colspan-flow {
    :global {
      .ant-typography {
        color: @N9;
      }
    }
  }

  &__colspan-icon {
    width: 20px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;

    :global {
      .qx-icon-aggregate-img,
      .anticon.qx-icon-aggregate {
        width: 20px;
        height: 20px;
        border-radius: 4px;
        font-size: 14px;
        overflow: hidden;
        line-height: 1;
      }
    }
  }

  &__colspan-user {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    position: relative;

    :global {
      //覆盖头像样式
      .qx-flow-table-cell__avatar.ant-avatar {
        position: absolute;
        font-size: 12px !important;
        top: 50%;
        margin-top: -12px;
        left: 8px;
        background-color: @B8;
      }

      .qx-flow-table-cell__avatar-name.ant-typography {
        padding-left: 28px;
        padding-right: 8px;
        max-width: 144px;
        height: 100%;
        line-height: 24px;
        font-size: 12px;
        color: @N9;
        background-color: @N3;
        border-radius: 100px;
      }
    }
  }
}