index.less 1.37 KB
Newer Older
邓晓峰's avatar
邓晓峰 committed
1 2
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
涂茜's avatar
涂茜 committed
3 4 5
@ec-device-tree-prefix-cls: ~'@{ant-prefix}-ec-device-tree';

.@{ec-device-tree-prefix-cls} {
李纪文's avatar
李纪文 committed
6 7 8
  display: flex;
  flex-direction: column;
  width: 100%;
涂茜's avatar
涂茜 committed
9
  height: 100%;
李纪文's avatar
李纪文 committed
10
  padding: 5px;
涂茜's avatar
涂茜 committed
11

李纪文's avatar
李纪文 committed
12 13
  &-divider {
    margin: 6px 0 12px 0;
涂茜's avatar
涂茜 committed
14 15
  }

李纪文's avatar
李纪文 committed
16 17
  .@{ant-prefix}-tree-checkbox {
    margin: 7px 2px 0 0;
涂茜's avatar
涂茜 committed
18
  }
李纪文's avatar
李纪文 committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72

  .@{ant-prefix}-tree-title {
    white-space: nowrap;
  }

  .@{ant-prefix}-tree-treenode {
    width: 100%;
  }

  .@{ant-prefix}-tree-switcher {
    line-height: 30px;
  }

  .@{ant-prefix}-tree-switcher-noop {
    width: 14px;
  }

  .@{ant-prefix}-tree-node-content-wrapper {
    flex: 1;
    min-height: 30px;
    overflow: hidden;
    line-height: 30px;
    text-overflow: ellipsis;
    border-radius: 3px;
  }

  .@{ant-prefix}-tree .@{ant-prefix}-tree-node-content-wrapper.@{ant-prefix}-tree-node-selected {
    color: #1890ff;
    background-color: #eaf1fe;
  }

  &-content {
    flex: 1;
    overflow-y: scroll;
  }

  .@{ant-prefix}-spin-nested-loading {
    height: 100%;
  }

  &-pagination {
    margin: 10px auto;
  }

  &-total.@{ant-prefix}-divider-horizontal.@{ant-prefix}-divider-with-text {
    margin: 10px auto;
    color: #a4b1c7;
  }

  .@{ant-prefix}-divider-horizontal.@{ant-prefix}-divider-with-text::before,
  .@{ant-prefix}-divider-horizontal.@{ant-prefix}-divider-with-text::after {
    top: 0;
  }
}