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

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

邓晓峰's avatar
邓晓峰 committed
12
  .@{ant-prefix}-divider {
涂茜's avatar
涂茜 committed
13
    margin: 6px 0 12px 0;
涂茜's avatar
涂茜 committed
14
  }
涂茜's avatar
涂茜 committed
15

邓晓峰'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 34 35
    width: 14px;
  }

邓晓峰'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
}