@stackoverflow/stacks 2.0.7 → 2.0.8
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 +30 -30
- package/dist/css/stacks.min.css +1 -1
- package/lib/atomic/__snapshots__/color.less.test.ts.snap +1312 -1312
- package/lib/atomic/misc.less +3 -3
- package/lib/atomic/v1/__snapshots__/color.less.test.ts.snap +2354 -2354
- package/lib/base/internal.less +1 -1
- package/lib/components/badge/badge.less +3 -3
- package/lib/components/banner/banner.less +6 -6
- package/lib/components/checkbox_radio/checkbox_radio.less +4 -4
- package/lib/components/code-block/code-block.a11y.test.ts +5 -6
- package/lib/components/prose/prose.less +1 -1
- package/lib/components/tag/tag.less +2 -2
- package/lib/components/toggle-switch/toggle-switch.less +2 -2
- package/lib/components/uploader/uploader.less +2 -2
- package/lib/exports/__snapshots__/color-mixins.less.test.ts.snap +96 -96
- package/package.json +22 -22
package/lib/base/internal.less
CHANGED
|
@@ -215,6 +215,6 @@
|
|
|
215
215
|
#bullet-arrow(@col) {
|
|
216
216
|
@image: '<?xml version="1.0" encoding="UTF-8"?><svg version="1.1" viewBox="0 0 7 10" xmlns="http://www.w3.org/2000/svg"><path d="m0.72153 0.68446 4.1336 4.3077-4.1336 4.3077" fill="none" stroke="@{col}" stroke-width="2"/></svg>';
|
|
217
217
|
@encoded-image: escape(@image);
|
|
218
|
-
background-image: url("data:image/svg+xml
|
|
218
|
+
background-image: url("data:image/svg+xml;,@{encoded-image}");
|
|
219
219
|
}
|
|
220
220
|
}
|
|
@@ -125,14 +125,14 @@
|
|
|
125
125
|
--_ba-g: calc(var(--su-static4) - var(--su-static1)); // 3px
|
|
126
126
|
// :before icon
|
|
127
127
|
--_ba-before-h: calc(var(--su-static16) - var(--su-static2)); // 14px
|
|
128
|
-
--_ba-before-icon: url("data:image/svg+xml
|
|
128
|
+
--_ba-before-icon: url("data:image/svg+xml;,%3Csvg width='12' height='14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.528.746c.257-.329.675-.327.93 0l4.42 5.66c.258.329.257.864 0 1.192l-4.42 5.66c-.256.328-.674.327-.93 0l-4.42-5.66c-.257-.329-.256-.865 0-1.192l4.42-5.66z' fill='%23fff'/%3E%3C/svg%3E");
|
|
129
129
|
--_ba-before-mt: calc(var(--su-static1) * -1); // -1px
|
|
130
130
|
--_ba-before-w: var(--su-static12);
|
|
131
131
|
|
|
132
132
|
// Sizes
|
|
133
133
|
&.s-badge__xs {
|
|
134
134
|
--_ba-before-h: calc(var(--su-static8) + var(--su-static1)); // 9px
|
|
135
|
-
--_ba-before-icon: url("data:image/svg+xml
|
|
135
|
+
--_ba-before-icon: url("data:image/svg+xml;,%3Csvg width='7' height='9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 .246c.3-.329.701-.327 1 0L6.776 4c.3.329.298.672 0 1L4 8.75c-.299.329-.702.327-1 0L.224 5c-.284-.324-.285-.675 0-1L3 .246z' fill='%23fff'/%3E%3C/svg%3E");
|
|
136
136
|
--_ba-before-mt: 0;
|
|
137
137
|
--_ba-before-w: calc(var(--su-static8) - var(--su-static1)); // 7px
|
|
138
138
|
}
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
&.s-badge__sm {
|
|
141
141
|
--_ba-g: var(--su-static2);
|
|
142
142
|
--_ba-before-h: calc(var(--su-static12) - var(--su-static1)); // 11px
|
|
143
|
-
--_ba-before-icon: url("data:image/svg+xml
|
|
143
|
+
--_ba-before-icon: url("data:image/svg+xml;,%3Csvg width='9' height='11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.55.246c.257-.329.647-.327.903 0l3.36 4.66c.256.329.256.864 0 1.192L4.45 10.75c-.257.329-.644.327-.9 0L.192 6.098c-.256-.329-.256-.865 0-1.192L3.55.246z' fill='%23fff'/%3E%3C/svg%3E");
|
|
144
144
|
--_ba-before-mt: 0;
|
|
145
145
|
--_ba-before-w: calc(var(--su-static8) + var(--su-static1)); // 9px
|
|
146
146
|
}
|
|
@@ -2,22 +2,23 @@
|
|
|
2
2
|
// TODO deprecate .s-banner (by turning it into a modifier on .s-notice)
|
|
3
3
|
// This would reduce the amount of CSS we ship to the client and simplify our codebase
|
|
4
4
|
.s-banner {
|
|
5
|
-
--_no-
|
|
5
|
+
--_no-ty-offset: 0;
|
|
6
|
+
--_no-ty: var(--theme-topbar-height, calc(var(--su-static48) + var(--su-static8)));
|
|
6
7
|
.construct-notice-component(s-banner);
|
|
7
8
|
|
|
8
9
|
&[aria-hidden="true"] { // If you want to hide and reveal the banner
|
|
9
|
-
--_no-
|
|
10
|
+
--_no-ty-offset: -1;
|
|
10
11
|
opacity: 0;
|
|
11
12
|
visibility: hidden;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
&[aria-hidden="false"] {
|
|
15
|
-
--_no-
|
|
16
|
+
--_no-ty-offset: 1;
|
|
16
17
|
opacity: 1;
|
|
17
18
|
visibility: visible;
|
|
18
19
|
|
|
19
20
|
&.is-pinned { // If you want to put the banner above the topbar
|
|
20
|
-
--_no-
|
|
21
|
+
--_no-ty-offset: 0;
|
|
21
22
|
z-index: calc(var(--zi-navigation-fixed) + 1);
|
|
22
23
|
}
|
|
23
24
|
}
|
|
@@ -37,8 +38,7 @@
|
|
|
37
38
|
inset: 0 0 auto 0;
|
|
38
39
|
padding: var(--su12);
|
|
39
40
|
position: fixed;
|
|
40
|
-
|
|
41
|
-
transform: translate3d(0, calc(var(--theme-topbar-height, calc(var(--su-static48) + var(--su-static8))) * var(--_no-x-offset)), 0);
|
|
41
|
+
transform: translate3d(0, calc(var(--_no-ty) * var(--_no-ty-offset)), 0);
|
|
42
42
|
width: 100%;
|
|
43
43
|
z-index: calc(var(--zi-navigation-fixed) - 1); // Tuck below topbar
|
|
44
44
|
}
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
// CONTEXTUAL STYLES
|
|
55
55
|
.dark-mode({
|
|
56
56
|
&:checked {
|
|
57
|
-
--_ch-bg-image: url("data:image/svg+xml
|
|
57
|
+
--_ch-bg-image: url("data:image/svg+xml;,%3Csvg width='11' height='11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 3.41L8.59 2 4 6.59 2.41 5 1 6.41l3 3z' fill='@{ch-bg-image-fill-dark}'/%3E%3C/svg%3E");
|
|
58
58
|
}
|
|
59
59
|
&:indeterminate {
|
|
60
|
-
--_ch-bg-image: url("data:image/svg+xml
|
|
60
|
+
--_ch-bg-image: url("data:image/svg+xml;,%3Csvg width='11' height='11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4.5 h7 v2 h-7 z' fill='@{ch-bg-image-fill-dark}'/%3E%3C/svg%3E");
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
&:checked {
|
|
83
|
-
--_ch-bg-image: url("data:image/svg+xml
|
|
83
|
+
--_ch-bg-image: url("data:image/svg+xml;,%3Csvg width='11' height='11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 3.41L8.59 2 4 6.59 2.41 5 1 6.41l3 3z' fill='@{ch-bg-image-fill}'/%3E%3C/svg%3E");
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
&:indeterminate {
|
|
87
|
-
--_ch-bg-image: url("data:image/svg+xml
|
|
87
|
+
--_ch-bg-image: url("data:image/svg+xml;,%3Csvg width='11' height='11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4.5 h7 v2 h-7 z' fill='@{ch-bg-image-fill}'/%3E%3C/svg%3E");
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
// INTERACTION
|
|
@@ -15,14 +15,13 @@ describe("code block", () => {
|
|
|
15
15
|
...defaultOptions,
|
|
16
16
|
includeNullModifier: false,
|
|
17
17
|
},
|
|
18
|
+
attributes: {
|
|
19
|
+
tabindex: "0",
|
|
20
|
+
},
|
|
18
21
|
// TODO revisit these skipped test ids
|
|
19
22
|
skippedTestids: [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"s-code-block-language-html-highcontrast-dark",
|
|
23
|
-
"s-code-block-language-html-dark",
|
|
24
|
-
"s-code-block-language-css-dark",
|
|
25
|
-
"s-code-block-language-javascript-dark",
|
|
23
|
+
/s-code-block-language-(html|css|javascript)-dark/,
|
|
24
|
+
/s-code-block-language-html-highcontrast-(light|dark)/,
|
|
26
25
|
"s-code-block-language-javascript-highcontrast-light",
|
|
27
26
|
],
|
|
28
27
|
});
|
|
@@ -382,7 +382,7 @@
|
|
|
382
382
|
top: var(--_pr-spoiler-after-t);
|
|
383
383
|
transition: @pr-spoiler-transition;
|
|
384
384
|
|
|
385
|
-
background-image: url("data:image/svg+xml
|
|
385
|
+
background-image: url("data:image/svg+xml;,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' fill='rgb(132, 141, 149)' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M9 17A8 8 0 119 1a8 8 0 010 16zM8 4v6h2V4H8zm0 8v2h2v-2H8z'%3E%3C/path%3E%3C/svg%3E");
|
|
386
386
|
background-position: center right;
|
|
387
387
|
background-repeat: no-repeat;
|
|
388
388
|
color: var(--black-400);
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
|
|
101
101
|
&__ignored, // TODO: remove all single `&` ignored styles once core no longer requires them
|
|
102
102
|
&&__ignored {
|
|
103
|
-
--_ta-before-icon: url("data:image/svg+xml
|
|
103
|
+
--_ta-before-icon: url("data:image/svg+xml;,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3.52 7.38 1.58 9.26A12.38 12.38 0 0 1 0 7s2.63-5.14 7.05-5.14c.66 0 1.28.12 1.86.32L7.44 3.6a3.48 3.48 0 0 0-3.92 3.78ZM5.3 9.99c.5.28 1.1.44 1.71.44 1.94 0 3.5-1.53 3.5-3.43 0-.62-.17-1.21-.47-1.72L8.7 6.6a1.73 1.73 0 0 1-2.08 2.07L5.29 10Zm6.23-6.19A12.7 12.7 0 0 1 14 7s-2.63 5.14-6.95 5.14A6.1 6.1 0 0 1 4 11.3L2.27 13l-1.4-1.36L11.9 1l1.23 1.2-1.6 1.6Z'/%3E%3C/svg%3E");
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
// moderator overrides other muted and required, required overrides muted
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
}
|
|
152
152
|
&__watched, // TODO: remove all single `&` watched styles once core no longer requires them
|
|
153
153
|
&&__watched {
|
|
154
|
-
--_ta-before-icon: url("data:image/svg+xml
|
|
154
|
+
--_ta-before-icon: url("data:image/svg+xml;,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7.05 1C2.63 1 0 6.5 0 6.5S2.63 12 7.05 12C11.38 12 14 6.5 14 6.5S11.37 1 7.05 1ZM7 10.17A3.59 3.59 0 0 1 3.5 6.5 3.6 3.6 0 0 1 7 2.83c1.94 0 3.5 1.65 3.5 3.67A3.57 3.57 0 0 1 7 10.17Zm0-1.84c.97 0 1.75-.81 1.75-1.83S7.97 4.67 7 4.67s-1.75.81-1.75 1.83S6.03 8.33 7 8.33Z'/%3E%3C/svg%3E");
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
// CHILD ELEMENTS
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
@ts-bg-image-fill: .set-white()[default];
|
|
3
3
|
@ts-bg-image-fill-dark: .set-white-dark()[default];
|
|
4
4
|
--_ts-bg: var(--black-350);
|
|
5
|
-
--_ts-bg-image: url("data:image/svg+xml
|
|
5
|
+
--_ts-bg-image: url("data:image/svg+xml;,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='@{ts-bg-image-fill}'/%3e%3c/svg%3e");
|
|
6
6
|
--_ts-bg-ps: left center;
|
|
7
7
|
--_ts-bs-color: transparent;
|
|
8
8
|
--_ts-multiple-bg: unset;
|
|
9
9
|
--_ts-multiple-fc: var(--black-400);
|
|
10
10
|
|
|
11
11
|
.dark-mode({
|
|
12
|
-
--_ts-bg-image: url("data:image/svg+xml
|
|
12
|
+
--_ts-bg-image: url("data:image/svg+xml;,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='@{ts-bg-image-fill-dark}'/%3e%3c/svg%3e");
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
fieldset[disabled] &,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.s-uploader {
|
|
2
2
|
// COMPONENT-SPECIFIC CONSTANTS
|
|
3
|
-
--_up-bg-b-image: url("data:image/svg+xml
|
|
3
|
+
--_up-bg-b-image: url("data:image/svg+xml;,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='5' ry='5' stroke='%23000000' stroke-width='8' stroke-dasharray='7%2c 22' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e"); // Keeping this a custom property to save a few bytes
|
|
4
4
|
// COMPONENT-SPECIFIC CUSTOM PROPERTIES
|
|
5
5
|
--_up-bg: var(--black-100);
|
|
6
6
|
--_up-bg-focus: var(--black-150);
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
object-fit: cover;
|
|
162
162
|
}
|
|
163
163
|
&:not(img) {
|
|
164
|
-
background-image: url("data:image/svg+xml
|
|
164
|
+
background-image: url("data:image/svg+xml;,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' fill='%23535A60' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M3 3a2 2 0 012-2h6l4 4v10a2 2 0 01-2 2H5a2 2 0 01-2-2V3zm7-1.5V6h4.5L10 1.5z'%3E%3C/path%3E%3C/svg%3E");
|
|
165
165
|
background-position: center;
|
|
166
166
|
background-repeat: no-repeat;
|
|
167
167
|
}
|
|
@@ -4,151 +4,151 @@ exports[`color-mixins > colors > .create-aliased-utility-classes 1`] = `
|
|
|
4
4
|
"/* .create-aliased-utility-classes() */
|
|
5
5
|
/* .create-aliased-utility-classes(dark) */
|
|
6
6
|
body .fc-light,
|
|
7
|
-
body .h
|
|
8
|
-
body .f
|
|
9
|
-
body .f
|
|
7
|
+
body .h\\:fc-light:hover,
|
|
8
|
+
body .f\\:fc-light:focus,
|
|
9
|
+
body .f\\:fc-light:focus-within {
|
|
10
10
|
color: var(--fc-light) !important;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
body .fc-medium,
|
|
14
|
-
body .h
|
|
15
|
-
body .f
|
|
16
|
-
body .f
|
|
14
|
+
body .h\\:fc-medium:hover,
|
|
15
|
+
body .f\\:fc-medium:focus,
|
|
16
|
+
body .f\\:fc-medium:focus-within {
|
|
17
17
|
color: var(--fc-medium) !important;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
body .fc-dark,
|
|
21
|
-
body .h
|
|
22
|
-
body .f
|
|
23
|
-
body .f
|
|
21
|
+
body .h\\:fc-dark:hover,
|
|
22
|
+
body .f\\:fc-dark:focus,
|
|
23
|
+
body .f\\:fc-dark:focus-within {
|
|
24
24
|
color: var(--fc-dark) !important;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
body .fc-error,
|
|
28
|
-
body .h
|
|
29
|
-
body .f
|
|
30
|
-
body .f
|
|
28
|
+
body .h\\:fc-error:hover,
|
|
29
|
+
body .f\\:fc-error:focus,
|
|
30
|
+
body .f\\:fc-error:focus-within {
|
|
31
31
|
color: var(--fc-error) !important;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
body .fc-danger,
|
|
35
|
-
body .h
|
|
36
|
-
body .f
|
|
37
|
-
body .f
|
|
35
|
+
body .h\\:fc-danger:hover,
|
|
36
|
+
body .f\\:fc-danger:focus,
|
|
37
|
+
body .f\\:fc-danger:focus-within {
|
|
38
38
|
color: var(--fc-danger) !important;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
body .fc-success,
|
|
42
|
-
body .h
|
|
43
|
-
body .f
|
|
44
|
-
body .f
|
|
42
|
+
body .h\\:fc-success:hover,
|
|
43
|
+
body .f\\:fc-success:focus,
|
|
44
|
+
body .f\\:fc-success:focus-within {
|
|
45
45
|
color: var(--fc-success) !important;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
body .fc-warning,
|
|
49
|
-
body .h
|
|
50
|
-
body .f
|
|
51
|
-
body .f
|
|
49
|
+
body .h\\:fc-warning:hover,
|
|
50
|
+
body .f\\:fc-warning:focus,
|
|
51
|
+
body .f\\:fc-warning:focus-within {
|
|
52
52
|
color: var(--fc-warning) !important;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
body .bg-error,
|
|
56
|
-
body .h
|
|
57
|
-
body .f
|
|
58
|
-
body .f
|
|
56
|
+
body .h\\:bg-error:hover,
|
|
57
|
+
body .f\\:bg-error:focus,
|
|
58
|
+
body .f\\:bg-error:focus-within {
|
|
59
59
|
background-color: var(--bg-error) !important;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
body .bg-danger,
|
|
63
|
-
body .h
|
|
64
|
-
body .f
|
|
65
|
-
body .f
|
|
63
|
+
body .h\\:bg-danger:hover,
|
|
64
|
+
body .f\\:bg-danger:focus,
|
|
65
|
+
body .f\\:bg-danger:focus-within {
|
|
66
66
|
background-color: var(--bg-danger) !important;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
body .bg-success,
|
|
70
|
-
body .h
|
|
71
|
-
body .f
|
|
72
|
-
body .f
|
|
70
|
+
body .h\\:bg-success:hover,
|
|
71
|
+
body .f\\:bg-success:focus,
|
|
72
|
+
body .f\\:bg-success:focus-within {
|
|
73
73
|
background-color: var(--bg-success) !important;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
body .bg-warning,
|
|
77
|
-
body .h
|
|
78
|
-
body .f
|
|
79
|
-
body .f
|
|
77
|
+
body .h\\:bg-warning:hover,
|
|
78
|
+
body .f\\:bg-warning:focus,
|
|
79
|
+
body .f\\:bg-warning:focus-within {
|
|
80
80
|
background-color: var(--bg-warning) !important;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
body .bc-error,
|
|
84
|
-
body .h
|
|
85
|
-
body .f
|
|
86
|
-
body .f
|
|
84
|
+
body .h\\:bc-error:hover,
|
|
85
|
+
body .f\\:bc-error:focus,
|
|
86
|
+
body .f\\:bc-error:focus-within {
|
|
87
87
|
border-color: var(--bc-error) !important;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
body .bc-danger,
|
|
91
|
-
body .h
|
|
92
|
-
body .f
|
|
93
|
-
body .f
|
|
91
|
+
body .h\\:bc-danger:hover,
|
|
92
|
+
body .f\\:bc-danger:focus,
|
|
93
|
+
body .f\\:bc-danger:focus-within {
|
|
94
94
|
border-color: var(--bc-danger) !important;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
body .bc-success,
|
|
98
|
-
body .h
|
|
99
|
-
body .f
|
|
100
|
-
body .f
|
|
98
|
+
body .h\\:bc-success:hover,
|
|
99
|
+
body .f\\:bc-success:focus,
|
|
100
|
+
body .f\\:bc-success:focus-within {
|
|
101
101
|
border-color: var(--bc-success) !important;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
body .bc-warning,
|
|
105
|
-
body .h
|
|
106
|
-
body .f
|
|
107
|
-
body .f
|
|
105
|
+
body .h\\:bc-warning:hover,
|
|
106
|
+
body .f\\:bc-warning:focus,
|
|
107
|
+
body .f\\:bc-warning:focus-within {
|
|
108
108
|
border-color: var(--bc-warning) !important;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
body.theme-dark .d
|
|
111
|
+
body.theme-dark .d\\:fc-light {
|
|
112
112
|
color: var(--fc-light) !important;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
body.theme-dark .d
|
|
115
|
+
body.theme-dark .d\\:fc-medium {
|
|
116
116
|
color: var(--fc-medium) !important;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
body.theme-dark .d
|
|
119
|
+
body.theme-dark .d\\:fc-dark {
|
|
120
120
|
color: var(--fc-dark) !important;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
body.theme-dark .d
|
|
123
|
+
body.theme-dark .d\\:fc-error {
|
|
124
124
|
color: var(--fc-error) !important;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
body.theme-dark .d
|
|
127
|
+
body.theme-dark .d\\:fc-danger {
|
|
128
128
|
color: var(--fc-danger) !important;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
body.theme-dark .d
|
|
131
|
+
body.theme-dark .d\\:fc-success {
|
|
132
132
|
color: var(--fc-success) !important;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
body.theme-dark .d
|
|
135
|
+
body.theme-dark .d\\:fc-warning {
|
|
136
136
|
color: var(--fc-warning) !important;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
body.theme-dark .d
|
|
139
|
+
body.theme-dark .d\\:bg-error {
|
|
140
140
|
background-color: var(--bg-error) !important;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
body.theme-dark .d
|
|
143
|
+
body.theme-dark .d\\:bg-danger {
|
|
144
144
|
background-color: var(--bg-danger) !important;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
body.theme-dark .d
|
|
147
|
+
body.theme-dark .d\\:bg-success {
|
|
148
148
|
background-color: var(--bg-success) !important;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
body.theme-dark .d
|
|
151
|
+
body.theme-dark .d\\:bg-warning {
|
|
152
152
|
background-color: var(--bg-warning) !important;
|
|
153
153
|
}
|
|
154
154
|
"
|
|
@@ -159,34 +159,34 @@ exports[`color-mixins > colors > create-color-classes 1`] = `
|
|
|
159
159
|
/* .create-color-classes(blue-400, var(--blue-400), dark, color) */
|
|
160
160
|
/* .create-color-classes(green-300, var(--green-300), light, background-color) */
|
|
161
161
|
body .bg-red-500,
|
|
162
|
-
body .h
|
|
163
|
-
body .f
|
|
164
|
-
body .f
|
|
162
|
+
body .h\\:bg-red-500:hover,
|
|
163
|
+
body .f\\:bg-red-500:focus,
|
|
164
|
+
body .f\\:bg-red-500:focus-within {
|
|
165
165
|
background-color: var(--red-500);
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
body .bc-red-500,
|
|
169
|
-
body .h
|
|
170
|
-
body .f
|
|
171
|
-
body .f
|
|
169
|
+
body .h\\:bc-red-500:hover,
|
|
170
|
+
body .f\\:bc-red-500:focus,
|
|
171
|
+
body .f\\:bc-red-500:focus-within {
|
|
172
172
|
border-color: var(--red-500);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
body .fc-red-500,
|
|
176
|
-
body .h
|
|
177
|
-
body .f
|
|
178
|
-
body .f
|
|
176
|
+
body .h\\:fc-red-500:hover,
|
|
177
|
+
body .f\\:fc-red-500:focus,
|
|
178
|
+
body .f\\:fc-red-500:focus-within {
|
|
179
179
|
color: var(--red-500);
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
body .d
|
|
182
|
+
body .d\\:fc-blue-500 {
|
|
183
183
|
color: var(--blue-500);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
body .bg-green-300,
|
|
187
|
-
body .h
|
|
188
|
-
body .f
|
|
189
|
-
body .f
|
|
187
|
+
body .h\\:bg-green-300:hover,
|
|
188
|
+
body .f\\:bg-green-300:focus,
|
|
189
|
+
body .f\\:bg-green-300:focus-within {
|
|
190
190
|
background-color: var(--green-300);
|
|
191
191
|
}
|
|
192
192
|
"
|
|
@@ -214,65 +214,65 @@ body {
|
|
|
214
214
|
}
|
|
215
215
|
/* .create-colors(.sets-test(), classes) */
|
|
216
216
|
body .bg-emerald,
|
|
217
|
-
body .h
|
|
218
|
-
body .f
|
|
219
|
-
body .f
|
|
217
|
+
body .h\\:bg-emerald:hover,
|
|
218
|
+
body .f\\:bg-emerald:focus,
|
|
219
|
+
body .f\\:bg-emerald:focus-within {
|
|
220
220
|
background-color: var(--emerald) !important;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
body .bc-emerald,
|
|
224
|
-
body .h
|
|
225
|
-
body .f
|
|
226
|
-
body .f
|
|
224
|
+
body .h\\:bc-emerald:hover,
|
|
225
|
+
body .f\\:bc-emerald:focus,
|
|
226
|
+
body .f\\:bc-emerald:focus-within {
|
|
227
227
|
border-color: var(--emerald) !important;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
body .fc-emerald,
|
|
231
|
-
body .h
|
|
232
|
-
body .f
|
|
233
|
-
body .f
|
|
231
|
+
body .h\\:fc-emerald:hover,
|
|
232
|
+
body .f\\:fc-emerald:focus,
|
|
233
|
+
body .f\\:fc-emerald:focus-within {
|
|
234
234
|
color: var(--emerald) !important;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
body .bg-ruby-100,
|
|
238
|
-
body .h
|
|
239
|
-
body .f
|
|
240
|
-
body .f
|
|
238
|
+
body .h\\:bg-ruby-100:hover,
|
|
239
|
+
body .f\\:bg-ruby-100:focus,
|
|
240
|
+
body .f\\:bg-ruby-100:focus-within {
|
|
241
241
|
background-color: var(--ruby-100) !important;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
body .bc-ruby-100,
|
|
245
|
-
body .h
|
|
246
|
-
body .f
|
|
247
|
-
body .f
|
|
245
|
+
body .h\\:bc-ruby-100:hover,
|
|
246
|
+
body .f\\:bc-ruby-100:focus,
|
|
247
|
+
body .f\\:bc-ruby-100:focus-within {
|
|
248
248
|
border-color: var(--ruby-100) !important;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
body .fc-ruby-100,
|
|
252
|
-
body .h
|
|
253
|
-
body .f
|
|
254
|
-
body .f
|
|
252
|
+
body .h\\:fc-ruby-100:hover,
|
|
253
|
+
body .f\\:fc-ruby-100:focus,
|
|
254
|
+
body .f\\:fc-ruby-100:focus-within {
|
|
255
255
|
color: var(--ruby-100) !important;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
body .bg-ruby-600,
|
|
259
|
-
body .h
|
|
260
|
-
body .f
|
|
261
|
-
body .f
|
|
259
|
+
body .h\\:bg-ruby-600:hover,
|
|
260
|
+
body .f\\:bg-ruby-600:focus,
|
|
261
|
+
body .f\\:bg-ruby-600:focus-within {
|
|
262
262
|
background-color: var(--ruby-600) !important;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
body .bc-ruby-600,
|
|
266
|
-
body .h
|
|
267
|
-
body .f
|
|
268
|
-
body .f
|
|
266
|
+
body .h\\:bc-ruby-600:hover,
|
|
267
|
+
body .f\\:bc-ruby-600:focus,
|
|
268
|
+
body .f\\:bc-ruby-600:focus-within {
|
|
269
269
|
border-color: var(--ruby-600) !important;
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
body .fc-ruby-600,
|
|
273
|
-
body .h
|
|
274
|
-
body .f
|
|
275
|
-
body .f
|
|
273
|
+
body .h\\:fc-ruby-600:hover,
|
|
274
|
+
body .f\\:fc-ruby-600:focus,
|
|
275
|
+
body .f\\:fc-ruby-600:focus-within {
|
|
276
276
|
color: var(--ruby-600) !important;
|
|
277
277
|
}
|
|
278
278
|
"
|
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.0.
|
|
8
|
+
"version": "2.0.8",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
11
|
"lib"
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
"@stackoverflow/stacks-editor": "^0.9.1",
|
|
52
52
|
"@stackoverflow/stacks-icons": "^6.0.0",
|
|
53
53
|
"@testing-library/dom": "^9.3.3",
|
|
54
|
-
"@testing-library/user-event": "^14.5.
|
|
54
|
+
"@testing-library/user-event": "^14.5.2",
|
|
55
55
|
"@types/cssbeautify": "^0.3.5",
|
|
56
|
-
"@types/less": "^3.0.
|
|
57
|
-
"@types/mocha": "^10.0.
|
|
58
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
59
|
-
"@typescript-eslint/parser": "^6.
|
|
60
|
-
"@web/dev-server-esbuild": "^1.0.
|
|
61
|
-
"@web/dev-server-rollup": "^0.6.
|
|
56
|
+
"@types/less": "^3.0.6",
|
|
57
|
+
"@types/mocha": "^10.0.6",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^6.18.0",
|
|
59
|
+
"@typescript-eslint/parser": "^6.18.0",
|
|
60
|
+
"@web/dev-server-esbuild": "^1.0.1",
|
|
61
|
+
"@web/dev-server-rollup": "^0.6.1",
|
|
62
62
|
"@web/test-runner": "^0.18.0",
|
|
63
63
|
"@web/test-runner-playwright": "^0.11.0",
|
|
64
64
|
"@web/test-runner-visual-regression": "^0.9.0",
|
|
@@ -67,29 +67,29 @@
|
|
|
67
67
|
"concurrently": "^8.2.2",
|
|
68
68
|
"css-loader": "^6.8.1",
|
|
69
69
|
"cssbeautify": "^0.3.1",
|
|
70
|
-
"cssnano": "^6.0.
|
|
70
|
+
"cssnano": "^6.0.3",
|
|
71
71
|
"docsearch.js": "^2.6.3",
|
|
72
72
|
"eleventy-plugin-highlightjs": "^1.1.0",
|
|
73
73
|
"eleventy-plugin-nesting-toc": "^1.3.0",
|
|
74
|
-
"eslint": "^8.
|
|
75
|
-
"eslint-config-prettier": "^9.
|
|
74
|
+
"eslint": "^8.56.0",
|
|
75
|
+
"eslint-config-prettier": "^9.1.0",
|
|
76
76
|
"eslint-plugin-no-unsanitized": "^4.0.2",
|
|
77
77
|
"jquery": "^3.7.1",
|
|
78
|
-
"less-loader": "^11.1.
|
|
78
|
+
"less-loader": "^11.1.4",
|
|
79
79
|
"list.js": "^2.3.1",
|
|
80
|
-
"markdown-it": "^
|
|
80
|
+
"markdown-it": "^14.0.0",
|
|
81
81
|
"mini-css-extract-plugin": "^2.7.6",
|
|
82
82
|
"postcss-less": "^6.0.0",
|
|
83
|
-
"postcss-loader": "^7.3.
|
|
84
|
-
"prettier": "^3.1.
|
|
83
|
+
"postcss-loader": "^7.3.4",
|
|
84
|
+
"prettier": "^3.1.1",
|
|
85
85
|
"rollup-plugin-postcss": "^4.0.2",
|
|
86
|
-
"stylelint": "^
|
|
87
|
-
"stylelint-config-recommended": "^
|
|
88
|
-
"stylelint-config-standard": "^
|
|
89
|
-
"terser-webpack-plugin": "^5.3.
|
|
90
|
-
"ts-loader": "^9.5.
|
|
91
|
-
"typescript": "^5.
|
|
92
|
-
"vitest": "^
|
|
86
|
+
"stylelint": "^16.1.0",
|
|
87
|
+
"stylelint-config-recommended": "^14.0.0",
|
|
88
|
+
"stylelint-config-standard": "^36.0.0",
|
|
89
|
+
"terser-webpack-plugin": "^5.3.10",
|
|
90
|
+
"ts-loader": "^9.5.1",
|
|
91
|
+
"typescript": "^5.3.3",
|
|
92
|
+
"vitest": "^1.1.3",
|
|
93
93
|
"webpack": "^5.89.0",
|
|
94
94
|
"webpack-cli": "^5.1.4",
|
|
95
95
|
"webpack-merge": "^5.10.0"
|