index.less 2.83 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 51 52
    background: #f6f9fe;
  }

  .ant-table-tbody > tr:hover {
    background: #edf2ff;
  }

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

57 58 59 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 124
  .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 {
    border: 1px solid #dbe7fb;
    border-right: 0;
    border-bottom: 0;
  }
涂茜's avatar
涂茜 committed
125 126 127 128 129 130 131 132 133

  .ant-table-summary {
    tr td {
      position: sticky;
      bottom: 0;
      background: white;
      border-top: 1px solid #dbe7fb;
    }
  }
134
}