@stackoverflow/stacks 3.0.0-beta.17 → 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 +36 -82
- package/dist/css/stacks.min.css +1 -1
- package/lib/atomic/misc.less +20 -15
- package/lib/base/configuration-static.less +3 -3
- 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/exports/constants-helpers.less +3 -3
- 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
|
// ----------------------------------------------------------------------------
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
// legal options are `meyer` for the Eric Meyer reset, and `none` if no CSS reset should be compiled in.
|
|
14
14
|
//
|
|
15
15
|
//
|
|
16
|
-
// #stacks-config-static { @breakpoints:
|
|
16
|
+
// #stacks-config-static { @breakpoints: 92.25rem, 71.875rem, 48.75rem; }
|
|
17
17
|
//
|
|
18
18
|
// @breakpoints is a list of values "optional_selector1, large_breakpoint1, medium_breakpoint1, small_breakpoint1, optional_selector2, ..."
|
|
19
19
|
//
|
|
20
20
|
// Example:
|
|
21
21
|
//
|
|
22
22
|
// @breakpoints:
|
|
23
|
-
//
|
|
23
|
+
// 92.25rem, 71.875rem, 48.75rem,
|
|
24
24
|
// 'html.smaller_breakpoints', 1164px, 880px, 540px,
|
|
25
25
|
// 'html.even_smaller_breakpoints', 200px, 100px, 50px;
|
|
26
26
|
//
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
// ...
|
|
38
38
|
// </html>
|
|
39
39
|
//
|
|
40
|
-
// With the example @breakpoints setting from above, this <div> will be hidden below
|
|
40
|
+
// With the example @breakpoints setting from above, this <div> will be hidden below 92.25rem even though the smaller_breakpoints class
|
|
41
41
|
// is on the root element, because the selector-free breakpoint group still applies.
|
|
42
42
|
//
|
|
43
43
|
// Any selector, if given, MUST select the root (html) element.
|
|
@@ -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
|
`;
|
|
@@ -55,9 +55,9 @@ body {
|
|
|
55
55
|
// ============================================================================
|
|
56
56
|
// $ RESPONSIVE BREAKPOINTS
|
|
57
57
|
// ----------------------------------------------------------------------------
|
|
58
|
-
@breakpoint-lg:
|
|
59
|
-
@breakpoint-md:
|
|
60
|
-
@breakpoint-sm:
|
|
58
|
+
@breakpoint-lg: 92.25rem; // 1476px
|
|
59
|
+
@breakpoint-md: 71.875rem; // 1150px
|
|
60
|
+
@breakpoint-sm: 48.75rem; // 780px
|
|
61
61
|
|
|
62
62
|
// ============================================================================
|
|
63
63
|
// $ SCROLLBAR STYLING
|
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
|
-
}
|