|
1 | 1 | @import 'mo/style/common';
|
| 2 | +$tree: 'tree'; |
2 | 3 |
|
3 |
| -.#{$prefix}-tree { |
| 4 | +#{prefix($tree)} { |
4 | 5 | font-size: 13px;
|
| 6 | + |
5 | 7 | .rc-tree {
|
6 |
| - margin: 0; |
7 | 8 | border: 1px solid transparent;
|
| 9 | + margin: 0; |
8 | 10 | }
|
9 |
| - .rc-tree-focused:not(.rc-tree-active-focused) { |
10 |
| - border-color: cyan; |
11 |
| - } |
| 11 | + |
12 | 12 | .rc-tree .rc-tree-treenode {
|
13 |
| - margin: 0; |
14 |
| - padding: 0 0 0 8px; |
15 |
| - line-height: 22px; |
| 13 | + cursor: pointer; |
16 | 14 | height: 22px;
|
17 |
| - white-space: nowrap; |
| 15 | + line-height: 22px; |
18 | 16 | list-style: none;
|
| 17 | + margin: 0; |
19 | 18 | outline: 0;
|
20 |
| - cursor: pointer; |
21 |
| - &:hover { |
22 |
| - background-color: #333333; |
23 |
| - } |
| 19 | + padding: 0 0 0 8px; |
| 20 | + white-space: nowrap; |
24 | 21 | }
|
| 22 | + |
25 | 23 | .rc-tree .rc-tree-treenode .draggable {
|
26 |
| - color: inherit; |
27 |
| - -moz-user-select: none; |
28 |
| - -khtml-user-select: none; |
29 |
| - -webkit-user-select: none; |
30 |
| - user-select: none; |
31 | 24 | /* Required to make elements draggable in old WebKit */
|
32 | 25 | -khtml-user-drag: element;
|
33 | 26 | -webkit-user-drag: element;
|
| 27 | + user-select: none; |
| 28 | + user-select: none; |
| 29 | + user-select: none; |
| 30 | + user-select: none; |
34 | 31 | }
|
| 32 | + |
35 | 33 | .rc-tree .rc-tree-treenode.drag-over > .draggable {
|
36 |
| - color: inherit; |
37 |
| - background-color: #316ac5; |
38 |
| - border: 1px #316ac5 solid; |
39 | 34 | opacity: 0.8;
|
40 | 35 | }
|
41 |
| - .rc-tree .rc-tree-treenode.drag-over-gap-top > .draggable { |
42 |
| - border-top: 2px blue solid; |
43 |
| - } |
44 |
| - .rc-tree .rc-tree-treenode.drag-over-gap-bottom > .draggable { |
45 |
| - border-bottom: 2px blue solid; |
46 |
| - } |
| 36 | + |
47 | 37 | .rc-tree .rc-tree-treenode.filter-node > .rc-tree-node-content-wrapper {
|
48 | 38 | color: #a60000 !important;
|
49 | 39 | font-weight: bold !important;
|
50 | 40 | }
|
| 41 | + |
51 | 42 | .rc-tree .rc-tree-treenode ul {
|
52 | 43 | margin: 0;
|
53 | 44 | padding: 0 0 0 18px;
|
54 | 45 | }
|
| 46 | + |
55 | 47 | .rc-tree .rc-tree-treenode .rc-tree-node-content-wrapper {
|
| 48 | + cursor: pointer; |
56 | 49 | display: inline-block;
|
57 | 50 | height: 22px;
|
58 | 51 | margin: 0;
|
59 | 52 | text-decoration: none;
|
60 | 53 | vertical-align: top;
|
61 |
| - cursor: pointer; |
62 | 54 | }
|
| 55 | + |
63 | 56 | .rc-tree .rc-tree-treenode span.rc-tree-switcher,
|
64 | 57 | .rc-tree .rc-tree-treenode span.rc-tree-checkbox {
|
65 |
| - display: inline-block; |
66 |
| - width: 16px; |
67 |
| - height: 16px; |
68 |
| - margin-right: 2px; |
69 |
| - line-height: 16px; |
70 |
| - vertical-align: middle; |
| 58 | + background-attachment: scroll; |
71 | 59 | background-color: transparent;
|
72 | 60 | background-repeat: no-repeat;
|
73 |
| - background-attachment: scroll; |
74 | 61 | border: 0 none;
|
75 |
| - outline: none; |
76 | 62 | cursor: pointer;
|
| 63 | + display: inline-block; |
| 64 | + height: 16px; |
| 65 | + line-height: 16px; |
| 66 | + margin-right: 2px; |
| 67 | + outline: none; |
| 68 | + vertical-align: middle; |
| 69 | + width: 16px; |
77 | 70 | }
|
| 71 | + |
78 | 72 | .rc-tree .rc-tree-treenode span.rc-tree-switcher.rc-tree-icon__customize,
|
79 | 73 | .rc-tree .rc-tree-treenode span.rc-tree-checkbox.rc-tree-icon__customize,
|
80 | 74 | .rc-tree .rc-tree-treenode span.rc-tree-iconEle.rc-tree-icon__customize {
|
81 | 75 | background-image: none;
|
| 76 | + |
82 | 77 | .codicon {
|
83 | 78 | margin-top: 4px;
|
84 | 79 | transform: scale(0.8);
|
85 | 80 | }
|
86 | 81 | }
|
| 82 | + |
87 | 83 | .rc-tree .rc-tree-treenode span.rc-tree-switcher.rc-tree-switcher-noop {
|
88 | 84 | cursor: auto;
|
89 | 85 | display: none;
|
90 | 86 | }
|
| 87 | + |
91 | 88 | .rc-tree .rc-tree-treenode span.rc-tree-switcher.rc-tree-switcher_open {
|
92 |
| - transform: rotate(90deg); |
93 | 89 | margin-top: -2px;
|
| 90 | + transform: rotate(90deg); |
94 | 91 | }
|
95 |
| - .rc-tree .rc-tree-treenode span.rc-tree-switcher.rc-tree-switcher_close { |
96 |
| - } |
| 92 | + |
97 | 93 | .rc-tree:not(.rc-tree-show-line) .rc-tree-treenode .rc-tree-switcher-noop {
|
98 | 94 | background: none;
|
99 | 95 | }
|
| 96 | + |
100 | 97 | .rc-tree-child-tree {
|
101 | 98 | display: none;
|
102 | 99 | }
|
| 100 | + |
103 | 101 | .rc-tree-child-tree-open {
|
104 | 102 | display: block;
|
105 | 103 | }
|
| 104 | + |
106 | 105 | .rc-tree-treenode-disabled > span:not(.rc-tree-switcher),
|
107 | 106 | .rc-tree-treenode-disabled > a,
|
108 | 107 | .rc-tree-treenode-disabled > a span {
|
109 | 108 | color: #767676;
|
110 | 109 | cursor: not-allowed;
|
111 | 110 | }
|
112 |
| - .rc-tree-treenode-active { |
113 |
| - background: rgba(0, 0, 0, 0.1); |
114 |
| - } |
| 111 | + |
115 | 112 | .rc-tree-icon__open {
|
| 113 | + background-position: -110px -16px; |
116 | 114 | margin-right: 2px;
|
117 | 115 | vertical-align: top;
|
118 |
| - background-position: -110px -16px; |
119 | 116 | }
|
| 117 | + |
120 | 118 | .rc-tree-icon__close {
|
121 | 119 | margin-right: 2px;
|
122 | 120 | vertical-align: top;
|
123 | 121 | }
|
| 122 | + |
124 | 123 | .rc-tree-icon__docu {
|
125 | 124 | margin-right: 2px;
|
126 | 125 | vertical-align: top;
|
127 | 126 | }
|
| 127 | + |
128 | 128 | .rc-tree-icon__customize {
|
129 | 129 | margin-right: 2px;
|
130 | 130 | vertical-align: top;
|
131 | 131 | }
|
| 132 | + |
132 | 133 | .rc-tree-indent-unit {
|
133 |
| - width: 0; |
134 | 134 | display: inline-block;
|
135 | 135 | padding-left: 7px;
|
| 136 | + width: 0; |
136 | 137 | }
|
137 | 138 | }
|
0 commit comments