-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtreeview.css
100 lines (91 loc) · 1.86 KB
/
treeview.css
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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
.treeview{
height: inherit;
}
.treeview-container{
height: calc(100% - 20px);
border: thin lightgray;
border-style: solid;
overflow-y: scroll;
overflow-x: auto;
width:100%;
}
.treeview-title{
font-weight: bold;
}
.treeview-node{
min-height: 20px;
padding-left: 10px;
margin-right: 0px;
}
.treeview-content,
.treeview-value{
padding: 2px;
-webkit-user-select: none; /* Chrome/Safari */
}
.treeview-value{
float: right;
padding: 4px;
padding-left: 2px;
min-width: 50px;
min-height: 18px;
text-align: left;
}
.treeview-content{
padding: 4px;
display: flex;
}
.treeview-simple:hover {
background-color: rgba(33, 33, 33, 0.05);
}
.treeview-simple{
min-height: 20px;
padding-left: 10px;
margin-right: 0px;
}
.treeview-node .treeview-selected,
.treeview-container .treeview-selected{
background-color: rgba(255, 165, 0, 0.18);
}
.treeview-node .treeview-active,
.treeview-container .treeview-active{
background-color: rgba(255, 165, 0, 0.38);
}
.treeview-editing.treeview-selected{
background-color: rgba(255, 0, 0, 0.5);
}
.treeview-simple > .treeview-content::before{
content:" ";
width: 5px;
height: 5px;
margin-top: 5px;
margin-right: 8px;
background-color: #C5C6C8;
}
:not(.treeview-simple) > .treeview-content::before{
content:" ";
width: 0;
height: 0;
margin-top: 7px;
margin-right: 3px;
margin-left: 0px;
margin-bottom:3px;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid #C5C6C8;
}
:not(.treeview-simple) > .treeview-content.treeview-colapse-sibling::before{
content:" ";
width: 0;
height: 0;
margin-top: 3px;
margin-right: 0px;
margin-left: 0px;
margin-bottom:3px;
padding-left: 3px;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 5px solid #C5C6C8;
}
.treeview-colapse-sibling ~ :not(.treeview-content){
display: none;
}