@import '../variable.less';

.bixi-table {
  .ant-table-column-sorters {
    .ant-table-column-title {
      margin-right: 12px;
    }
  }

  .bixi-empty {
    margin: @bixi-table-empty-margin;
  }

  &-compact {
    .ant-table-thead > tr > th {
      padding: @table-header-compact-padding;
    }

    .ant-table-tbody > tr > td {
      padding: 6.5px 12px;
    }

    .ant-table-tbody > tr > td.ant-table-selection-column {
      padding: 6.5px 0;
    }
  }

  &-striped {
    .ant-table-tbody > tr:nth-child(even):not(:first-child) {
      background: @bixi-table-striped-background;

      .ant-table-cell-fix-left,
      .ant-table-cell-fix-right,
      td.ant-table-column-sort {
        background: @bixi-table-striped-background;
      }

      &.ant-table-row:hover > td,
      > td.ant-table-cell-row-hover {
        background: @table-row-hover-bg;
      }

      &.ant-table-row-selected {
        > td {
          background: @table-selected-row-bg;
          border-color: @table-selected-row-border-color;
        }

        &:hover {
          > td {
            background: @table-selected-row-hover-bg;
          }
        }
      }
    }
  }
}
