codecheck
112 строк · 2.4 Кб
1@use 'sass:math';
2
3// core
4.p-steps {
5position: relative;
6}
7
8.p-steps .p-steps-list {
9padding: 0;
10margin: 0;
11list-style-type: none;
12display: flex;
13}
14
15.p-steps-item {
16position: relative;
17display: flex;
18justify-content: center;
19flex: 1 1 auto;
20overflow: hidden;
21}
22
23.p-steps-item .p-menuitem-link {
24display: inline-flex;
25flex-direction: column;
26align-items: center;
27overflow: hidden;
28text-decoration: none;
29cursor: pointer;
30}
31
32.p-steps.p-steps-readonly .p-steps-item {
33cursor: auto;
34}
35
36.p-steps-item.p-steps-current .p-menuitem-link {
37cursor: default;
38}
39
40.p-steps-title {
41white-space: nowrap;
42overflow: hidden;
43text-overflow: ellipsis;
44max-width: 100%;
45}
46
47.p-steps-number {
48display: flex;
49align-items: center;
50justify-content: center;
51}
52
53.p-steps-title {
54display: block;
55}
56
57// theme
58.p-steps {
59.p-steps-item {
60.p-menuitem-link {
61background: transparent;
62transition: $listItemTransition;
63border-radius: $borderRadius;
64background: $stepsItemBg;
65outline-color: transparent;
66
67.p-steps-number {
68color: $stepsItemNumberColor;
69border: $stepsItemBorder;
70background: $stepsItemBg;
71min-width: $stepsItemNumberWidth;
72height: $stepsItemNumberHeight;
73line-height: $stepsItemNumberHeight;
74font-size: $stepsItemNumberFontSize;
75z-index: 1;
76border-radius: $stepsItemNumberBorderRadius;
77}
78
79.p-steps-title {
80margin-top: $inlineSpacing;
81color: $stepsItemTextColor;
82}
83
84&:not(.p-disabled):focus-visible {
85@include focused();
86}
87}
88
89&.p-highlight {
90.p-steps-number {
91background: $highlightBg;
92color: $highlightTextColor;
93}
94
95.p-steps-title {
96font-weight: $stepsItemActiveFontWeight;
97color: $textColor;
98}
99}
100
101&:before {
102content:' ';
103border-top: $divider;
104width: 100%;
105top: 50%;
106left: 0;
107display: block;
108position: absolute;
109margin-top: math.div(-1 * $stepsItemNumberHeight, 2);
110}
111}
112}
113