@stackoverflow/stacks 2.0.0-rc.7 → 2.0.0-rc.9
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 +68 -27
- package/dist/css/stacks.min.css +1 -1
- package/lib/components/anchor/anchor.less +9 -5
- package/lib/components/button/button.less +2 -2
- package/lib/components/link/link.less +8 -8
- package/lib/components/select/select.less +1 -1
- package/lib/components/tag/tag.less +2 -2
- package/lib/exports/__snapshots__/color.less.test.ts.snap +40 -1
- package/lib/exports/color-sets.less +1 -1
- package/lib/exports/color.less +17 -1
- package/package.json +1 -1
|
@@ -15,28 +15,32 @@
|
|
|
15
15
|
// VARIANTS
|
|
16
16
|
&&__danger {
|
|
17
17
|
--_an-a-fc: var(--red-400);
|
|
18
|
-
--_an-a-fc-hover: var(--red-
|
|
18
|
+
--_an-a-fc-hover: var(--red-500);
|
|
19
|
+
--_an-a-fc-visited: var(--red-600);
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
&&__default {
|
|
22
23
|
--_an-a-fc: var(--theme-link-color, var(--theme-secondary-400));
|
|
23
|
-
--_an-a-fc-hover: var(--theme-link-color-hover, var(--theme-secondary-
|
|
24
|
-
--_an-a-fc-visited: var(--theme-link-color-visited, var(--theme-secondary-
|
|
24
|
+
--_an-a-fc-hover: var(--theme-link-color-hover, var(--theme-secondary-500));
|
|
25
|
+
--_an-a-fc-visited: var(--theme-link-color-visited, var(--theme-secondary-600));
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
&&__grayscale {
|
|
28
|
-
--_an-a-fc: var(--black-
|
|
29
|
+
--_an-a-fc: var(--black-400);
|
|
29
30
|
--_an-a-fc-hover: var(--black-500);
|
|
31
|
+
--_an-a-fc-visited: var(--black-600);
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
&&__inherit {
|
|
33
35
|
--_an-a-fc: inherit;
|
|
34
36
|
--_an-a-fc-hover: inherit;
|
|
37
|
+
--_an-a-fc-visited: inherit;
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
&&__muted {
|
|
38
41
|
--_an-a-fc: var(--black-400);
|
|
39
|
-
--_an-a-fc-hover: var(--black-
|
|
42
|
+
--_an-a-fc-hover: var(--black-500);
|
|
43
|
+
--_an-a-fc-visited: var(--black-600);
|
|
40
44
|
}
|
|
41
45
|
|
|
42
46
|
&&__danger,
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
--_bu-filled-fc-hover: var(--theme-button-primary-hover-color, var(--white));
|
|
30
30
|
--_bu-filled-fc-selected: var(--theme-button-primary-selected-color, var(--white));
|
|
31
31
|
// Outlined
|
|
32
|
-
--_bu-outlined-bc: var(--theme-button-outlined-border-color, var(
|
|
32
|
+
--_bu-outlined-bc: var(--theme-button-outlined-border-color, var(--theme-secondary-400));
|
|
33
33
|
--_bu-outlined-bg: var(--theme-button-outlined-background-color);
|
|
34
|
-
--_bu-outlined-bc-selected: var(--theme-button-outlined-selected-border-color, var(
|
|
34
|
+
--_bu-outlined-bc-selected: var(--theme-button-outlined-selected-border-color, var(--theme-secondary-400));
|
|
35
35
|
--_bu-outlined-bg-selected: var(--theme-button-selected-background-color, var(--theme-secondary-300));
|
|
36
36
|
--_bu-outlined-fc-selected: var(--theme-button-selected-color, var(--theme-secondary-600));
|
|
37
37
|
// CHILD COMPONENT CUSTOM PROPERTIES
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
a,
|
|
4
4
|
.s-link {
|
|
5
5
|
--_li-fc: var(--theme-link-color, var(--theme-secondary-400));
|
|
6
|
-
--_li-fc-hover: var(--theme-link-color-hover, var(--theme-secondary-
|
|
7
|
-
--_li-fc-visited: var(--theme-link-color-visited, var(--theme-secondary-
|
|
6
|
+
--_li-fc-hover: var(--theme-link-color-hover, var(--theme-secondary-500));
|
|
7
|
+
--_li-fc-visited: var(--theme-link-color-visited, var(--theme-secondary-600));
|
|
8
8
|
|
|
9
9
|
// CONTEXTUAL STYLES
|
|
10
10
|
.highcontrast-mode({
|
|
@@ -61,14 +61,14 @@ a,
|
|
|
61
61
|
// VARIANTS
|
|
62
62
|
&__danger {
|
|
63
63
|
--_li-fc: var(--red-400);
|
|
64
|
-
--_li-fc-hover: var(--red-
|
|
65
|
-
--_li-fc-visited: var(--red-
|
|
64
|
+
--_li-fc-hover: var(--red-500);
|
|
65
|
+
--_li-fc-visited: var(--red-600);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
&__grayscale {
|
|
69
|
-
--_li-fc: var(--black-
|
|
70
|
-
--_li-fc-hover: var(--black-
|
|
71
|
-
--_li-fc-visited: var(--black-
|
|
69
|
+
--_li-fc: var(--black-500);
|
|
70
|
+
--_li-fc-hover: var(--black-400);
|
|
71
|
+
--_li-fc-visited: var(--black-600);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
&__inherit {
|
|
@@ -80,7 +80,7 @@ a,
|
|
|
80
80
|
&__muted {
|
|
81
81
|
--_li-fc: var(--black-400);
|
|
82
82
|
--_li-fc-hover: var(--black-500);
|
|
83
|
-
--_li-fc-visited: var(--black-
|
|
83
|
+
--_li-fc-visited: var(--black-600);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.s-select {
|
|
2
2
|
--_se-arrow-bc: currentColor transparent;
|
|
3
3
|
--_se-arrow-size: var(--su-static4); // Constant
|
|
4
|
-
--_se-select-bc: var(--bc-
|
|
4
|
+
--_se-select-bc: var(--bc-darker);
|
|
5
5
|
--_se-select-bc-focus: var(--theme-secondary-400);
|
|
6
6
|
--_se-select-bs-focus: 0 0 0 var(--su-static4) var(--focus-ring);
|
|
7
7
|
--_se-select-bg: var(--white);
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
--_ta-bc: var(--theme-tag-border-color, transparent);
|
|
3
3
|
--_ta-bc-hover: var(--theme-tag-hover-border-color, transparent);
|
|
4
4
|
--_ta-bc-selected: transparent;
|
|
5
|
-
--_ta-bg: var(--theme-tag-background-color, var(
|
|
5
|
+
--_ta-bg: var(--theme-tag-background-color, var(--theme-secondary-100));
|
|
6
6
|
--_ta-bg-hover: var(--theme-tag-hover-background-color, var(--theme-secondary-200));
|
|
7
7
|
--_ta-bg-selected: var(--theme-secondary-300);
|
|
8
8
|
--_ta-br: var(--br-sm);
|
|
9
|
-
--_ta-fc: var(--theme-tag-color, var(
|
|
9
|
+
--_ta-fc: var(--theme-tag-color, var(--theme-secondary-500));
|
|
10
10
|
--_ta-fc-hover: var(--theme-tag-hover-color, var(--theme-secondary-600));
|
|
11
11
|
--_ta-fc-selected: var(--theme-secondary-600);
|
|
12
12
|
--_ta-fs: var(--fs-caption);
|
|
@@ -6,6 +6,23 @@ exports[`colors > should output all the css generated by the v2 colors/theming g
|
|
|
6
6
|
--_o-disabled-static: 0.5;
|
|
7
7
|
--_black-static: hsl(0, 0%, 0%);
|
|
8
8
|
--_white-static: hsl(0, 0%, 100%);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
body:not(.theme-dark),
|
|
12
|
+
body.theme-highcontrast:not(.theme-dark),
|
|
13
|
+
body:not(.theme-highcontrast):not(.theme-dark),
|
|
14
|
+
body.theme-dark .theme-light__forced,
|
|
15
|
+
body.theme-highcontrast.theme-dark .theme-light__forced,
|
|
16
|
+
body:not(.theme-highcontrast).theme-dark .theme-light__forced,
|
|
17
|
+
body.theme-system .theme-light__forced,
|
|
18
|
+
body.theme-highcontrast.theme-system .theme-light__forced,
|
|
19
|
+
body:not(.theme-highcontrast).theme-system .theme-light__forced,
|
|
20
|
+
body.theme-dark,
|
|
21
|
+
body.theme-highcontrast.theme-dark,
|
|
22
|
+
body:not(.theme-highcontrast).theme-dark,
|
|
23
|
+
body:not(.theme-dark) .theme-dark__forced,
|
|
24
|
+
body.theme-highcontrast:not(.theme-dark) .theme-dark__forced,
|
|
25
|
+
body:not(.theme-highcontrast):not(.theme-dark) .theme-dark__forced {
|
|
9
26
|
--bg-error: var(--red-400);
|
|
10
27
|
--bg-danger: var(--red-400);
|
|
11
28
|
--bg-success: var(--green-400);
|
|
@@ -19,10 +36,32 @@ exports[`colors > should output all the css generated by the v2 colors/theming g
|
|
|
19
36
|
--fc-dark: var(--black-600);
|
|
20
37
|
--fc-error: var(--red-400);
|
|
21
38
|
--fc-danger: var(--red-400);
|
|
22
|
-
--fc-success: var(--green-
|
|
39
|
+
--fc-success: var(--green-400);
|
|
23
40
|
--fc-warning: var(--yellow-500);
|
|
24
41
|
}
|
|
25
42
|
|
|
43
|
+
@media (prefers-color-scheme: dark) {
|
|
44
|
+
body.theme-system,
|
|
45
|
+
body.theme-highcontrast.theme-system,
|
|
46
|
+
body:not(.theme-highcontrast).theme-system {
|
|
47
|
+
--bg-error: var(--red-400);
|
|
48
|
+
--bg-danger: var(--red-400);
|
|
49
|
+
--bg-success: var(--green-400);
|
|
50
|
+
--bg-warning: var(--yellow-500);
|
|
51
|
+
--bc-error: var(--red-400);
|
|
52
|
+
--bc-danger: var(--red-400);
|
|
53
|
+
--bc-success: var(--green-400);
|
|
54
|
+
--bc-warning: var(--yellow-500);
|
|
55
|
+
--fc-light: var(--black-400);
|
|
56
|
+
--fc-medium: var(--black-500);
|
|
57
|
+
--fc-dark: var(--black-600);
|
|
58
|
+
--fc-error: var(--red-400);
|
|
59
|
+
--fc-danger: var(--red-400);
|
|
60
|
+
--fc-success: var(--green-400);
|
|
61
|
+
--fc-warning: var(--yellow-500);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
26
65
|
body:not(.theme-highcontrast):not(.theme-dark),
|
|
27
66
|
body:not(.theme-highcontrast).theme-dark .theme-light__forced,
|
|
28
67
|
body:not(.theme-highcontrast).theme-system .theme-light__forced,
|
package/lib/exports/color.less
CHANGED
|
@@ -5,7 +5,23 @@ body {
|
|
|
5
5
|
--_o-disabled-static: 0.5;
|
|
6
6
|
--_black-static: .set-black()[default];
|
|
7
7
|
--_white-static: .set-white()[default];
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
&,
|
|
10
|
+
&.theme-highcontrast,
|
|
11
|
+
&:not(.theme-highcontrast) {
|
|
12
|
+
&:not(.theme-dark),
|
|
13
|
+
&.theme-dark .theme-light__forced,
|
|
14
|
+
&.theme-system .theme-light__forced,
|
|
15
|
+
&.theme-dark,
|
|
16
|
+
&:not(.theme-dark) .theme-dark__forced {
|
|
17
|
+
.create-colors(.sets-aliased-utility-variables());
|
|
18
|
+
}
|
|
19
|
+
&.theme-system {
|
|
20
|
+
@media (prefers-color-scheme: dark) {
|
|
21
|
+
.create-colors(.sets-aliased-utility-variables());
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
9
25
|
}
|
|
10
26
|
|
|
11
27
|
// Light, dark mode
|