codecheck
139 строк · 3.2 Кб
1// core
2.p-listbox-list-wrapper {
3overflow: auto;
4}
5
6.p-listbox-list {
7list-style-type: none;
8margin: 0;
9padding: 0;
10}
11
12.p-listbox-item {
13cursor: pointer;
14position: relative;
15overflow: hidden;
16}
17
18.p-listbox-item-group {
19cursor: auto;
20}
21
22.p-listbox-filter-container {
23position: relative;
24}
25
26.p-listbox-filter-icon {
27position: absolute;
28top: 50%;
29margin-top: -0.5rem;
30}
31
32.p-listbox-filter {
33width: 100%;
34}
35
36// theme
37.p-listbox {
38background: $inputListBg;
39color: $inputListTextColor;
40border: $inputListBorder;
41border-radius: $borderRadius;
42transition: $formElementTransition;
43outline-color: transparent;
44
45.p-listbox-header {
46padding: $inputListHeaderPadding;
47border-bottom: $inputListHeaderBorder;
48color: $inputListHeaderTextColor;
49background: $inputListHeaderBg;
50margin: $inputListHeaderMargin;
51border-top-right-radius: $borderRadius;
52border-top-left-radius: $borderRadius;
53
54.p-listbox-filter {
55padding-right: nth($inputPadding, 2) + $primeIconFontSize;
56}
57
58.p-listbox-filter-icon {
59right: nth($inputPadding, 2);
60color: $inputIconColor;
61}
62}
63
64.p-listbox-list {
65padding: $inputListPadding;
66outline: 0 none;
67
68.p-listbox-item {
69margin: $inputListItemMargin;
70padding: $inputListItemPadding;
71border: $inputListItemBorder;
72color: $inputListItemTextColor;
73transition: $listItemTransition;
74border-radius: $inputListItemBorderRadius;
75
76&:first-child {
77margin-top: 0;
78}
79
80&:last-child {
81margin-bottom: 0;
82}
83
84&.p-highlight {
85color: $highlightTextColor;
86background: $highlightBg;
87}
88}
89
90.p-listbox-item-group {
91margin: $submenuHeaderMargin;
92padding: $submenuHeaderPadding;
93color: $submenuHeaderTextColor;
94background: $submenuHeaderBg;
95font-weight: $submenuHeaderFontWeight;
96}
97
98.p-listbox-empty-message {
99padding: $inputListItemPadding;
100color: $inputListItemTextColor;
101background: $inputListItemBg;
102}
103}
104
105&:not(.p-disabled) {
106.p-listbox-item {
107&.p-highlight {
108&.p-focus {
109background: $highlightFocusBg;
110}
111}
112
113&:not(.p-highlight):not(.p-disabled) {
114&.p-focus {
115color: $inputListItemTextHoverColor;
116background: $inputListItemHoverBg;
117}
118
119&:hover {
120color: $inputListItemTextHoverColor;
121background: $inputListItemHoverBg;
122
123&.p-focus {
124color: $inputListItemTextHoverColor;
125background: $inputListItemHoverBg;
126}
127}
128}
129}
130}
131
132&.p-focus {
133@include focused-input();
134}
135
136&.p-invalid {
137@include invalid-input();
138}
139}