codecheck
174 строки · 3.6 Кб
1// core
2.p-tree-container {
3margin: 0;
4padding: 0;
5list-style-type: none;
6overflow: auto;
7}
8
9.p-treenode-children {
10margin: 0;
11padding: 0;
12list-style-type: none;
13}
14
15.p-tree-wrapper {
16overflow: auto;
17}
18
19.p-treenode-selectable {
20cursor: pointer;
21user-select: none;
22}
23
24.p-tree-toggler {
25cursor: pointer;
26user-select: none;
27display: inline-flex;
28align-items: center;
29justify-content: center;
30overflow: hidden;
31position: relative;
32flex-shrink: 0;
33}
34
35.p-treenode-leaf > .p-treenode-content .p-tree-toggler {
36visibility: hidden;
37}
38
39.p-treenode-content {
40display: flex;
41align-items: center;
42}
43
44.p-tree-filter {
45width: 100%;
46}
47
48.p-tree-filter-container {
49position: relative;
50display: block;
51width: 100%;
52}
53
54.p-tree-filter-icon {
55position: absolute;
56top: 50%;
57margin-top: -0.5rem;
58}
59
60.p-tree-loading {
61position: relative;
62min-height: 4rem;
63}
64
65.p-tree .p-tree-loading-overlay {
66position: absolute;
67z-index: 1;
68display: flex;
69align-items: center;
70justify-content: center;
71}
72
73.p-tree-flex-scrollable {
74display: flex;
75flex: 1;
76height: 100%;
77flex-direction: column;
78}
79
80.p-tree-flex-scrollable .p-tree-wrapper {
81flex: 1;
82}
83
84// theme
85.p-tree {
86border: $panelContentBorder;
87background: $panelContentBg;
88color: $panelContentTextColor;
89padding: $panelContentPadding;
90border-radius: $borderRadius;
91
92.p-tree-container {
93.p-treenode {
94padding: $treeNodePadding;
95outline: 0 none;
96
97&:focus > .p-treenode-content {
98@include focused-listitem();
99}
100
101.p-treenode-content {
102border-radius: $borderRadius;
103transition: $listItemTransition;
104padding: $treeNodeContentPadding;
105
106.p-tree-toggler {
107margin-right: $inlineSpacing;
108@include action-icon();
109}
110
111.p-treenode-icon {
112margin-right: $inlineSpacing;
113color: $treeNodeIconColor;
114}
115
116.p-checkbox {
117margin-right: $inlineSpacing;
118
119&.p-indeterminate {
120.p-checkbox-icon {
121color: $textColor;
122}
123}
124}
125
126&.p-highlight {
127background: $highlightBg;
128color: $highlightTextColor;
129
130.p-tree-toggler,
131.p-treenode-icon {
132color: $highlightTextColor;
133
134&:hover {
135color: $highlightTextColor;
136}
137}
138}
139
140&.p-treenode-selectable:not(.p-highlight):hover {
141background: $inputListItemHoverBg;
142color: $inputListItemTextHoverColor;
143}
144}
145}
146}
147
148.p-tree-filter-container {
149margin-bottom: $inlineSpacing;
150
151.p-tree-filter {
152width: 100%;
153padding-right: nth($inputPadding, 2) + $primeIconFontSize;
154}
155
156.p-tree-filter-icon {
157right: nth($inputPadding, 2);
158color: $inputIconColor;
159}
160}
161
162.p-treenode-children {
163padding: $treeNodeChildrenPadding;
164}
165
166.p-tree-loading-icon {
167font-size: $loadingIconFontSize;
168
169&.p-icon {
170width: $loadingIconFontSize;
171height: $loadingIconFontSize;
172}
173}
174}
175