codecheck
199 строк · 4.0 Кб
1// core
2.p-cascadeselect {
3display: inline-flex;
4cursor: pointer;
5user-select: none;
6}
7
8.p-cascadeselect-trigger {
9display: flex;
10align-items: center;
11justify-content: center;
12flex-shrink: 0;
13}
14
15.p-cascadeselect-label {
16display: block;
17white-space: nowrap;
18overflow: hidden;
19flex: 1 1 auto;
20width: 1%;
21text-overflow: ellipsis;
22cursor: pointer;
23}
24
25.p-cascadeselect-label-empty {
26overflow: hidden;
27visibility: hidden;
28}
29
30.p-cascadeselect .p-cascadeselect-panel {
31min-width: 100%;
32}
33
34.p-cascadeselect-item {
35cursor: pointer;
36font-weight: normal;
37white-space: nowrap;
38}
39
40.p-cascadeselect-item-content {
41display: flex;
42align-items: center;
43overflow: hidden;
44position: relative;
45}
46
47.p-cascadeselect-group-icon {
48margin-left: auto;
49}
50
51.p-cascadeselect-items {
52margin: 0;
53padding: 0;
54list-style-type: none;
55min-width: 100%;
56}
57
58.p-fluid .p-cascadeselect {
59display: flex;
60}
61
62.p-fluid .p-cascadeselect .p-cascadeselect-label {
63width: 1%;
64}
65
66.p-cascadeselect-sublist {
67position: absolute;
68min-width: 100%;
69z-index: 1;
70display: none;
71}
72
73.p-cascadeselect-item-active {
74overflow: visible;
75}
76
77.p-cascadeselect-item-active > .p-cascadeselect-sublist {
78display: block;
79left: 100%;
80top: 0;
81}
82
83.p-cascadeselect-enter-from,
84.p-cascadeselect-leave-active {
85opacity: 0;
86}
87
88.p-cascadeselect-enter-active {
89transition: opacity 150ms;
90}
91
92// theme
93.p-cascadeselect {
94background: $inputBg;
95border: $inputBorder;
96transition: $formElementTransition;
97border-radius: $borderRadius;
98outline-color: transparent;
99
100&:not(.p-disabled):hover {
101border-color: $inputHoverBorderColor;
102}
103
104&:not(.p-disabled).p-focus {
105@include focused-input();
106}
107
108&.p-variant-filled {
109background-color: $inputFilledBg;
110
111&:enabled:hover {
112background-color: $inputFilledHoverBg;
113}
114
115&:enabled:focus {
116background-color: $inputFilledFocusBg;
117}
118}
119
120.p-cascadeselect-label {
121background: transparent;
122border: 0 none;
123padding: $inputPadding;
124
125&.p-placeholder {
126color: $inputPlaceholderTextColor;
127}
128
129&:enabled:focus {
130outline: 0 none;
131box-shadow: none;
132}
133}
134
135.p-cascadeselect-trigger {
136background: transparent;
137color: $inputIconColor;
138width: $inputGroupAddOnMinWidth;
139border-top-right-radius: $borderRadius;
140border-bottom-right-radius: $borderRadius;
141}
142
143&.p-invalid.p-component {
144@include invalid-input();
145}
146}
147
148.p-cascadeselect-panel {
149background: $inputOverlayBg;
150color: $inputListTextColor;
151border: $inputOverlayBorder;
152border-radius: $borderRadius;
153box-shadow: $inputOverlayShadow;
154
155.p-cascadeselect-items {
156padding: $inputListPadding;
157
158.p-cascadeselect-item {
159margin: $inputListItemMargin;
160border: $inputListItemBorder;
161color: $inputListItemTextColor;
162background: $inputListItemBg;
163transition: $listItemTransition;
164border-radius: $inputListItemBorderRadius;
165
166&:first-child {
167margin-top: 0;
168}
169
170&:last-child {
171margin-bottom: 0;
172}
173
174&.p-highlight {
175color: $highlightTextColor;
176background: $highlightBg;
177
178&.p-focus {
179background: $highlightFocusBg;
180}
181}
182
183&:not(.p-highlight):not(.p-disabled) {
184&.p-focus {
185color: $inputListItemTextHoverColor;
186background: $inputListItemHoverBg;
187}
188}
189
190.p-cascadeselect-item-content {
191padding: $inputListItemPadding;
192}
193
194.p-cascadeselect-group-icon {
195font-size: $menuitemSubmenuIconFontSize;
196}
197}
198}
199}
200