index.less 1.2 KB
@import '~@qx/ui/src/style/variable.less';

.qx-base-condition-item {
  margin-bottom: 16px;
  flex-grow: 1;

  &__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: @N9;
    height: 22px;
    margin-bottom: 4px;
    overflow: hidden;
  }

  &__header-icon {
    color: @N8;
    margin-right: 4px;
    flex-grow: 1;
  }

  &__header-filter {
    display: inline-block;
    width: 100px;

    &__select {
      width: 100%;
    }
  }

  &__header-delete {
    color: @N8;

    &:hover {
      color: @E3;
    }
  }

  &__content {
    position: relative;
    &-suffix {
      position: absolute;
      right: 1px;
      top: 1px;
      background-color: #fff;
      width: 32px;
      height: calc(100% - 2px);
      display: flex;
      align-items: center;
      justify-content: center;
      color: @N7;
    }

    .qx-field-setter {
      .ant-tag {
        display: flex;
      }
    }
  }

  &__header-filter {
    margin-right: 8px;
  }

  &__header-right {
    transition: all 0.2s ease;
    transform: translateX(20px);
    text-align: right;
  }

  &:hover {
    .qx-base-condition-item__header-right {
      transform: translateX(0);
    }
  }
}