index.less 3.15 KB
Newer Older
1
@import (reference) '../../../../node_modules/antd/es/style/themes/default';
2 3 4
@basic-table-prefix-cls: ~'@{ant-prefix}-basic-table';

.@{basic-table-prefix-cls} {
涂茜's avatar
涂茜 committed
5 6
  display: flex;
  flex-direction: column;
7
  height: 100%;
涂茜's avatar
涂茜 committed
8
  overflow: hidden;
9 10 11

  .ant-table-wrapper,
  .ant-spin-nested-loading,
涂茜's avatar
涂茜 committed
12 13 14 15 16 17 18 19
  .ant-spin-container,
  .ant-table,
  .ant-table-container,
  .ant-table-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
20 21
  }

涂茜's avatar
涂茜 committed
22
  .ant-table-tbody > tr,
23
  .ant-table-tbody > tr > td {
涂茜's avatar
涂茜 committed
24
    background: white;
25 26 27 28 29 30 31 32 33 34 35 36 37
  }

  .ant-table-thead > tr > th {
    font-weight: 600;
    background: white;
    border-bottom: 2px solid #dbe7fb;
  }

  .ant-table-thead > tr > th,
  .ant-table-tbody > tr > td,
  .ant-table tfoot > tr > th,
  .ant-table tfoot > tr > td {
    padding: 8px 8px;
涂茜's avatar
涂茜 committed
38 39 40
  }

  .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td {
涂茜's avatar
涂茜 committed
41
    background: white;
42 43
  }

涂茜's avatar
涂茜 committed
44 45
  .ant-table-tbody > tr:nth-child(2n-1),
  .ant-table-tbody > tr:nth-child(2n-1) td {
46 47 48 49 50
    background: #f6f9fe;
  }

  .ant-table-tbody > tr:hover {
    background: #edf2ff;
李纪文's avatar
李纪文 committed
51 52 53
    td {
      background: #edf2ff !important;
    }
54 55
  }

涂茜's avatar
涂茜 committed
56 57 58 59
  .ant-table-tbody > tr > td {
    border-bottom: 1px solid #dbe7fb;
  }

60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
  .ant-table.ant-table-bordered
    > .ant-table-container
    > .ant-table-content
    > table
    > thead
    > tr
    > th,
  .ant-table.ant-table-bordered
    > .ant-table-container
    > .ant-table-header
    > table
    > thead
    > tr
    > th,
  .ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > thead > tr > th,
  .ant-table.ant-table-bordered
    > .ant-table-container
    > .ant-table-content
    > table
    > tbody
    > tr
    > td,
  .ant-table.ant-table-bordered
    > .ant-table-container
    > .ant-table-header
    > table
    > tbody
    > tr
    > td,
  .ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tbody > tr > td,
  .ant-table.ant-table-bordered
    > .ant-table-container
    > .ant-table-content
    > table
    > tfoot
    > tr
    > th,
  .ant-table.ant-table-bordered
    > .ant-table-container
    > .ant-table-header
    > table
    > tfoot
    > tr
    > th,
  .ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tfoot > tr > th,
  .ant-table.ant-table-bordered
    > .ant-table-container
    > .ant-table-content
    > table
    > tfoot
    > tr
    > td,
  .ant-table.ant-table-bordered
    > .ant-table-container
    > .ant-table-header
    > table
    > tfoot
    > tr
    > td,
  .ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tfoot > tr > td {
    border-right: 1px solid #dbe7fb;
  }

  .ant-table.ant-table-bordered > .ant-table-container {
涂茜's avatar
涂茜 committed
124 125 126 127 128 129 130
    border-top: 1px solid #dbe7fb;
    border-left: 0;
  }

  .ant-table-header,
  .ant-table-body {
    border-left: 1px solid #dbe7fb;
131
  }
涂茜's avatar
涂茜 committed
132 133 134 135 136 137 138 139 140

  .ant-table-summary {
    tr td {
      position: sticky;
      bottom: 0;
      background: white;
      border-top: 1px solid #dbe7fb;
    }
  }
141 142 143 144 145 146 147 148 149 150 151 152

  .ant-pagination {
    display: flex;
    flex-wrap: wrap;
    grid-row-gap: 8px;
    justify-content: flex-end;

    .ant-pagination-total-text {
      margin-right: auto;
      margin-left: 8px;
    }
  }
153
}