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 6 7 8 9 10 11
@ec-device-tree-prefix-cls: ~'@{ant-prefix}-ec-device-tree';

.@{ec-device-tree-prefix-cls} {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 5px;

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

邓晓峰's avatar
邓晓峰 committed
16
  .@{ant-prefix}-tree-checkbox {
涂茜's avatar
涂茜 committed
17
    margin: 7px 2px 0 0;
涂茜's avatar
涂茜 committed
18 19
  }

邓晓峰's avatar
邓晓峰 committed
20
  .@{ant-prefix}-tree-title {
涂茜's avatar
涂茜 committed
21 22 23
    white-space: nowrap;
  }

邓晓峰's avatar
邓晓峰 committed
24
  .@{ant-prefix}-tree-treenode {
涂茜's avatar
涂茜 committed
25 26 27
    width: 100%;
  }

邓晓峰's avatar
邓晓峰 committed
28
  .@{ant-prefix}-tree-switcher {
涂茜's avatar
涂茜 committed
29 30 31
    line-height: 30px;
  }

邓晓峰's avatar
邓晓峰 committed
32
  .@{ant-prefix}-tree-switcher-noop {
涂茜's avatar
涂茜 committed
33
    width: 14px;
涂茜's avatar
涂茜 committed
34 35
  }

邓晓峰's avatar
邓晓峰 committed
36
  .@{ant-prefix}-tree-node-content-wrapper {
涂茜's avatar
涂茜 committed
37
    flex: 1;
涂茜's avatar
涂茜 committed
38
    min-height: 30px;
涂茜's avatar
涂茜 committed
39
    overflow: hidden;
涂茜's avatar
涂茜 committed
40
    line-height: 30px;
涂茜's avatar
涂茜 committed
41
    text-overflow: ellipsis;
涂茜's avatar
涂茜 committed
42 43 44
    border-radius: 3px;
  }

邓晓峰's avatar
邓晓峰 committed
45
  .@{ant-prefix}-tree .@{ant-prefix}-tree-node-content-wrapper.@{ant-prefix}-tree-node-selected {
涂茜's avatar
涂茜 committed
46 47
    color: #1890ff;
    background-color: #eaf1fe;
涂茜's avatar
涂茜 committed
48 49
  }

涂茜's avatar
涂茜 committed
50 51 52 53
  &-content {
    flex: 1;
    overflow-y: scroll;
  }
涂茜's avatar
涂茜 committed
54

邓晓峰's avatar
邓晓峰 committed
55
  .@{ant-prefix}-spin-nested-loading {
涂茜's avatar
涂茜 committed
56 57 58
    height: 100%;
  }

涂茜's avatar
涂茜 committed
59 60 61
  &-pagination {
    margin: 10px auto;
  }
涂茜's avatar
涂茜 committed
62

邓晓峰's avatar
邓晓峰 committed
63
  &-total.@{ant-prefix}-divider-horizontal.@{ant-prefix}-divider-with-text {
涂茜's avatar
涂茜 committed
64 65 66 67
    margin: 10px auto;
    color: #a4b1c7;
  }

邓晓峰's avatar
邓晓峰 committed
68 69
  .@{ant-prefix}-divider-horizontal.@{ant-prefix}-divider-with-text::before,
  .@{ant-prefix}-divider-horizontal.@{ant-prefix}-divider-with-text::after {
涂茜's avatar
涂茜 committed
70 71
    top: 0;
  }
涂茜's avatar
涂茜 committed
72
}