@stackoverflow/stacks 2.7.3 → 2.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.MD +9 -9
- package/README.md +158 -180
- package/dist/css/stacks.css +6 -0
- package/dist/js/stacks.min.js +1 -1
- package/lib/atomic/border.less +139 -139
- package/lib/atomic/color.less +36 -36
- package/lib/atomic/flex.less +426 -426
- package/lib/atomic/gap.less +44 -44
- package/lib/atomic/grid.less +139 -139
- package/lib/atomic/misc.less +374 -374
- package/lib/atomic/spacing.less +98 -98
- package/lib/atomic/typography.less +266 -264
- package/lib/atomic/width-height.less +194 -194
- package/lib/base/body.less +44 -44
- package/lib/base/configuration-static.less +61 -61
- package/lib/base/fieldset.less +5 -5
- package/lib/base/icon.less +11 -11
- package/lib/base/internal.less +220 -220
- package/lib/base/reset-meyer.less +64 -64
- package/lib/base/reset-normalize.less +449 -449
- package/lib/base/reset.less +20 -20
- package/lib/components/activity-indicator/activity-indicator.less +53 -53
- package/lib/components/avatar/avatar.less +108 -108
- package/lib/components/award-bling/award-bling.less +31 -31
- package/lib/components/banner/banner.less +44 -44
- package/lib/components/banner/banner.ts +149 -149
- package/lib/components/block-link/block-link.less +82 -82
- package/lib/components/breadcrumbs/breadcrumbs.less +41 -41
- package/lib/components/button-group/button-group.less +82 -82
- package/lib/components/card/card.less +37 -37
- package/lib/components/check-control/check-control.less +17 -17
- package/lib/components/check-group/check-group.less +19 -19
- package/lib/components/checkbox_radio/checkbox_radio.less +159 -159
- package/lib/components/code-block/code-block.fixtures.ts +88 -88
- package/lib/components/code-block/code-block.less +116 -116
- package/lib/components/description/description.less +9 -9
- package/lib/components/empty-state/empty-state.less +16 -16
- package/lib/components/expandable/expandable.less +118 -118
- package/lib/components/input-fill/input-fill.less +35 -35
- package/lib/components/input-icon/input-icon.less +45 -45
- package/lib/components/input-message/input-message.less +49 -49
- package/lib/components/label/label.less +110 -110
- package/lib/components/link-preview/link-preview.less +148 -148
- package/lib/components/menu/menu.less +41 -41
- package/lib/components/modal/modal.less +118 -118
- package/lib/components/modal/modal.ts +383 -383
- package/lib/components/navigation/navigation.less +136 -136
- package/lib/components/navigation/navigation.ts +128 -128
- package/lib/components/page-title/page-title.less +51 -51
- package/lib/components/popover/popover.less +159 -159
- package/lib/components/popover/popover.ts +651 -651
- package/lib/components/post-summary/post-summary.less +457 -457
- package/lib/components/progress-bar/progress-bar.less +291 -291
- package/lib/components/prose/prose.less +452 -452
- package/lib/components/select/select.less +138 -138
- package/lib/components/spinner/spinner.less +103 -103
- package/lib/components/table/table.ts +296 -296
- package/lib/components/table-container/table-container.less +4 -4
- package/lib/components/tag/tag.less +186 -186
- package/lib/components/toast/toast.less +35 -35
- package/lib/components/toast/toast.ts +357 -357
- package/lib/components/toggle-switch/toggle-switch.less +104 -104
- package/lib/components/topbar/topbar.less +553 -553
- package/lib/components/uploader/uploader.less +205 -205
- package/lib/components/user-card/user-card.less +129 -129
- package/lib/controllers.ts +33 -33
- package/lib/exports/color-mixins.less +283 -283
- package/lib/exports/constants-helpers.less +108 -108
- package/lib/exports/constants-type.less +155 -155
- package/lib/exports/exports.less +15 -15
- package/lib/exports/mixins.less +334 -333
- package/lib/exports/spacing-mixins.less +67 -67
- package/lib/index.ts +32 -32
- package/lib/input-utils.less +41 -41
- package/lib/stacks-dynamic.less +24 -24
- package/lib/stacks-static.less +93 -93
- package/lib/stacks.less +13 -13
- package/lib/test/assertions.ts +36 -36
- package/lib/test/less-test-utils.ts +28 -28
- package/lib/test/open-wc-testing-patch.d.ts +26 -26
- package/lib/tsconfig.build.json +4 -4
- package/lib/tsconfig.json +17 -17
- package/package.json +26 -22
|
@@ -1,291 +1,291 @@
|
|
|
1
|
-
.s-progress {
|
|
2
|
-
// COMPONENT-SPECIFIC CONSTANTS
|
|
3
|
-
@pr-circle-circumference: (2 * pi() * 14); // 2πr, r = 14.
|
|
4
|
-
// COMPONENT-SPECIFIC CUSTOM PROPERTIES
|
|
5
|
-
--_pr-bar: var(--br-sm);
|
|
6
|
-
--_pr-bg: var(--black-300);
|
|
7
|
-
--_pr-h: unset;
|
|
8
|
-
--_pr-size: unset;
|
|
9
|
-
--_pr-w: 100%;
|
|
10
|
-
--_pr-hmn: var(--su-static4);
|
|
11
|
-
--_pr-bar-bar: var(--br-sm);
|
|
12
|
-
--_pr-bar-bg: var(--green-400);
|
|
13
|
-
--_pr-bar-hmn: var(--su-static4);
|
|
14
|
-
--_pr-label-ai: unset;
|
|
15
|
-
--_pr-label-bc: transparent;
|
|
16
|
-
--_pr-label-d: unset;
|
|
17
|
-
--_pr-label-g: unset;
|
|
18
|
-
--_pr-label-jc: unset;
|
|
19
|
-
--_pr-label-px: unset;
|
|
20
|
-
|
|
21
|
-
// MODIFIERS
|
|
22
|
-
&&__brand {
|
|
23
|
-
--_pr-bar-bg: var(--orange-400);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&&__bronze {
|
|
27
|
-
--_pr-bar-bg: var(--bronze-100);
|
|
28
|
-
--_pr-label-bc: var(--bronze-400);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&&__gold {
|
|
32
|
-
--_pr-bar-bg: var(--gold-100);
|
|
33
|
-
--_pr-label-bc: var(--gold-400);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&&__info {
|
|
37
|
-
--_pr-bar-bg: var(--blue-400);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&&__silver {
|
|
41
|
-
--_pr-bar-bg: var(--silver-100);
|
|
42
|
-
--_pr-label-bc: var(--silver-400);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// VARIANTS
|
|
46
|
-
&&__badge,
|
|
47
|
-
&&__privilege {
|
|
48
|
-
--_pr-bar: var(--br-md);
|
|
49
|
-
--_pr-bg: transparent;
|
|
50
|
-
--_pr-hmn: 2em;
|
|
51
|
-
--_pr-bar-bar: var(--br-md);
|
|
52
|
-
--_pr-bar-hmn: 2em;
|
|
53
|
-
--_pr-label-d: flex;
|
|
54
|
-
--_pr-label-g: var(--su4);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&&__badge {
|
|
58
|
-
--_pr-label-ai: center;
|
|
59
|
-
--_pr-label-px: 1em;
|
|
60
|
-
|
|
61
|
-
.s-progress--label {
|
|
62
|
-
.s-badge--label {
|
|
63
|
-
flex-grow: 1;
|
|
64
|
-
text-align: center;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&&__circular {
|
|
70
|
-
--_pr-bg: transparent;
|
|
71
|
-
--_pr-size: var(--su-static32);
|
|
72
|
-
--s-progress-value: 0;
|
|
73
|
-
|
|
74
|
-
&.s-progress {
|
|
75
|
-
&__sm {
|
|
76
|
-
--_pr-size: var(--su-static24);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&__md {
|
|
80
|
-
--_pr-size: var(--su-static48);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&__lg {
|
|
84
|
-
--_pr-size: var(--su-static64);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
// TODO: consider renaming to `.s-progress--bar`
|
|
89
|
-
.s-progress-bar { // It may necessitate wrapping element in a `&:not(&__circular)`
|
|
90
|
-
circle {
|
|
91
|
-
&:nth-of-type(1) {
|
|
92
|
-
opacity: 0.4;
|
|
93
|
-
stroke: currentColor;
|
|
94
|
-
}
|
|
95
|
-
&:nth-of-type(2) {
|
|
96
|
-
stroke: currentColor;
|
|
97
|
-
stroke-dasharray: @pr-circle-circumference; // [1]
|
|
98
|
-
stroke-dashoffset: calc(((1 - var(--s-progress-value)) * @pr-circle-circumference) * 1px); // Multiply everything by 1px since Safari and Firefox require these to be in pixels
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
fill: none;
|
|
102
|
-
stroke-linecap: round;
|
|
103
|
-
stroke-width: var(--su-static4);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
transform: rotate(270deg); // Make everything originate from the top of the circle
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&&__privilege {
|
|
111
|
-
--_pr-bar-bg: var(--green-200);
|
|
112
|
-
--_pr-label-ai: center;
|
|
113
|
-
--_pr-label-bc: var(--green-400);
|
|
114
|
-
--_pr-label-jc: center;
|
|
115
|
-
|
|
116
|
-
.highcontrast-mode({ --_pr-bar-bg: var(--green-300); });
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// TODO move `.s-progress__stepped` to entirely separate component (or consider deprecating)
|
|
120
|
-
&&__stepped { // There's so little overlap with the base .s-progress that it doesn't make sense as a variant
|
|
121
|
-
background: transparent;
|
|
122
|
-
display: flex;
|
|
123
|
-
|
|
124
|
-
.s-progress {
|
|
125
|
-
&--bar {
|
|
126
|
-
&.s-progress--bar {
|
|
127
|
-
&__left {
|
|
128
|
-
left: 0;
|
|
129
|
-
right: 50%;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
&__right {
|
|
133
|
-
left: 50%;
|
|
134
|
-
right: 0;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
background: var(--black-250);
|
|
139
|
-
border-radius: 0;
|
|
140
|
-
height: var(--su-static6);
|
|
141
|
-
position: absolute;
|
|
142
|
-
top: calc(var(--su-static8) + var(--su-static1));
|
|
143
|
-
z-index: var(--zi-base);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&--label { // Override a ton of properties
|
|
147
|
-
border: 0;
|
|
148
|
-
border-radius: 0;
|
|
149
|
-
color: var(--black-400);
|
|
150
|
-
display: block;
|
|
151
|
-
font-size: var(--fs-body1);
|
|
152
|
-
height: auto;
|
|
153
|
-
padding: var(--su12) var(--su6) 0 var(--su6);
|
|
154
|
-
position: static;
|
|
155
|
-
text-align: center;
|
|
156
|
-
width: auto;
|
|
157
|
-
z-index: var(--zi-base);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
&--step {
|
|
161
|
-
&.is-active {
|
|
162
|
-
.s-progress {
|
|
163
|
-
&--bar.s-progress--bar__left {
|
|
164
|
-
background: var(--theme-secondary-400);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&--label {
|
|
168
|
-
color: var(--fc-dark);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
&--stop {
|
|
172
|
-
background: var(--theme-secondary-400);
|
|
173
|
-
box-shadow: 0 0 0 var(--su-static6) var(--translucent-secondary);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
&.is-complete {
|
|
179
|
-
.s-progress {
|
|
180
|
-
&--bar,
|
|
181
|
-
&--stop {
|
|
182
|
-
background: var(--theme-secondary-400);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
&--label {
|
|
186
|
-
color: var(--fc-dark);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
align-items: center;
|
|
192
|
-
display: flex;
|
|
193
|
-
flex-basis: 0;
|
|
194
|
-
flex-direction: column;
|
|
195
|
-
flex-grow: 1;
|
|
196
|
-
flex-shrink: 1;
|
|
197
|
-
position: relative;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
&--stop {
|
|
201
|
-
.highcontrast-mode({
|
|
202
|
-
color: var(--white);
|
|
203
|
-
});
|
|
204
|
-
|
|
205
|
-
align-items: center;
|
|
206
|
-
background: var(--black-250);
|
|
207
|
-
border-radius: 100%;
|
|
208
|
-
color: var(--_white-static);
|
|
209
|
-
display: flex;
|
|
210
|
-
height: var(--su-static24);
|
|
211
|
-
justify-content: center;
|
|
212
|
-
position: relative;
|
|
213
|
-
width: var(--su-static24);
|
|
214
|
-
z-index: var(--zi-selected);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
// CHILD ELEMENTS
|
|
220
|
-
& &--bar {
|
|
221
|
-
background-color: var(--_pr-bar-bg);
|
|
222
|
-
border-radius: var(--_pr-bar);
|
|
223
|
-
min-height: var(--_pr-hmn);
|
|
224
|
-
|
|
225
|
-
height: 100%;
|
|
226
|
-
min-width: var(--su-static6);
|
|
227
|
-
position: relative;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
& &--label {
|
|
231
|
-
align-items: var(--_pr-label-ai);
|
|
232
|
-
border: var(--su-static1) solid var(--_pr-label-bc);
|
|
233
|
-
display: var(--_pr-label-d);
|
|
234
|
-
gap: var(--_pr-label-g);
|
|
235
|
-
justify-content: var(--_pr-label-jc);
|
|
236
|
-
padding-left: var(--_pr-label-px);
|
|
237
|
-
padding-right: var(--_pr-label-px);
|
|
238
|
-
|
|
239
|
-
border-radius: var(--br-md);
|
|
240
|
-
color: var(--fc-dark);
|
|
241
|
-
font-size: var(--fs-caption);
|
|
242
|
-
height: 100%;
|
|
243
|
-
line-height: var(--lh-xs);
|
|
244
|
-
position: absolute;
|
|
245
|
-
width: 100%;
|
|
246
|
-
z-index: calc(var(--zi-base) + 2);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
& &--segments { // DEPRECATED: AFAICT, this is unused in core (as well as it's intended parent variant class `.s-progress__segmented`)
|
|
250
|
-
li {
|
|
251
|
-
&:not(:first-child):not(:last-child):before {
|
|
252
|
-
background-color: var(--white);
|
|
253
|
-
content: "";
|
|
254
|
-
display: block;
|
|
255
|
-
height: 100%;
|
|
256
|
-
left: calc(var(--su-static1) * -1); // -1px
|
|
257
|
-
position: absolute;
|
|
258
|
-
top: 0;
|
|
259
|
-
width: var(--su-static4);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
display: block;
|
|
263
|
-
padding-top: var(--su-static4);
|
|
264
|
-
position: relative;
|
|
265
|
-
text-align: center;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
display: flex;
|
|
269
|
-
height: 100%;
|
|
270
|
-
justify-content: space-between;
|
|
271
|
-
list-style: none;
|
|
272
|
-
margin: 0;
|
|
273
|
-
padding: 0;
|
|
274
|
-
position: absolute;
|
|
275
|
-
top: 0;
|
|
276
|
-
width: 100%;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
background-color: var(--_pr-bg);
|
|
280
|
-
border-radius: var(--_pr-bar);
|
|
281
|
-
height: var(--_pr-size, var(--_pr-h));
|
|
282
|
-
min-height: var(--_pr-hmn);
|
|
283
|
-
|
|
284
|
-
min-width: var(--su-static6);
|
|
285
|
-
position: relative;
|
|
286
|
-
width: var(--_pr-size, var(--_pr-w));
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
// [1] Multiply the circle circumference by an the opposite percentage of what we want to display
|
|
290
|
-
// For example 70%, represented as a decimal is 0.7
|
|
291
|
-
// The opposite of that is 0.3 so ( 1 - 0.7 )
|
|
1
|
+
.s-progress {
|
|
2
|
+
// COMPONENT-SPECIFIC CONSTANTS
|
|
3
|
+
@pr-circle-circumference: (2 * pi() * 14); // 2πr, r = 14.
|
|
4
|
+
// COMPONENT-SPECIFIC CUSTOM PROPERTIES
|
|
5
|
+
--_pr-bar: var(--br-sm);
|
|
6
|
+
--_pr-bg: var(--black-300);
|
|
7
|
+
--_pr-h: unset;
|
|
8
|
+
--_pr-size: unset;
|
|
9
|
+
--_pr-w: 100%;
|
|
10
|
+
--_pr-hmn: var(--su-static4);
|
|
11
|
+
--_pr-bar-bar: var(--br-sm);
|
|
12
|
+
--_pr-bar-bg: var(--green-400);
|
|
13
|
+
--_pr-bar-hmn: var(--su-static4);
|
|
14
|
+
--_pr-label-ai: unset;
|
|
15
|
+
--_pr-label-bc: transparent;
|
|
16
|
+
--_pr-label-d: unset;
|
|
17
|
+
--_pr-label-g: unset;
|
|
18
|
+
--_pr-label-jc: unset;
|
|
19
|
+
--_pr-label-px: unset;
|
|
20
|
+
|
|
21
|
+
// MODIFIERS
|
|
22
|
+
&&__brand {
|
|
23
|
+
--_pr-bar-bg: var(--orange-400);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&&__bronze {
|
|
27
|
+
--_pr-bar-bg: var(--bronze-100);
|
|
28
|
+
--_pr-label-bc: var(--bronze-400);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&&__gold {
|
|
32
|
+
--_pr-bar-bg: var(--gold-100);
|
|
33
|
+
--_pr-label-bc: var(--gold-400);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&&__info {
|
|
37
|
+
--_pr-bar-bg: var(--blue-400);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&&__silver {
|
|
41
|
+
--_pr-bar-bg: var(--silver-100);
|
|
42
|
+
--_pr-label-bc: var(--silver-400);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// VARIANTS
|
|
46
|
+
&&__badge,
|
|
47
|
+
&&__privilege {
|
|
48
|
+
--_pr-bar: var(--br-md);
|
|
49
|
+
--_pr-bg: transparent;
|
|
50
|
+
--_pr-hmn: 2em;
|
|
51
|
+
--_pr-bar-bar: var(--br-md);
|
|
52
|
+
--_pr-bar-hmn: 2em;
|
|
53
|
+
--_pr-label-d: flex;
|
|
54
|
+
--_pr-label-g: var(--su4);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&&__badge {
|
|
58
|
+
--_pr-label-ai: center;
|
|
59
|
+
--_pr-label-px: 1em;
|
|
60
|
+
|
|
61
|
+
.s-progress--label {
|
|
62
|
+
.s-badge--label {
|
|
63
|
+
flex-grow: 1;
|
|
64
|
+
text-align: center;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&&__circular {
|
|
70
|
+
--_pr-bg: transparent;
|
|
71
|
+
--_pr-size: var(--su-static32);
|
|
72
|
+
--s-progress-value: 0;
|
|
73
|
+
|
|
74
|
+
&.s-progress {
|
|
75
|
+
&__sm {
|
|
76
|
+
--_pr-size: var(--su-static24);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&__md {
|
|
80
|
+
--_pr-size: var(--su-static48);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&__lg {
|
|
84
|
+
--_pr-size: var(--su-static64);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// TODO: consider renaming to `.s-progress--bar`
|
|
89
|
+
.s-progress-bar { // It may necessitate wrapping element in a `&:not(&__circular)`
|
|
90
|
+
circle {
|
|
91
|
+
&:nth-of-type(1) {
|
|
92
|
+
opacity: 0.4;
|
|
93
|
+
stroke: currentColor;
|
|
94
|
+
}
|
|
95
|
+
&:nth-of-type(2) {
|
|
96
|
+
stroke: currentColor;
|
|
97
|
+
stroke-dasharray: @pr-circle-circumference; // [1]
|
|
98
|
+
stroke-dashoffset: calc(((1 - var(--s-progress-value)) * @pr-circle-circumference) * 1px); // Multiply everything by 1px since Safari and Firefox require these to be in pixels
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
fill: none;
|
|
102
|
+
stroke-linecap: round;
|
|
103
|
+
stroke-width: var(--su-static4);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
transform: rotate(270deg); // Make everything originate from the top of the circle
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&&__privilege {
|
|
111
|
+
--_pr-bar-bg: var(--green-200);
|
|
112
|
+
--_pr-label-ai: center;
|
|
113
|
+
--_pr-label-bc: var(--green-400);
|
|
114
|
+
--_pr-label-jc: center;
|
|
115
|
+
|
|
116
|
+
.highcontrast-mode({ --_pr-bar-bg: var(--green-300); });
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// TODO move `.s-progress__stepped` to entirely separate component (or consider deprecating)
|
|
120
|
+
&&__stepped { // There's so little overlap with the base .s-progress that it doesn't make sense as a variant
|
|
121
|
+
background: transparent;
|
|
122
|
+
display: flex;
|
|
123
|
+
|
|
124
|
+
.s-progress {
|
|
125
|
+
&--bar {
|
|
126
|
+
&.s-progress--bar {
|
|
127
|
+
&__left {
|
|
128
|
+
left: 0;
|
|
129
|
+
right: 50%;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&__right {
|
|
133
|
+
left: 50%;
|
|
134
|
+
right: 0;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
background: var(--black-250);
|
|
139
|
+
border-radius: 0;
|
|
140
|
+
height: var(--su-static6);
|
|
141
|
+
position: absolute;
|
|
142
|
+
top: calc(var(--su-static8) + var(--su-static1));
|
|
143
|
+
z-index: var(--zi-base);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&--label { // Override a ton of properties
|
|
147
|
+
border: 0;
|
|
148
|
+
border-radius: 0;
|
|
149
|
+
color: var(--black-400);
|
|
150
|
+
display: block;
|
|
151
|
+
font-size: var(--fs-body1);
|
|
152
|
+
height: auto;
|
|
153
|
+
padding: var(--su12) var(--su6) 0 var(--su6);
|
|
154
|
+
position: static;
|
|
155
|
+
text-align: center;
|
|
156
|
+
width: auto;
|
|
157
|
+
z-index: var(--zi-base);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&--step {
|
|
161
|
+
&.is-active {
|
|
162
|
+
.s-progress {
|
|
163
|
+
&--bar.s-progress--bar__left {
|
|
164
|
+
background: var(--theme-secondary-400);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&--label {
|
|
168
|
+
color: var(--fc-dark);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&--stop {
|
|
172
|
+
background: var(--theme-secondary-400);
|
|
173
|
+
box-shadow: 0 0 0 var(--su-static6) var(--translucent-secondary);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&.is-complete {
|
|
179
|
+
.s-progress {
|
|
180
|
+
&--bar,
|
|
181
|
+
&--stop {
|
|
182
|
+
background: var(--theme-secondary-400);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&--label {
|
|
186
|
+
color: var(--fc-dark);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
align-items: center;
|
|
192
|
+
display: flex;
|
|
193
|
+
flex-basis: 0;
|
|
194
|
+
flex-direction: column;
|
|
195
|
+
flex-grow: 1;
|
|
196
|
+
flex-shrink: 1;
|
|
197
|
+
position: relative;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&--stop {
|
|
201
|
+
.highcontrast-mode({
|
|
202
|
+
color: var(--white);
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
align-items: center;
|
|
206
|
+
background: var(--black-250);
|
|
207
|
+
border-radius: 100%;
|
|
208
|
+
color: var(--_white-static);
|
|
209
|
+
display: flex;
|
|
210
|
+
height: var(--su-static24);
|
|
211
|
+
justify-content: center;
|
|
212
|
+
position: relative;
|
|
213
|
+
width: var(--su-static24);
|
|
214
|
+
z-index: var(--zi-selected);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// CHILD ELEMENTS
|
|
220
|
+
& &--bar {
|
|
221
|
+
background-color: var(--_pr-bar-bg);
|
|
222
|
+
border-radius: var(--_pr-bar);
|
|
223
|
+
min-height: var(--_pr-hmn);
|
|
224
|
+
|
|
225
|
+
height: 100%;
|
|
226
|
+
min-width: var(--su-static6);
|
|
227
|
+
position: relative;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
& &--label {
|
|
231
|
+
align-items: var(--_pr-label-ai);
|
|
232
|
+
border: var(--su-static1) solid var(--_pr-label-bc);
|
|
233
|
+
display: var(--_pr-label-d);
|
|
234
|
+
gap: var(--_pr-label-g);
|
|
235
|
+
justify-content: var(--_pr-label-jc);
|
|
236
|
+
padding-left: var(--_pr-label-px);
|
|
237
|
+
padding-right: var(--_pr-label-px);
|
|
238
|
+
|
|
239
|
+
border-radius: var(--br-md);
|
|
240
|
+
color: var(--fc-dark);
|
|
241
|
+
font-size: var(--fs-caption);
|
|
242
|
+
height: 100%;
|
|
243
|
+
line-height: var(--lh-xs);
|
|
244
|
+
position: absolute;
|
|
245
|
+
width: 100%;
|
|
246
|
+
z-index: calc(var(--zi-base) + 2);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
& &--segments { // DEPRECATED: AFAICT, this is unused in core (as well as it's intended parent variant class `.s-progress__segmented`)
|
|
250
|
+
li {
|
|
251
|
+
&:not(:first-child):not(:last-child):before {
|
|
252
|
+
background-color: var(--white);
|
|
253
|
+
content: "";
|
|
254
|
+
display: block;
|
|
255
|
+
height: 100%;
|
|
256
|
+
left: calc(var(--su-static1) * -1); // -1px
|
|
257
|
+
position: absolute;
|
|
258
|
+
top: 0;
|
|
259
|
+
width: var(--su-static4);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
display: block;
|
|
263
|
+
padding-top: var(--su-static4);
|
|
264
|
+
position: relative;
|
|
265
|
+
text-align: center;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
display: flex;
|
|
269
|
+
height: 100%;
|
|
270
|
+
justify-content: space-between;
|
|
271
|
+
list-style: none;
|
|
272
|
+
margin: 0;
|
|
273
|
+
padding: 0;
|
|
274
|
+
position: absolute;
|
|
275
|
+
top: 0;
|
|
276
|
+
width: 100%;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
background-color: var(--_pr-bg);
|
|
280
|
+
border-radius: var(--_pr-bar);
|
|
281
|
+
height: var(--_pr-size, var(--_pr-h));
|
|
282
|
+
min-height: var(--_pr-hmn);
|
|
283
|
+
|
|
284
|
+
min-width: var(--su-static6);
|
|
285
|
+
position: relative;
|
|
286
|
+
width: var(--_pr-size, var(--_pr-w));
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
// [1] Multiply the circle circumference by an the opposite percentage of what we want to display
|
|
290
|
+
// For example 70%, represented as a decimal is 0.7
|
|
291
|
+
// The opposite of that is 0.3 so ( 1 - 0.7 )
|