index.less
835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
.category-tree {
flex: 1 1 auto;
margin: 16px;
padding: 32px;
max-width: 100%;
background: #ffffff;
border-radius: 2px;
&-search {
width: 50%;
margin-bottom: 20px;
}
.ant-tree-treenode-switcher-close:hover {
background-color: #f4f4f5 !important;
border-radius: 4px !important;
}
.ant-tree-node-content-wrapper {
width: 100%;
}
.ant-tree-title {
display: flex;
}
.tree-node {
align-items: center;
justify-content: space-between;
width: 100%;
.but_operation {
display: none; // 默认隐藏按钮
}
}
.tree-node:hover {
&:hover .but_operation {
display: inline-block; // 悬停时显示按钮
.but_type {
margin-left: 32px;
color: red;
font-size: 14px;
}
}
}
.ant-tree {
font-size: 15px;
}
}