-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
Copy pathtree.css
141 lines (120 loc) · 4.03 KB
/
tree.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/********************************************************************************
* Copyright (C) 2017, 2018 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
* with the GNU Classpath Exception which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
********************************************************************************/
.theia-Tree {
overflow: hidden;
font-size: var(--theia-ui-font-size1);
max-height: calc(100% - var(--theia-border-width));
position: relative;
}
.theia-Tree:focus .theia-TreeContainer.empty {
outline-width: 1px;
outline-style: solid;
outline-offset: -1px;
opacity: 1 !important;
outline-color: var(--theia-focusBorder);
}
.theia-Tree:focus,
.theia-TreeContainer .ReactVirtualized__List:focus {
outline: 0;
box-shadow: none;
border: none;
}
.theia-TreeContainer {
height: 100%;
}
.theia-TreeNode {
line-height: var(--theia-content-line-height);
display: flex;
}
.theia-TreeNode:hover {
background: var(--theia-list-hoverBackground);
color: var(--theia-list-hoverForeground);
cursor: pointer;
}
.theia-TreeNodeContent {
display: flex;
align-items: center;
width: calc(100% - var(--theia-scrollbar-rail-width));
}
.theia-ExpansionToggle {
display: flex;
justify-content: center;
padding-left: calc(var(--theia-ui-padding)/2);
padding-right: calc(var(--theia-ui-padding)/2);
min-width: var(--theia-icon-size);
min-height: var(--theia-icon-size);
background-size: var(--theia-icon-size);
background: var(--theia-icon-chevron-right) center center no-repeat;
}
.theia-ExpansionToggle.theia-mod-busy {
background: var(--theia-icon-loading) center center no-repeat;
animation: theia-spin 1.25s linear infinite;
}
.theia-ExpansionToggle:not(.theia-mod-busy):hover {
cursor: pointer;
}
.theia-ExpansionToggle:not(.theia-mod-busy):not(.theia-mod-collapsed) {
transform: rotate(90deg);
}
.theia-Tree:focus .theia-TreeNode.theia-mod-selected,
.theia-Tree .ReactVirtualized__List:focus .theia-TreeNode.theia-mod-selected {
background: var(--theia-list-activeSelectionBackground);
color: var(--theia-list-activeSelectionForeground) !important;
}
.theia-Tree:focus .theia-TreeNode.theia-mod-selected .theia-TreeNodeTail,
.theia-Tree .ReactVirtualized__List:focus .theia-TreeNode.theia-mod-selected .theia-TreeNodeTail,
.theia-Tree:focus .theia-TreeNode.theia-mod-selected .theia-caption-suffix,
.theia-Tree .ReactVirtualized__List:focus .theia-TreeNode.theia-mod-selected .theia-caption-suffix {
color: var(--theia-list-activeSelectionForeground) !important;
}
.theia-Tree .theia-TreeNode.theia-mod-selected {
background: var(--theia-list-inactiveSelectionBackground);
color: var(--theia-list-inactiveSelectionForeground);
}
.theia-TreeNode.theia-mod-not-selectable {
color: var(--theia-descriptionForeground);
}
.theia-TreeNode.theia-mod-not-selectable:hover {
background: none;
cursor: default;
}
.theia-TreeNodeSegment {
flex-grow: 0;
user-select: none;
white-space: nowrap;
}
.theia-TreeNodeSegmentGrow {
flex-grow: 1 !important;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.theia-TreeNodeTail {
min-width: 1rem;
text-align: center;
}
.theia-TreeNodeSegment mark {
background-color: var(--theia-list-filterMatchBackground);
color: var(--theia-list-inactiveSelectionForeground);
}
.theia-tree-source-node-placeholder {
text-align: center;
font-style: italic;
opacity: var(--theia-mod-disabled-opacity);
}
.theia-tree-element-node {
width: 100%
}