index.less 4.83 KB
@import '~antd/es/style/themes/default.less';
@import '~react-grid-layout/css/styles.css';
@import '~react-resizable/css/styles.css';

.qx-chart-view {
  height: 100%;
  padding: 0;
  overflow: auto;
  background: rgb(255, 255, 255);
  .qx-chart-selected_delete {
    display: none !important;
  }
}

.qx-chart_list {
  height: 60px;
  border-bottom: 1px solid #eee;
  box-shadow: none;
}
.qx-chart_container {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  padding: 0 15px;
  .qx-chart-item {
    margin-right: 15px;
    padding: 5px;
    list-style: none;
    border-radius: 5px;
    cursor: pointer;
    &:hover {
      background: @primary-1;
    }
    &_disabled {
      color: #aaa;
      cursor: auto;
      &:hover {
        background: none;
      }
    }
    .qx-chart-icon {
      font-size: 12px;
    }
  }
}

.qx-chart_content {
  display: flex;
  width: 100%;
  height: calc(100% - 105px);
  &_show {
    flex: 1;
    //padding: 15px;
    box-sizing: border-box;
    min-width: calc(100% - 622px);
    overflow: auto;
    background: #f9f9f9;
    .react-grid-layout {
      width: 100%;
    }
    //.echarts-for-react{
    //  height: 100% !important;
    //}
  }
  .ant-tabs-content-holder {
    padding: 10px 15px;
  }
  .qx-fg-right-switch {
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px;
    color: #999;
    font-size: 18px;
    cursor: pointer;

    &:hover {
      color: #333;
    }
  }
  &_setting {
    position: relative;
    border-right: 1px solid #f0f0f0;
    border-left: 1px solid #f0f0f0;
  }

  &_source {
    position: relative;
  }
}

.qx-chart-switch {
  .fr-item-wrapper {
    justify-content: flex-end;
  }
}

.qx-bar-setting {
  .fr-label-title::after {
    content: '';
  }
  .fr-label-row {
    text-align: left;
  }
  .qx-field-select_left {
    .ant-select-selector {
      border-right: 0;
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
    }
  }
  .qx-field-select_right {
    .ant-select-selector {
      background-color: #fff;
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
    }
  }
  .fr-label-column {
    margin-bottom: 0;
  }
}

.qx-border-bottom {
  border-bottom: 1px solid #ddd;
}
.qx-border-top {
  border-top: 1px solid #ddd;
}

.qx-chart-view {
  .qx-item-chart {
    position: relative;
    // padding-top: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px dashed #fff;
    .qx-chart-selected_delete {
      position: absolute;
      top: -7px;
      right: -7px;
      display: none;
      width: 14px;
      height: 14px;
      color: #fff;
      font-size: 10px;
      background: red;
      border-radius: 50%;
      cursor: pointer;
    }
    &:hover {
      .qx-chart-selected_delete {
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }
    .left {
      text-align: left;
    }
    .center {
      text-align: center;
    }
    .right {
      text-align: right;
    }
  }
}

.qx-chart-selected {
  position: relative;
  border: 1px dashed @primary-color;
}
.qx-chart-title {
  margin: 10px 10px 0;
  font-weight: 600;
  font-size: 16px;
}
.qx-chart-handleBtn {
  display: flex;
  justify-content: flex-end;
  padding: 0 10px;
}
.qx-chart-radioBtn {
  .ant-radio-button-wrapper {
    padding: 0 10px;
  }
}
.qx-field-type {
  display: block;
  font-weight: 500;
  &:not(:first-child) {
    margin-top: 5px;
  }
}
.qx-field-drop {
  margin-top: 10px;
  padding: 1px;
  color: #ccc;
  text-align: center;
  border: 1px dashed #ccc;
  border-radius: 2px;
  &__field {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background: @primary-color;
    &:not(:first-child) {
      margin-top: 5px;
    }
    &_text {
      flex: 1;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      .qx-drag-handler {
        position: absolute;
        left: 20px;
        margin-top: 2px;
      }
    }
  }
  &_green {
    background: #33ac90;
  }
  &__icon {
    margin-left: 10px;
    color: #fff;
    cursor: pointer;
  }
}
.drop-hover {
  background: @primary-1;
}
.drop-none {
  background: #fff;
}
.qx-chart-setting {
  height: 100%;
  .ant-tabs {
    height: 100%;
  }
  .ant-tabs-content-holder {
    height: 100%;
    overflow: auto;
  }
  &_text {
    position: absolute;
    top: 50px;
    letter-spacing: 5px;
    text-align: center;
  }
}

.qx-chart-calc {
  margin-bottom: 3px;
  cursor: pointer;
  &:hover {
    color: @primary-color;
  }
}
.qx-calc-active {
  color: @primary-color;
}
.react-grid-item > .react-resizable-handle::after {
  width: 15px;
  height: 15px;
  border-right-color: #999;
  border-bottom-color: #999;
}

.group-field_time {
  display: flex;
  justify-content: space-between;
  width: 188px;
  padding: 5px;
  cursor: pointer;
  &:hover {
    color: @primary-color;
  }
  .active {
    color: @primary-color;
  }
}