@stackoverflow/stacks 2.7.5 → 2.8.0

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.
@@ -0,0 +1,73 @@
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-lg);
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
+ }
@@ -43,6 +43,7 @@
43
43
  @import "components/prose/prose.less";
44
44
  @import "components/select/select.less";
45
45
  @import "components/sidebar-widget/sidebar-widget.less";
46
+ @import "components/skeleton/skeleton.less";
46
47
  @import "components/spinner/spinner.less";
47
48
  @import "components/table/table.less";
48
49
  @import "components/table-container/table-container.less";
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "https://github.com/StackExchange/Stacks.git"
7
7
  },
8
- "version": "2.7.5",
8
+ "version": "2.8.0",
9
9
  "files": [
10
10
  "dist",
11
11
  "lib",
@@ -45,15 +45,15 @@
45
45
  "@popperjs/core": "^2.11.8"
46
46
  },
47
47
  "devDependencies": {
48
- "@11ty/eleventy": "^3.0.0",
48
+ "@11ty/eleventy": "^3.1.0",
49
49
  "@changesets/changelog-github": "^0.5.1",
50
- "@changesets/cli": "^2.29.3",
51
- "@eslint/js": "^9.26.0",
50
+ "@changesets/cli": "^2.29.4",
51
+ "@eslint/js": "^9.27.0",
52
52
  "@highlightjs/cdn-assets": "^11.11.1",
53
53
  "@open-wc/testing": "^4.0.0",
54
54
  "@rollup/plugin-commonjs": "^26.0.1",
55
55
  "@rollup/plugin-replace": "^6.0.2",
56
- "@stackoverflow/stacks-editor": "^0.13.0",
56
+ "@stackoverflow/stacks-editor": "^0.15.0",
57
57
  "@stackoverflow/stacks-icons": "^6.2.0",
58
58
  "@testing-library/dom": "^10.4.0",
59
59
  "@testing-library/user-event": "^14.6.1",
@@ -70,15 +70,15 @@
70
70
  "concurrently": "^9.1.2",
71
71
  "css-loader": "^7.1.2",
72
72
  "cssbeautify": "^0.3.1",
73
- "cssnano": "^7.0.6",
73
+ "cssnano": "^7.0.7",
74
74
  "docsearch.js": "^2.6.3",
75
75
  "eleventy-plugin-highlightjs": "^1.1.0",
76
76
  "eleventy-plugin-nesting-toc": "^1.3.0",
77
- "eslint": "^9.25.0",
77
+ "eslint": "^9.27.0",
78
78
  "eslint-config-prettier": "^10.1.2",
79
79
  "eslint-plugin-no-unsanitized": "^4.1.2",
80
80
  "jquery": "^3.7.1",
81
- "less-loader": "^12.2.0",
81
+ "less-loader": "^12.3.0",
82
82
  "list.js": "^2.3.1",
83
83
  "markdown-it": "^14.1.0",
84
84
  "mini-css-extract-plugin": "^2.9.2",