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

.qx-filter-cont-left {
  //margin-top: 8px;
  //margin-bottom: 8px;

  .qx-query-text {
    flex-shrink: 1;
    padding-right: 8px;
    overflow: hidden;
    vertical-align: bottom;
  }

  .queryTexts {
    display: inline-block;
    min-width: 140px;
    max-width: 180px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }

  .qx-query-text-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    margin-bottom: 4px;
  }

  .qx-query-text-content {
    display: flex;
    flex-shrink: 1;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 32px);
    height: 24px;
  }

  .qx-query-text-opt {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    height: 24px;
    padding: 0 8px;
    color: @N9;
    background: #fff;

    .query-text-opt-btn {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      width: 12px;
      height: 12px;
      color: @N7;
      font-size: 16px;

      svg {
        margin-top: 2px; // 对齐
        transform: scale(0.5);
      }
    }

    &:hover {
      background: #fff;
    }
  }
}

.filterContRight {
  margin-top: 40px;
  margin-left: 0.8em;
}

.qx-conditions {
  position: relative;
  color: @N9;
}

.qx-cond-index {
  display: block;
  font-size: 16px;
  line-height: 58px;
}

.qx-cond-ctrl {
  position: sticky;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  margin-top: 4px;
  padding: 8px 0 10px 0;
  color: @N9;
  background: #fff;
  border-top: 1px solid @N4;
}

.qx-filter-condition-input {
  margin-top: 5px;
}

.qx-ctrl-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  height: 24px;
  margin-left: 8px;
  visibility: hidden;
}

.qx-condition-item {
  margin-top: 8px;
  padding: 4px 0;
  border-radius: 4px;

  &:hover {
    .qx-ctrl-btn {
      visibility: visible;
    }

    .qx-condition-delete {
      width: 16px;
      height: 16px;
      color: @N7;
      font-size: 16px;
      line-height: 1;
      cursor: pointer;

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

.conditionItemForm {
  &:hover {
    background-color: transparent;
  }

  .ant-divider.ant-divider-horizontal {
    border-color: @N4;
  }
}

.condEmpty {
  padding: 16px 0 26px;
  color: #999;
  font-size: 16px;
  text-align: center;
}

.sqlType {
  width: 322px;
  margin-left: 8px !important;
  line-height: 44px !important;
}

.qx-rule-setting-filter {
  padding: 10px;
  background-color: @N1;
}

.qx-fileterCondition_item {
  margin: 30px 0 8px 0;
  font-weight: 400;
  font-size: 16px;
}

.qx-cond-ctrl-custom-chart {
  position: static;
  margin-top: 10px;
  padding: 0;
}

.qx-filter-condition-custom-opt {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 46px;
  padding: 16px 16px 8px 16px;
}

// 条件配置 自定义筛选 相关样式
.qx-conditions-view-filter-single,
.qx-conditions-view-filter {
  width: 464px;
  padding: 0 0 0 16px;
  overflow-y: hidden;

  &:hover {
    overflow-y: auto;
  }
}
// 查询条件大于1个 高度去除条件组合
.qx-conditions-view-filter {
  min-height: 260px;
  max-height: 260px;
}

.qx-conditions-view-filter-single {
  min-height: 300px;
  max-height: 300px;
}

.qx-condition-item-filter {
  width: calc(100% - 16px);
  min-width: calc(100% - 16px);
  max-width: calc(100% - 16px);
}

.qx-filter-condition__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 22px;
  margin-bottom: 8px;
}