codecheck
126 строк · 2.8 Кб
1// core
2.p-picklist {
3display: flex;
4}
5
6.p-picklist-buttons {
7display: flex;
8flex-direction: column;
9justify-content: center;
10}
11
12.p-picklist-list-wrapper {
13flex: 1 1 50%;
14}
15
16.p-picklist-list {
17list-style-type: none;
18margin: 0;
19padding: 0;
20overflow: auto;
21min-height: 12rem;
22max-height: 24rem;
23}
24
25.p-picklist-item {
26cursor: pointer;
27overflow: hidden;
28position: relative;
29}
30
31.p-picklist-item.p-picklist-flip-enter-active.p-picklist-flip-enter-to,
32.p-picklist-item.p-picklist-flip-leave-active.p-picklist-flip-leave-to {
33transition: none;
34}
35
36// theme
37.p-picklist {
38.p-picklist-buttons {
39padding: $panelContentPadding;
40
41.p-button {
42margin-bottom: $inlineSpacing;
43}
44}
45
46.p-picklist-list-wrapper {
47background: $panelContentBg;
48border: $panelContentBorder;
49border-radius: $borderRadius;
50transition: $formElementTransition;
51outline-color: transparent;
52
53&.p-focus {
54@include focused-input();
55}
56}
57
58.p-picklist-header {
59color: $panelHeaderTextColor;
60padding: $panelHeaderPadding;
61font-weight: $panelHeaderFontWeight;
62}
63
64.p-picklist-list {
65color: $panelContentTextColor;
66padding: $inputListPadding;
67outline: 0 none;
68
69&:not(:first-child) {
70border-top: $panelContentBorder;
71}
72
73.p-picklist-item {
74padding: $inputListItemPadding;
75margin: $inputListItemMargin;
76border: $inputListItemBorder;
77color: $inputListItemTextColor;
78background: $inputListItemBg;
79transition: transform $transitionDuration, $listItemTransition;
80
81&:first-child {
82margin-top: 0;
83}
84
85&:last-child {
86margin-bottom: 0;
87}
88
89&:not(.p-highlight):hover {
90background: $inputListItemHoverBg;
91color: $inputListItemTextHoverColor;
92
93&.p-focus {
94color: $inputListItemTextHoverColor;
95background: $inputListItemHoverBg;
96}
97}
98
99&.p-focus {
100color: $inputListItemTextHoverColor;
101background: $inputListItemHoverBg;
102}
103
104&.p-highlight {
105color: $highlightTextColor;
106background: $highlightBg;
107
108&.p-focus {
109background: $highlightFocusBg;
110}
111}
112}
113}
114
115&.p-picklist-striped {
116.p-picklist-list {
117.p-picklist-item:nth-child(even) {
118background: $panelContentEvenRowBg;
119
120&:hover {
121background: $inputListItemHoverBg;
122}
123}
124}
125}
126}