@stackoverflow/stacks 3.0.0-beta.18 → 3.0.0-beta.19
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 +21 -67
- package/dist/css/stacks.min.css +1 -1
- package/lib/atomic/misc.less +20 -15
- package/lib/components/button-group/button-group.less +1 -0
- package/lib/components/code-block/code-block.fixtures.ts +2 -2
- package/lib/exports/color-sets.less +2 -2
- package/lib/stacks-static.less +0 -1
- package/package.json +1 -1
- package/lib/components/skeleton/skeleton.less +0 -73
package/lib/atomic/misc.less
CHANGED
|
@@ -67,6 +67,26 @@
|
|
|
67
67
|
// ----------------------------------------------------------------------------
|
|
68
68
|
.bg-image-none { background-image: none !important; }
|
|
69
69
|
|
|
70
|
+
.bg-loading {
|
|
71
|
+
animation: loadingBgAnimation 1.5s ease-out infinite;
|
|
72
|
+
animation-delay: 1ms;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@keyframes loadingBgAnimation {
|
|
76
|
+
0% {
|
|
77
|
+
background-color: var(--black-150);
|
|
78
|
+
opacity: 1;
|
|
79
|
+
}
|
|
80
|
+
50% {
|
|
81
|
+
background-color: var(--black-100);
|
|
82
|
+
opacity: 0.7;
|
|
83
|
+
}
|
|
84
|
+
100% {
|
|
85
|
+
background-color: var(--black-150);
|
|
86
|
+
opacity: 1;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
70
90
|
.bg-confetti-animated {
|
|
71
91
|
background-repeat: repeat-x;
|
|
72
92
|
background-position: top -10px center;
|
|
@@ -155,21 +175,6 @@
|
|
|
155
175
|
user-select: none !important;
|
|
156
176
|
}
|
|
157
177
|
|
|
158
|
-
// ============================================================================
|
|
159
|
-
// $ USER DRAG
|
|
160
|
-
// ----------------------------------------------------------------------------
|
|
161
|
-
.ud-auto {
|
|
162
|
-
-webkit-user-drag: auto !important;
|
|
163
|
-
-moz-user-drag: auto !important;
|
|
164
|
-
-ms-user-drag: auto !important;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.ud-none {
|
|
168
|
-
-webkit-user-drag: none !important;
|
|
169
|
-
-moz-user-drag: none !important;
|
|
170
|
-
-ms-user-drag: none !important;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
178
|
// ============================================================================
|
|
174
179
|
// $ VISIBILITY
|
|
175
180
|
// ----------------------------------------------------------------------------
|
|
@@ -55,9 +55,9 @@ const cssFixture = `
|
|
|
55
55
|
|
|
56
56
|
const htmlFixture = `
|
|
57
57
|
<form class="d-flex gy4 fd-column">
|
|
58
|
-
<label class="
|
|
58
|
+
<label class="s-label" for="question-title">Question title</label>
|
|
59
59
|
<div class="d-flex ps-relative">
|
|
60
|
-
<input class="
|
|
60
|
+
<input class="s-input" type="text" id="question-title" placeholder="e.g. Why doesn’t Stack Overflow use a custom web font?"/>
|
|
61
61
|
</div>
|
|
62
62
|
</form>
|
|
63
63
|
`;
|
package/lib/stacks-static.less
CHANGED
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
@import "components/prose/prose.less";
|
|
43
43
|
@import "components/select/select.less";
|
|
44
44
|
@import "components/sidebar-widget/sidebar-widget.less";
|
|
45
|
-
@import "components/skeleton/skeleton.less";
|
|
46
45
|
@import "components/spinner/spinner.less";
|
|
47
46
|
@import "components/table/table.less";
|
|
48
47
|
@import "components/table-container/table-container.less";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackoverflow/stacks",
|
|
3
3
|
"description": "Stack Overflow’s CSS and Design Pattern Library. Stacks is an atomic CSS library with classes and components for rapidly building Stack Overflow.",
|
|
4
|
-
"version": "3.0.0-beta.
|
|
4
|
+
"version": "3.0.0-beta.19",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"lib",
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
.s-skeleton {
|
|
2
|
-
// BASE COMPONENT-SPECIFIC CUSTOM PROPERTIES
|
|
3
|
-
// TODO verify colors with design
|
|
4
|
-
--_sk-bg-1: var(--black-400);
|
|
5
|
-
--_sk-bg-2: var(--black-350);
|
|
6
|
-
--_sk-bg-3: var(--black-300);
|
|
7
|
-
--_sk-o: 0.25;
|
|
8
|
-
|
|
9
|
-
// CONTEXTUAL STYLES
|
|
10
|
-
.highcontrast-mode({
|
|
11
|
-
--_sk-o: 0.4;
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
@keyframes flow {
|
|
15
|
-
0% {
|
|
16
|
-
background-position: 400% 50%;
|
|
17
|
-
}
|
|
18
|
-
100% {
|
|
19
|
-
background-position: 0% 50%;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// VARIANTS
|
|
24
|
-
&&__ai {
|
|
25
|
-
--_sk-bg-1: #ac76f0;
|
|
26
|
-
--_sk-bg-2: #297fff;
|
|
27
|
-
--_sk-bg-3: #6abcf8;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&,
|
|
31
|
-
&:after,
|
|
32
|
-
&:before {
|
|
33
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
34
|
-
animation: flow 8s linear infinite;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
background-image: linear-gradient(
|
|
38
|
-
to right,
|
|
39
|
-
var(--_sk-bg-1) 8%,
|
|
40
|
-
var(--_sk-bg-2) 16%,
|
|
41
|
-
var(--_sk-bg-3) 25%,
|
|
42
|
-
var(--_sk-bg-1) 42%,
|
|
43
|
-
var(--_sk-bg-2) 58%,
|
|
44
|
-
var(--_sk-bg-3) 75%,
|
|
45
|
-
var(--_sk-bg-1) 83%
|
|
46
|
-
);
|
|
47
|
-
background-size: 400% 100%;
|
|
48
|
-
border-radius: var(--br-md);
|
|
49
|
-
display: block;
|
|
50
|
-
height: var(--su16);
|
|
51
|
-
position: relative;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&:after,
|
|
55
|
-
&:before {
|
|
56
|
-
content: '';
|
|
57
|
-
position: relative;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&:after {
|
|
61
|
-
top: calc(var(--su4));
|
|
62
|
-
width: calc(2/3 * 100%);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&:before {
|
|
66
|
-
top: calc(var(--su32) + var(--su8));
|
|
67
|
-
width: calc(1/3 * 100%);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
margin-bottom: var(--su48);
|
|
71
|
-
opacity: var(--_sk-o);
|
|
72
|
-
width: 100%;
|
|
73
|
-
}
|