@stackoverflow/stacks 3.0.0-beta.29 → 3.0.0-beta.30
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/dist/css/stacks.css +680 -0
- package/dist/css/stacks.min.css +1 -1
- package/lib/exports/color-sets.less +26 -0
- package/package.json +1 -1
- package/dist/components/expandable/expandable.d.ts +0 -17
- package/dist/components/uploader/uploader.d.ts +0 -48
- package/lib/components/breadcrumbs/breadcrumbs.less +0 -41
- package/lib/components/button-group/button-group.less +0 -82
- package/lib/components/card/card.less +0 -37
- package/lib/components/expandable/expandable.less +0 -119
- package/lib/components/expandable/expandable.ts +0 -238
- package/lib/components/link-preview/link-preview.less +0 -140
- package/lib/components/page-title/page-title.less +0 -51
- package/lib/components/progress-bar/progress-bar.less +0 -292
- package/lib/components/topbar/topbar.less +0 -553
- package/lib/components/uploader/uploader.less +0 -205
- package/lib/components/uploader/uploader.ts +0 -207
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
.s-link-preview {
|
|
2
|
-
--_lp-details-fc: var(--black-400);
|
|
3
|
-
--_lp-details-mt: var(--su2);
|
|
4
|
-
--_lp-footer-bg: var(--black-100);
|
|
5
|
-
--_lp-footer-fd: unset;
|
|
6
|
-
--_lp-header-bg: var(--black-100);
|
|
7
|
-
--_lp-misc-pl: var(--su4);
|
|
8
|
-
--_lp-misc-pt: unset;
|
|
9
|
-
|
|
10
|
-
// CONTEXTUAL STYLES
|
|
11
|
-
#stacks-internals #screen-sm({
|
|
12
|
-
--_lp-details-mt: var(--su4);
|
|
13
|
-
--_lp-footer-fd: column;
|
|
14
|
-
--_lp-misc-pl: 0;
|
|
15
|
-
--_lp-misc-pt: var(--su2);
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
.highcontrast-mode({
|
|
19
|
-
--_lp-details-fc: var(--black-600);
|
|
20
|
-
--_lp-footer-bg: var(--black-050);
|
|
21
|
-
--_lp-header-bg: var(--black-050);
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
// CHILD ELEMENTS
|
|
25
|
-
& &--details,
|
|
26
|
-
& &--footer {
|
|
27
|
-
a {
|
|
28
|
-
&:hover,
|
|
29
|
-
&:active,
|
|
30
|
-
&:focus,
|
|
31
|
-
&:visited {
|
|
32
|
-
color: var(--black-500);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
color: var(--black-600);
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
text-decoration: none;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
& &--body {
|
|
42
|
-
*:last-child {
|
|
43
|
-
margin-bottom: 0;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
font-size: var(--fs-body2);
|
|
47
|
-
padding: var(--su12);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
& &--code {
|
|
51
|
-
pre {
|
|
52
|
-
border-radius: 0 !important;
|
|
53
|
-
margin: 0;
|
|
54
|
-
max-height: 400px;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
& &--details {
|
|
59
|
-
color: var(--_lp-details-fc);
|
|
60
|
-
margin-top: var(--_lp-details-mt);
|
|
61
|
-
|
|
62
|
-
font-size: var(--fs-caption);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
& &--footer {
|
|
66
|
-
background: var(--_lp-footer-bg);
|
|
67
|
-
flex-direction: var(--_lp-footer-fd);
|
|
68
|
-
|
|
69
|
-
border-bottom-left-radius: var(--br-md);
|
|
70
|
-
border-bottom-right-radius: var(--br-md);
|
|
71
|
-
border-top: var(--su1) solid var(--bc-medium);
|
|
72
|
-
display: flex;
|
|
73
|
-
font-size: var(--fs-caption);
|
|
74
|
-
justify-content: space-between;
|
|
75
|
-
padding: var(--su12);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
& &--header {
|
|
79
|
-
background: var(--_lp-header-bg);
|
|
80
|
-
border-bottom: var(--su1) solid var(--bc-medium);
|
|
81
|
-
border-top-left-radius: var(--br-md);
|
|
82
|
-
border-top-right-radius: var(--br-md);
|
|
83
|
-
display: flex;
|
|
84
|
-
padding: var(--su12) var(--su8);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
& &--icon {
|
|
88
|
-
color: var(--black-600); // Set the default color of the integration's icon. Most likely this will be overridden by the integration icon's native colors.
|
|
89
|
-
margin-right: var(--su8);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
& &--misc {
|
|
93
|
-
padding-left: var(--_lp-misc-pl);
|
|
94
|
-
padding-top: var(--_lp-misc-pt);
|
|
95
|
-
|
|
96
|
-
color: var(--black-400);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
& &--title {
|
|
100
|
-
color: var(--black-600);
|
|
101
|
-
font-size: var(--fs-body3);
|
|
102
|
-
font-weight: bold;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
& a&--title {
|
|
106
|
-
&:active,
|
|
107
|
-
&:hover {
|
|
108
|
-
.highcontrast-mode({
|
|
109
|
-
text-decoration: underline;
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
color: var(--theme-link-color-hover, var(--theme-secondary-500));
|
|
113
|
-
text-decoration: none;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&:visited {
|
|
117
|
-
&:hover {
|
|
118
|
-
color: var(--theme-link-color, var(--purple-600));
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
color: var(--theme-link-color, var(--purple-500));
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
color: var(--theme-link-color, var(--theme-secondary));
|
|
125
|
-
cursor: pointer;
|
|
126
|
-
text-decoration: none;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
& &--url {
|
|
130
|
-
max-width: 100%;
|
|
131
|
-
overflow: hidden;
|
|
132
|
-
text-overflow: ellipsis !important;
|
|
133
|
-
white-space: nowrap;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
border: var(--su1) solid var(--bc-medium);
|
|
137
|
-
border-radius: var(--br-md);
|
|
138
|
-
box-shadow: var(--bs-sm);
|
|
139
|
-
text-align: left;
|
|
140
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
.s-page-title {
|
|
2
|
-
--_pt-ai: flex-end;
|
|
3
|
-
--_pt-fd: row;
|
|
4
|
-
--_pt-actions-ml: var(--su8);
|
|
5
|
-
--_pt-actions-mt: unset;
|
|
6
|
-
--_pt-breadcrums-mb: var(--su8);
|
|
7
|
-
|
|
8
|
-
// CONTEXTUAL STYLES
|
|
9
|
-
#stacks-internals #screen-sm({
|
|
10
|
-
--_pt-breadcrums-mb: var(--su2);
|
|
11
|
-
});
|
|
12
|
-
#stacks-internals #screen-md({
|
|
13
|
-
--_pt-ai: flex-start;
|
|
14
|
-
--_pt-fd: column;
|
|
15
|
-
--_pt-actions-ml: 0;
|
|
16
|
-
--_pt-actions-mt: var(--su8);
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
// CHILD ELEMENTS
|
|
20
|
-
& &--actions {
|
|
21
|
-
margin-left: var(--_pt-actions-ml);
|
|
22
|
-
margin-top: var(--_pt-actions-mt);
|
|
23
|
-
flex-shrink: 0;
|
|
24
|
-
}
|
|
25
|
-
& &--description {
|
|
26
|
-
color: var(--fc-light);
|
|
27
|
-
font-size: var(--fs-body2);
|
|
28
|
-
margin-bottom: 0;
|
|
29
|
-
margin-top: var(--su4);
|
|
30
|
-
}
|
|
31
|
-
& &--header {
|
|
32
|
-
color: var(--fc-dark);
|
|
33
|
-
font-size: var(--fs-headline1);
|
|
34
|
-
font-weight: bold;
|
|
35
|
-
line-height: var(--lh-sm);
|
|
36
|
-
margin: 0;
|
|
37
|
-
margin-bottom: 0; // TODO: investigate why this exists. I assume it's so margin-bottom isn't overridden, but 🤷♂️
|
|
38
|
-
}
|
|
39
|
-
.s-breadcrumbs {
|
|
40
|
-
margin-bottom: var(--_pt-breadcrums-mb);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
align-items: var(--_pt-ai);
|
|
44
|
-
flex-direction: var(--_pt-fd);
|
|
45
|
-
|
|
46
|
-
border-bottom: var(--su1) solid var(--bc-medium);
|
|
47
|
-
display: flex;
|
|
48
|
-
justify-content: space-between;
|
|
49
|
-
padding-bottom: var(--su16);
|
|
50
|
-
width: 100%;
|
|
51
|
-
}
|
|
@@ -1,292 +0,0 @@
|
|
|
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-md);
|
|
6
|
-
--_pr-bg: var(--black-300);
|
|
7
|
-
--_pr-h: unset;
|
|
8
|
-
--_pr-size: unset;
|
|
9
|
-
--_pr-w: 100%;
|
|
10
|
-
--_pr-hmn: var(--su4);
|
|
11
|
-
--_pr-bar-bar: var(--br-md);
|
|
12
|
-
--_pr-bar-bg: var(--green-400);
|
|
13
|
-
--_pr-bar-hmn: var(--su4);
|
|
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
|
-
// TODO SPARK I've changed metallic colors here to use their new non-metallic equivalents
|
|
27
|
-
&&__bronze {
|
|
28
|
-
--_pr-bar-bg: var(--orange-100);
|
|
29
|
-
--_pr-label-bc: var(--orange-400);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&&__gold {
|
|
33
|
-
--_pr-bar-bg: var(--yellow-100);
|
|
34
|
-
--_pr-label-bc: var(--yellow-400);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&&__info {
|
|
38
|
-
--_pr-bar-bg: var(--blue-400);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&&__silver {
|
|
42
|
-
--_pr-bar-bg: var(--blue-100);
|
|
43
|
-
--_pr-label-bc: var(--blue-400);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// VARIANTS
|
|
47
|
-
&&__badge,
|
|
48
|
-
&&__privilege {
|
|
49
|
-
--_pr-bar: var(--br-md);
|
|
50
|
-
--_pr-bg: transparent;
|
|
51
|
-
--_pr-hmn: 2em;
|
|
52
|
-
--_pr-bar-bar: var(--br-md);
|
|
53
|
-
--_pr-bar-hmn: 2em;
|
|
54
|
-
--_pr-label-d: flex;
|
|
55
|
-
--_pr-label-g: var(--su4);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&&__badge {
|
|
59
|
-
--_pr-label-ai: center;
|
|
60
|
-
--_pr-label-px: 1em;
|
|
61
|
-
|
|
62
|
-
.s-progress--label {
|
|
63
|
-
.s-badge--label {
|
|
64
|
-
flex-grow: 1;
|
|
65
|
-
text-align: center;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&&__circular {
|
|
71
|
-
--_pr-bg: transparent;
|
|
72
|
-
--_pr-size: var(--su32);
|
|
73
|
-
--s-progress-value: 0;
|
|
74
|
-
|
|
75
|
-
&.s-progress {
|
|
76
|
-
&__sm {
|
|
77
|
-
--_pr-size: var(--su24);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&__md {
|
|
81
|
-
--_pr-size: var(--su48);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&__lg {
|
|
85
|
-
--_pr-size: var(--su64);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
// TODO: consider renaming to `.s-progress--bar`
|
|
90
|
-
.s-progress-bar { // It may necessitate wrapping element in a `&:not(&__circular)`
|
|
91
|
-
circle {
|
|
92
|
-
&:nth-of-type(1) {
|
|
93
|
-
opacity: 0.4;
|
|
94
|
-
stroke: currentColor;
|
|
95
|
-
}
|
|
96
|
-
&:nth-of-type(2) {
|
|
97
|
-
stroke: currentColor;
|
|
98
|
-
stroke-dasharray: @pr-circle-circumference; // [1]
|
|
99
|
-
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
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
fill: none;
|
|
103
|
-
stroke-linecap: round;
|
|
104
|
-
stroke-width: var(--su4);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
transform: rotate(270deg); // Make everything originate from the top of the circle
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&&__privilege {
|
|
112
|
-
--_pr-bar-bg: var(--green-200);
|
|
113
|
-
--_pr-label-ai: center;
|
|
114
|
-
--_pr-label-bc: var(--green-400);
|
|
115
|
-
--_pr-label-jc: center;
|
|
116
|
-
|
|
117
|
-
.highcontrast-mode({ --_pr-bar-bg: var(--green-300); });
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// TODO move `.s-progress__stepped` to entirely separate component (or consider deprecating)
|
|
121
|
-
&&__stepped { // There's so little overlap with the base .s-progress that it doesn't make sense as a variant
|
|
122
|
-
background: transparent;
|
|
123
|
-
display: flex;
|
|
124
|
-
|
|
125
|
-
.s-progress {
|
|
126
|
-
&--bar {
|
|
127
|
-
&.s-progress--bar {
|
|
128
|
-
&__left {
|
|
129
|
-
left: 0;
|
|
130
|
-
right: 50%;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
&__right {
|
|
134
|
-
left: 50%;
|
|
135
|
-
right: 0;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
background: var(--black-250);
|
|
140
|
-
border-radius: 0;
|
|
141
|
-
height: var(--su6);
|
|
142
|
-
position: absolute;
|
|
143
|
-
top: calc(var(--su8) + var(--su1));
|
|
144
|
-
z-index: var(--zi-base);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
&--label { // Override a ton of properties
|
|
148
|
-
border: 0;
|
|
149
|
-
border-radius: 0;
|
|
150
|
-
color: var(--black-400);
|
|
151
|
-
display: block;
|
|
152
|
-
font-size: var(--fs-body1);
|
|
153
|
-
height: auto;
|
|
154
|
-
padding: var(--su12) var(--su6) 0 var(--su6);
|
|
155
|
-
position: static;
|
|
156
|
-
text-align: center;
|
|
157
|
-
width: auto;
|
|
158
|
-
z-index: var(--zi-base);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
&--step {
|
|
162
|
-
&.is-active {
|
|
163
|
-
.s-progress {
|
|
164
|
-
&--bar.s-progress--bar__left {
|
|
165
|
-
background: var(--theme-secondary);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
&--label {
|
|
169
|
-
color: var(--fc-dark);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
&--stop {
|
|
173
|
-
background: var(--theme-secondary);
|
|
174
|
-
box-shadow: 0 0 0 var(--su6) var(--translucent-secondary);// TODO SHINE revisit this value once theme colors are finalized
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
&.is-complete {
|
|
180
|
-
.s-progress {
|
|
181
|
-
&--bar,
|
|
182
|
-
&--stop {
|
|
183
|
-
background: var(--theme-secondary);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
&--label {
|
|
187
|
-
color: var(--fc-dark);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
align-items: center;
|
|
193
|
-
display: flex;
|
|
194
|
-
flex-basis: 0;
|
|
195
|
-
flex-direction: column;
|
|
196
|
-
flex-grow: 1;
|
|
197
|
-
flex-shrink: 1;
|
|
198
|
-
position: relative;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
&--stop {
|
|
202
|
-
.highcontrast-mode({
|
|
203
|
-
color: var(--white);
|
|
204
|
-
});
|
|
205
|
-
|
|
206
|
-
align-items: center;
|
|
207
|
-
background: var(--black-250);
|
|
208
|
-
border-radius: 100%;
|
|
209
|
-
color: var(--_white-static);
|
|
210
|
-
display: flex;
|
|
211
|
-
height: var(--su24);
|
|
212
|
-
justify-content: center;
|
|
213
|
-
position: relative;
|
|
214
|
-
width: var(--su24);
|
|
215
|
-
z-index: var(--zi-selected);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
// CHILD ELEMENTS
|
|
221
|
-
& &--bar {
|
|
222
|
-
background-color: var(--_pr-bar-bg);
|
|
223
|
-
border-radius: var(--_pr-bar);
|
|
224
|
-
min-height: var(--_pr-hmn);
|
|
225
|
-
|
|
226
|
-
height: 100%;
|
|
227
|
-
min-width: var(--su6);
|
|
228
|
-
position: relative;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
& &--label {
|
|
232
|
-
align-items: var(--_pr-label-ai);
|
|
233
|
-
border: var(--su1) solid var(--_pr-label-bc);
|
|
234
|
-
display: var(--_pr-label-d);
|
|
235
|
-
gap: var(--_pr-label-g);
|
|
236
|
-
justify-content: var(--_pr-label-jc);
|
|
237
|
-
padding-left: var(--_pr-label-px);
|
|
238
|
-
padding-right: var(--_pr-label-px);
|
|
239
|
-
|
|
240
|
-
border-radius: var(--br-md);
|
|
241
|
-
color: var(--fc-dark);
|
|
242
|
-
font-size: var(--fs-caption);
|
|
243
|
-
height: 100%;
|
|
244
|
-
line-height: var(--lh-xs);
|
|
245
|
-
position: absolute;
|
|
246
|
-
width: 100%;
|
|
247
|
-
z-index: calc(var(--zi-base) + 2);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
& &--segments { // DEPRECATED: AFAICT, this is unused in core (as well as it's intended parent variant class `.s-progress__segmented`)
|
|
251
|
-
li {
|
|
252
|
-
&:not(:first-child):not(:last-child):before {
|
|
253
|
-
background-color: var(--white);
|
|
254
|
-
content: "";
|
|
255
|
-
display: block;
|
|
256
|
-
height: 100%;
|
|
257
|
-
left: var(--sun1);
|
|
258
|
-
position: absolute;
|
|
259
|
-
top: 0;
|
|
260
|
-
width: var(--su4);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
display: block;
|
|
264
|
-
padding-top: var(--su4);
|
|
265
|
-
position: relative;
|
|
266
|
-
text-align: center;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
display: flex;
|
|
270
|
-
height: 100%;
|
|
271
|
-
justify-content: space-between;
|
|
272
|
-
list-style: none;
|
|
273
|
-
margin: 0;
|
|
274
|
-
padding: 0;
|
|
275
|
-
position: absolute;
|
|
276
|
-
top: 0;
|
|
277
|
-
width: 100%;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
background-color: var(--_pr-bg);
|
|
281
|
-
border-radius: var(--_pr-bar);
|
|
282
|
-
height: var(--_pr-size, var(--_pr-h));
|
|
283
|
-
min-height: var(--_pr-hmn);
|
|
284
|
-
|
|
285
|
-
min-width: var(--su6);
|
|
286
|
-
position: relative;
|
|
287
|
-
width: var(--_pr-size, var(--_pr-w));
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
// [1] Multiply the circle circumference by an the opposite percentage of what we want to display
|
|
291
|
-
// For example 70%, represented as a decimal is 0.7
|
|
292
|
-
// The opposite of that is 0.3 so ( 1 - 0.7 )
|