@import "../../style/themes/default";
@import "../../style/mixins/index";

.cube-TableWrapper {
  :global {
    //修复size=small时 th部分底色变成白色
    .ant-table-thead > tr > th {
      background-color: #fafafa!important;
      padding:10px 16px!important;
    }
    .ant-table-tbody > tr > td{
      padding:15px 16px!important;
    }
    //修复圆角泛白
    .ant-table-scroll {
      border-radius: 8px;
      //修复水平滚动模式下，始终会有滚动条的bug
      & > .ant-table-body{
        overflow-x: auto!important;
      }
    }
    //无数据时 补一个边线
    .ant-table-empty {
      .ant-table-placeholder {
        border-bottom: @border-width-base @border-style-base @border-color-split;
        min-height: 300px;
        line-height: 300px;
      }
    }
    //size=small时边框重复
    .ant-table-small {
      border: none;
    }
    .ant-table-wrapper {
      border: @border-width-base @border-style-base @border-color-split;
      border-width: 1px 1px 0;
      border-radius: 8px 8px 0 0;
    }
    .ant-table-thead > tr > th:last-child .ant-table-filter-icon {
      border-radius: 0 8px 0 0;
    }
  }  

  .cube-TableWrapper-advanced-footer {
    display: block;
    background: #fff;
    color: @table-header-color;
    border: @border-width-base @border-style-base @border-color-split;
    border-radius: 0 0 8px 8px;
    border-width: 0 1px 1px 1px;
    padding: 0 8px;
    zoom: 1;
    &:after {
      content: '.';
      display: block;
      height: 0;
      clear: both;
      visibility: hidden;
    }
    .cube-TableWrapper-actions-wrapper {
      line-height: 44px;
      float: left;
      :global(.ant-btn) + :global(.ant-btn) {
        margin-left: 8px;
      }
    }
    .cube-TableWrapper-pagination-wrapper {
      float: right;
    }
    :global(.ant-pagination) {
      margin: 6px 0;
    }
  }

}

