index.less 5.32 KB
@import '~antd/es/style/themes/default.less';

.qx-view-container {
  height: 100%;
  overflow: hidden;

  .qx-view {
    height: 100%;

    .qx-view_aside {
      height: 100%;

      .qx-view_aside_body {
        height: calc(100% - 158px);
        overflow-y: scroll;
      }
    }

    .qx-view-list {
      overflow-y: hidden;
    }
  }
}

.app-view-tab {
  .ant-tabs-nav {
    margin: 0 !important;
    padding-left: 1.68em;
  }

  .tr-search {
    border-top: none;
  }

  .ant-tabs-tab {
    border-radius: 6px 6px 0 0 !important;
  }

  .ant-tabs-tab-btn {
    min-width: 6em;
    text-align: center;
  }

  .ant-tabs-tabpane-active {
    padding-top: 0 !important;
  }
}

.app-view-cont {
  .ant-tabs.hide {
    display: none;
  }

  .ant-tabs-top {
    .ant-tabs-nav {
      margin-bottom: 0;
      background: #fff;

      .ant-tabs-tab {
        padding: 9px 15px;
      }

      .ant-tabs-tab-active {
        background: none;
      }
    }
  }
}

img.table-data-img {
  height: 36px !important;
}

img.table-data-img,
.attr {
  margin-right: 5px;

  &:last-child {
    margin-right: 0;
  }
}

.qx-view_content {
  .qx-editor-chart {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #eee;

    &_item {
      box-sizing: content-box;
    }
  }
  .qx-view-search {
    .fr-field
      > .fr-content
      > .fr-item-wrapper
      > .w-100
      > .flex
      > .fr-field
      > .fr-content {
      width: calc(100% - 104px);
    }
  }
}

// 快捷查询样式
.qx-view-quick-search-box {
  display: flex;
  padding-bottom: 16px;
}

.qx-view-quick-search-list {
  flex: 1;
  max-width: calc(100% - 580px);
}

.qx-view-quick-search-tool-bar {
  box-sizing: border-box;
  width: 580px;
  min-width: 580px;
  max-width: 580px;
  padding-left: 30px;

  .qx-view-table-toolbar {
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .ant-alert {
    margin-top: 12px;
    margin-bottom: 0 !important;
  }
}

// 树状视图样式
.qx-tree-list__design {
  height: 100%;

  .ant-tree {
    height: calc(100% - 40px);
    padding-top: 10px;

    .ant-tree-switcher-icon {
      color: #999;
    }
  }

  .ant-tree-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    color: #333;
    font-size: 14px;
  }

  .ant-tree-treenode {
    align-items: center;
    height: 32px;

    .ant-tree-node-content-wrapper {
      align-items: center;
      justify-content: flex-start;
      height: 100%;
    }

    button {
      //height: 28px;
      width: auto;
      min-width: 28px;
      margin: 0 12px 0 0;
      padding: 0;
    }

    .qx-tree-btn-list {
      display: none;
      align-items: center;
      justify-content: flex-start;
      height: 100%;
      margin-left: 16px;

      .qx-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: transparent !important;
      }

      .qx-btn:hover,
      .qx-btn:focus {
        background-color: #f0f0f0 !important;
      }
    }

    .ant-tree-draggable-icon {
      visibility: hidden;
    }

    &:hover {
      .qx-tree-btn-list {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
      }

      .ant-tree-draggable-icon {
        color: @normal-color;
        font-size: 18px;
        visibility: visible;
        cursor: move;
        opacity: 1;
      }
    }

    .ant-tree-draggable-icon:hover {
      color: @primary-color;
      opacity: 1;
    }

    &.ant-tree-treenode-draggable.dragging {
      background-color: #fff;
      border-color: transparent !important;
      border-radius: 3px;
      box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);

      &::after {
        border-color: transparent !important;
      }
    }
  }

  .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
    background-color: transparent;
  }

  .ant-tree .ant-tree-node-content-wrapper:hover {
    background-color: rgba(52, 153, 255, 0.05);
    border-radius: 3px;
  }

  .tree-list__empty {
    height: 200px;
    margin: 0;
    padding-top: 30px;
    background-color: #fff;
  }

  .qx-tree-drop-down {
    &-btn.ant-btn {
      height: 24px;
      color: #999;

      &:hover {
        color: @primary-color;
      }
    }

    .qx-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background-color: transparent !important;
    }

    .qx-btn:hover,
    .qx-btn:focus {
      background-color: #f0f0f0 !important;
    }

    .ant-dropdown-menu-item {
      &-active,
      &:hover {
        background-color: #fff;
      }
    }
  }
}
.qx-import-custom {
  .ant-modal-content {
    border-radius: 10px;
    overflow: hidden;
  }
  &_idx {
    color: #fff;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: @primary-color;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    margin-right: 5px;
    margin-bottom: 10px;
  }
  &_title {
    font-size: 14px;
    font-weight: 500;
  }
  &_des {
    background: rgb(247, 247, 247);
    border-radius: 5px;
    padding: 12px;
    color: #666;
    text-emphasis: red;
    margin-bottom: 20px;
    font-size: 13px;
    span {
      display: flex;
      align-items: center;
    }
  }
  .ant-upload-select {
    width: 100%;
    .ant-btn-block {
      border: 1px dashed #d9d9d9;
      border-radius: 5px;
      padding: 12px 0;
      height: unset;
    }
  }
}