codecheck
201 строка · 4.6 Кб
1@use 'sass:math';
2
3//core
4.p-stepper .p-stepper-nav {
5position: relative;
6display: flex;
7justify-content: space-between;
8align-items: center;
9margin: 0;
10padding: 0;
11list-style-type: none;
12overflow-x: auto;
13}
14
15.p-stepper-vertical .p-stepper-nav {
16flex-direction: column;
17}
18
19.p-stepper-header {
20position: relative;
21display: flex;
22flex: 1 1 auto;
23align-items: center;
24
25&:last-of-type {
26flex: initial;
27}
28}
29
30.p-stepper-header .p-stepper-action {
31border: 0 none;
32display: inline-flex;
33align-items: center;
34text-decoration: none;
35cursor: pointer;
36
37&:focus-visible {
38@include focused();
39}
40}
41
42.p-stepper.p-stepper-readonly .p-stepper-header {
43cursor: auto;
44}
45
46.p-stepper-header.p-highlight .p-stepper-action {
47cursor: default;
48}
49
50.p-stepper-title {
51display: block;
52white-space: nowrap;
53overflow: hidden;
54text-overflow: ellipsis;
55max-width: 100%;
56}
57
58.p-stepper-number {
59display: flex;
60align-items: center;
61justify-content: center;
62}
63
64.p-stepper-separator {
65flex: 1 1 0;
66}
67
68//theme
69.p-stepper {
70.p-stepper-nav {
71display: flex;
72justify-content: space-between;
73margin: 0;
74padding: 0;
75list-style-type: none;
76}
77
78.p-stepper-header {
79padding: $inlineSpacing;
80
81.p-stepper-action {
82transition: $listItemTransition;
83border-radius: $borderRadius;
84background: $stepsItemBg;
85outline-color: transparent;
86
87.p-stepper-number {
88color: $stepsItemNumberColor;
89border: $stepsItemBorder;
90border-width: 2px;
91background: $stepsItemBg;
92min-width: $stepsItemNumberWidth;
93height: $stepsItemNumberHeight;
94line-height: $stepsItemNumberHeight;
95font-size: $stepsItemNumberFontSize;
96border-radius: $stepsItemNumberBorderRadius;
97transition: $actionIconTransition;
98}
99
100.p-stepper-title {
101margin-left: $inlineSpacing;
102color: $stepsItemTextColor;
103font-weight: $stepsItemActiveFontWeight;
104transition: $actionIconTransition;
105}
106
107&:not(.p-disabled):focus-visible {
108@include focused();
109}
110}
111
112&.p-highlight {
113.p-stepper-number {
114background: $highlightBg;
115color: $highlightTextColor;
116}
117
118.p-stepper-title {
119color: $textColor;
120}
121}
122
123&:not(.p-disabled):focus-visible {
124@include focused();
125}
126
127&:has(~ .p-highlight) {
128@if variable-exists(primaryColor) {
129.p-stepper-separator {
130background-color: $primaryColor;
131}
132}
133}
134}
135
136.p-stepper-panels {
137background: $tabviewContentBg;
138padding: $tabviewContentPadding;
139color: $tabviewContentTextColor;
140}
141
142.p-stepper-separator {
143background-color: $timelineEventColor;
144width: 100%;
145height: 2px;
146margin-inline-start: calc($inlineSpacing * 2);
147transition: $listItemTransition;
148}
149
150&.p-stepper-vertical {
151display: flex;
152flex-direction: column;
153
154.p-stepper-toggleable-content {
155display: flex;
156flex: 1 1 auto;
157background: $tabviewContentBg;
158color: $tabviewContentTextColor;
159}
160
161.p-stepper-panel {
162display: flex;
163flex-direction: column;
164flex: initial;
165
166&.p-stepper-panel-active {
167flex: 1 1 auto;
168}
169
170.p-stepper-header {
171flex: initial;
172}
173
174.p-stepper-content {
175padding-left: calc($inlineSpacing * 2);
176}
177
178.p-stepper-separator {
179flex: 0 0 auto;
180width: 2px;
181min-height: 28px;
182height: auto;
183margin-inline-start: calc($inlineSpacing * 7 / 2 + 2px);
184}
185
186&:has(~ .p-stepper-panel-active) {
187@if variable-exists(primaryColor) {
188.p-stepper-separator {
189background-color: $primaryColor;
190}
191}
192}
193
194&:last-of-type {
195.p-stepper-content {
196padding-left: calc($inlineSpacing * 6);
197}
198}
199}
200}
201}
202