forked from unisonweb/codebase-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodebase-tree.css
More file actions
115 lines (94 loc) · 2.44 KB
/
Copy pathcodebase-tree.css
File metadata and controls
115 lines (94 loc) · 2.44 KB
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
/* -- Codebase Tree -------------------------------------------------------- */
.codebase-tree .namespace-tree {
margin-left: -0.5rem;
}
.codebase-tree .namespace-tree .node {
display: flex;
user-select: none;
align-items: center;
border-radius: var(--border-radius-base);
padding-left: 0.5rem;
margin-bottom: 0.125rem;
padding-right: 0.1875rem;
height: 1.875rem;
}
.codebase-tree .error {
padding-left: 0.5rem;
display: flex;
flex-direction: row;
align-items: center;
margin: 0.5rem 0;
color: var(--u-color_critical_text);
}
.codebase-tree .error .icon {
font-size: 1rem;
margin-right: 0.25rem;
color: var(--u-color_critical_icon);
}
.codebase-tree .loading {
padding-left: 0.5rem;
}
.codebase-tree .loading .loading-placeholder {
width: 8rem;
}
.codebase-tree .namespace-content .loading {
padding-left: 0.875rem;
}
.codebase-tree .namespace-content .loading .loading-placeholder {
width: 6rem;
}
.codebase-tree .namespace-tree .node:hover {
background: var(--color-sidebar-focus-bg);
text-decoration: none;
}
.codebase-tree .namespace-tree .node > .icon {
font-size: 0.875rem;
text-align: center;
margin-right: 0.5rem;
transition: transform 0.1s ease-out;
flex-shrink: 0;
}
.codebase-tree .namespace-tree .node > .icon.expanded {
transform: rotate(90deg);
}
.codebase-tree .namespace-tree .node > .icon.caret-right {
color: var(--color-sidebar-subtle-fg);
}
.codebase-tree .namespace-tree .node:hover > .icon.caret-right {
color: var(--color-sidebar-focus-fg);
}
.codebase-tree .namespace-tree .node > label {
color: var(--color-sidebar-fg);
transition: all 0.2s;
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.875;
}
.codebase-tree .namespace-tree .node > .tooltip-trigger {
margin-left: auto;
opacity: 0;
}
.codebase-tree .namespace-tree .node:hover > .tooltip-trigger {
opacity: 1;
}
.codebase-tree .namespace-tree .node:hover .tooltip {
right: -0.3rem;
min-width: calc(var(--main-sidebar-width) - 1.5rem);
}
.codebase-tree .namespace-tree .node .definition-category {
font-family: var(--font-monospace);
color: var(--color-sidebar-subtle-fg);
margin-left: 0.375rem;
font-size: 0.75rem;
margin-top: 0.25rem;
}
.codebase-tree .namespace-tree .node:hover label {
color: var(--color-sidebar-focus-fg);
}
.codebase-tree .namespace-tree .node.open label {
font-weight: bold;
}
.codebase-tree .namespace-tree .namespace-content {
margin-left: 1rem;
}