|
1 | 1 | // Copyright (c) 2015-present, salesforce.com, inc. All rights reserved |
2 | 2 | // Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license |
3 | 3 |
|
| 4 | +$legacy-color-background-path-incomplete: #e0e5ee; |
| 5 | +$legacy-color-background-path-incomplete-hover: #d8dde6; |
| 6 | +$legacy-color-background-path-complete: #51c983; |
| 7 | +$legacy-color-background-path-complete-hover: #1f8956; |
| 8 | +$legacy-color-background-path-current: #1172cf; |
| 9 | +$legacy-color-background-path-current-hover: #0d61af; |
| 10 | +$legacy-color-background-path-lost: #c23934; |
4 | 11 |
|
5 | 12 | .slds-path-coach { |
6 | 13 | @include deprecate('4.0.0', 'Use .slds-path instead of .slds-path-coach') { |
|
12 | 19 | padding-bottom: $spacing-medium; |
13 | 20 | } |
14 | 21 | } |
| 22 | + |
| 23 | + .slds-path__mark-current { |
| 24 | + background-color: $color-background-inverse; |
| 25 | + border-color: $color-background-inverse; |
| 26 | + } |
15 | 27 | } |
16 | 28 |
|
17 | 29 | .slds-tabs_path, |
|
24 | 36 | } |
25 | 37 |
|
26 | 38 | .slds-is-complete { |
27 | | - background-color: $color-background-path-complete; |
| 39 | + background-color: $legacy-color-background-path-complete; |
28 | 40 |
|
29 | 41 | .slds-tabs_path__stage, |
30 | 42 | .slds-tabs--path__stage { |
|
42 | 54 | } |
43 | 55 |
|
44 | 56 | &:hover { |
45 | | - background-color: $color-background-path-complete-hover; |
| 57 | + background-color: $legacy-color-background-path-complete-hover; |
46 | 58 |
|
47 | 59 | .slds-tabs_path__stage, |
48 | 60 | .slds-tabs--path__stage { |
|
62 | 74 | } |
63 | 75 |
|
64 | 76 | .slds-is-current { |
65 | | - background-color: $color-background-path-current; |
| 77 | + background-color: $legacy-color-background-path-current; |
66 | 78 |
|
67 | 79 | &:hover { |
68 | | - background-color: $color-background-path-current-hover; |
| 80 | + background-color: $legacy-color-background-path-current-hover; |
69 | 81 | } |
70 | 82 |
|
71 | 83 | + .slds-is-incomplete:before { |
72 | | - background-color: $color-background-path-current; |
| 84 | + background-color: $legacy-color-background-path-current; |
73 | 85 | } |
74 | 86 |
|
75 | 87 | &:hover + .slds-is-incomplete:before { |
76 | | - background-color: $color-background-path-current-hover; |
| 88 | + background-color: $legacy-color-background-path-current-hover; |
77 | 89 | } |
78 | 90 | } |
79 | 91 |
|
80 | 92 | .slds-is-incomplete { |
81 | | - background-color: $color-background-path-incomplete; |
| 93 | + background-color: $legacy-color-background-path-incomplete; |
82 | 94 |
|
83 | 95 | &:hover { |
84 | | - background-color: $color-background-path-incomplete-hover; |
| 96 | + background-color: $legacy-color-background-path-incomplete-hover; |
85 | 97 | } |
86 | 98 |
|
87 | 99 | .slds-tabs_path__link, |
|
92 | 104 |
|
93 | 105 | .slds-is-lost, |
94 | 106 | .slds-is-lost:hover { |
95 | | - background-color: $color-background-path-lost; |
| 107 | + background-color: $legacy-color-background-path-lost; |
96 | 108 | } |
97 | 109 |
|
98 | 110 | // Lets make sure we have the right color when these steps are activated |
|
133 | 145 |
|
134 | 146 | .slds-tabs_path__title, |
135 | 147 | .slds-tabs--path__title { |
| 148 | + color: #fff; |
136 | 149 | transform: rotateX(0deg); |
137 | 150 | } |
138 | 151 |
|
|
189 | 202 | // The below logic makes the :before (which is actually a part of the previous section) the proper color based on tabs--path__item order |
190 | 203 | + .slds-is-complete:before, |
191 | 204 | + .slds-is-current:before { |
192 | | - background-color: $color-background-path-complete; |
| 205 | + background-color: $legacy-color-background-path-complete; |
193 | 206 | } |
194 | 207 |
|
195 | 208 | &:hover + .slds-is-complete:before, |
196 | 209 | &:hover + .slds-is-current:before { |
197 | | - background-color: $color-background-path-complete-hover; |
| 210 | + background-color: $legacy-color-background-path-complete-hover; |
198 | 211 | } |
199 | 212 |
|
200 | 213 | + .slds-is-incomplete:before, |
201 | 214 | + .slds-is-lost:before { |
202 | | - background-color: $color-background-path-incomplete; |
| 215 | + background-color: $legacy-color-background-path-incomplete; |
203 | 216 | } |
204 | 217 |
|
205 | 218 | &:hover + .slds-is-incomplete:before, |
206 | 219 | &:hover + .slds-is-lost:before { |
207 | | - background-color: $color-background-path-incomplete-hover; |
| 220 | + background-color: $legacy-color-background-path-incomplete-hover; |
208 | 221 | } |
209 | 222 | } |
210 | 223 | } |
|
223 | 236 | top: 50%; |
224 | 237 | left: ($square-icon-medium-content / 2); |
225 | 238 | width: 100%; |
226 | | - margin-top: (($square-icon-medium-content - $spacing-xx-small) * -1); |
| 239 | + margin-top: ($spacing-x-small * -1); |
227 | 240 | transform: rotateX(-180deg); |
228 | 241 | } |
229 | 242 | } |
|
0 commit comments