|
6 | 6 | .slds-wizard {
|
7 | 7 | position: relative;
|
8 | 8 |
|
9 |
| - &__list { |
10 |
| - display: flex; |
11 |
| - justify-content: space-between; |
12 |
| - position: relative; |
13 |
| - margin: auto; |
14 |
| - } |
15 |
| - |
16 |
| - &__item { |
17 |
| - flex: 2 0 auto; |
18 |
| - text-align: center; |
19 |
| - width: 0%; // Needed for truncation due to different flex grow on items |
20 |
| - user-select: none; |
21 |
| - |
22 |
| - &:first-child { |
23 |
| - text-align: left; |
24 |
| - flex-grow: 1; |
25 |
| - } |
| 9 | + .slds-is-active { |
26 | 10 |
|
27 |
| - &:last-child { |
28 |
| - text-align: right; |
29 |
| - flex-grow: 1; |
| 11 | + .slds-wizard__marker { |
| 12 | + background: #0076de; // @TODO: Need a token for this |
30 | 13 | }
|
31 | 14 |
|
32 | 15 | a:hover,
|
33 | 16 | a:focus {
|
34 |
| - outline: 0; |
35 |
| - text-decoration: none; |
36 | 17 |
|
37 | 18 | .slds-wizard__marker {
|
38 |
| - background: rgb(216, 221, 230); // @TODO - no matching token |
| 19 | + background: rgb(0, 95, 178); // @TODO: Need a token for this |
39 | 20 | }
|
40 | 21 | }
|
41 | 22 | }
|
| 23 | + } |
42 | 24 |
|
43 |
| - &__link { |
44 |
| - display: block; |
45 |
| - } |
46 |
| - |
47 |
| - &__marker { |
48 |
| - @include square($square-icon-small-boundary); |
49 |
| - border-radius: $border-radius-circle; |
50 |
| - background: $color-background-dark; |
51 |
| - display: inline-block; |
52 |
| - vertical-align: middle; |
53 |
| - z-index: 1; |
54 |
| - position: relative; |
55 |
| - } |
| 25 | + .slds-wizard__list { |
| 26 | + display: flex; |
| 27 | + justify-content: space-between; |
| 28 | + position: relative; |
| 29 | + margin: auto; |
| 30 | + } |
56 | 31 |
|
57 |
| - &__label { |
58 |
| - display: block; |
59 |
| - margin-top: $spacing-small; |
60 |
| - } |
| 32 | + .slds-wizard__item { |
| 33 | + flex: 2 0 auto; |
| 34 | + text-align: center; |
| 35 | + width: 0%; // Needed for truncation due to different flex grow on items |
| 36 | + user-select: none; |
61 | 37 |
|
62 |
| - &__progress { |
63 |
| - position: absolute; |
64 |
| - left: 0; |
65 |
| - top: (($square-icon-small-boundary * 0.5) - ($square-icon-x-small-content * 0.25)); |
66 |
| - height: ($square-icon-x-small-content * 0.5); |
67 |
| - display: block; |
68 |
| - width: 100%; |
69 |
| - z-index: -1; |
70 |
| - background: $color-background-dark; |
| 38 | + &:first-child { |
| 39 | + text-align: left; |
| 40 | + flex-grow: 1; |
71 | 41 | }
|
72 | 42 |
|
73 |
| - &__progress-bar { |
74 |
| - position: absolute; |
75 |
| - left: 0; |
76 |
| - top: 0; |
77 |
| - height: 100%; |
78 |
| - background: #0076de; // @TODO: Need a token for this |
79 |
| - transition: width $duration-promptly ease; |
| 43 | + &:last-child { |
| 44 | + text-align: right; |
| 45 | + flex-grow: 1; |
80 | 46 | }
|
81 | 47 |
|
82 |
| - .slds-is-active { |
| 48 | + a:hover, |
| 49 | + a:focus { |
| 50 | + outline: 0; |
| 51 | + text-decoration: none; |
83 | 52 |
|
84 | 53 | .slds-wizard__marker {
|
85 |
| - background: #0076de; // @TODO: Need a token for this |
| 54 | + background: rgb(216, 221, 230); // @TODO - no matching token |
86 | 55 | }
|
| 56 | + } |
| 57 | + } |
87 | 58 |
|
88 |
| - a:hover, |
89 |
| - a:focus { |
| 59 | + .slds-wizard__link { |
| 60 | + display: block; |
| 61 | + } |
90 | 62 |
|
91 |
| - .slds-wizard__marker { |
92 |
| - background: rgb(0, 95, 178); // @TODO: Need a token for this |
93 |
| - } |
94 |
| - } |
95 |
| - } |
| 63 | + .slds-wizard__marker { |
| 64 | + @include square($square-icon-small-boundary); |
| 65 | + border-radius: $border-radius-circle; |
| 66 | + background: $color-background-dark; |
| 67 | + display: inline-block; |
| 68 | + vertical-align: middle; |
| 69 | + z-index: 1; |
| 70 | + position: relative; |
| 71 | + } |
| 72 | + |
| 73 | + .slds-wizard__label { |
| 74 | + display: block; |
| 75 | + margin-top: $spacing-small; |
| 76 | + } |
| 77 | + |
| 78 | + .slds-wizard__progress { |
| 79 | + position: absolute; |
| 80 | + left: 0; |
| 81 | + top: (($square-icon-small-boundary * 0.5) - ($square-icon-x-small-content * 0.25)); |
| 82 | + height: ($square-icon-x-small-content * 0.5); |
| 83 | + display: block; |
| 84 | + width: 100%; |
| 85 | + z-index: -1; |
| 86 | + background: $color-background-dark; |
| 87 | + } |
| 88 | + |
| 89 | + .slds-wizard__progress-bar { |
| 90 | + position: absolute; |
| 91 | + left: 0; |
| 92 | + top: 0; |
| 93 | + height: 100%; |
| 94 | + background: #0076de; // @TODO: Need a token for this |
| 95 | + transition: width $duration-promptly ease; |
96 | 96 | }
|
97 | 97 | }
|
0 commit comments