-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathtree-view.less
93 lines (82 loc) · 1.66 KB
/
tree-view.less
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
/*
* Copyright (C) 2016-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2016-present Sven Greb <[email protected]>
*
* Project: Nord Atom UI
* Repository: https://github.com/arcticicestudio/nord-atom-ui
* License: MIT
*/
.tree-view {
font-size: @font-size;
background: @tree-view-background-color;
padding-top: 0;
.project-root {
padding-bottom: @component-padding / 2;
&:before {
height: @tab-height;
background-clip: padding-box;
}
& > .header {
& .name {
.text(normal);
font-weight: 600;
color: @text-color-highlight;
height: @tab-height + 1px;
line-height: @tab-height;
}
&:before {
color: @text-color-highlight;
transition: all @transition-time ease;
opacity: 0;
}
&:hover {
&:before {
opacity: 1;
}
}
}
}
.project-root.project-root.collapsed {
& > .header {
&:before {
opacity: 0;
}
&:hover {
&:before {
opacity: 1;
}
}
}
}
}
.list-group .icon,
.list-tree .icon {
display: inline-block;
height: inherit;
&::before {
top: initial;
line-height: inherit;
height: inherit;
vertical-align: top;
}
}
.tree-view-resizer {
.tree-view-resize-handle {
width: 8px;
}
}
@media (max-width: 1280px), (max-height: 800px) {
.tree-view {
.project-root.project-root {
&:before {
height: @tab-height * 0.8;
}
& > .header {
& .name {
height: @tab-height * 0.8 + 1px;
line-height: @tab-height * 0.8;
}
}
}
}
}