@stackoverflow/stacks 2.5.4 → 2.5.5
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/LICENSE.MD +9 -9
- package/README.md +180 -180
- package/dist/css/stacks.css +102 -122
- package/dist/css/stacks.min.css +1 -1
- package/lib/atomic/border.less +139 -139
- package/lib/atomic/color.less +36 -36
- package/lib/atomic/flex.less +426 -426
- package/lib/atomic/gap.less +44 -44
- package/lib/atomic/grid.less +139 -139
- package/lib/atomic/misc.less +374 -374
- package/lib/atomic/spacing.less +98 -98
- package/lib/atomic/typography.less +264 -264
- package/lib/atomic/width-height.less +194 -194
- package/lib/base/body.less +44 -44
- package/lib/base/configuration-static.less +61 -61
- package/lib/base/fieldset.less +5 -5
- package/lib/base/icon.less +11 -11
- package/lib/base/internal.less +220 -220
- package/lib/base/reset-meyer.less +64 -64
- package/lib/base/reset-normalize.less +449 -449
- package/lib/base/reset.less +20 -20
- package/lib/components/activity-indicator/activity-indicator.less +53 -53
- package/lib/components/anchor/anchor.less +78 -68
- package/lib/components/avatar/avatar.less +108 -108
- package/lib/components/award-bling/award-bling.less +31 -31
- package/lib/components/badge/badge.less +258 -258
- package/lib/components/banner/banner.less +44 -44
- package/lib/components/banner/banner.ts +149 -149
- package/lib/components/block-link/block-link.less +82 -82
- package/lib/components/breadcrumbs/breadcrumbs.less +41 -41
- package/lib/components/button/button.less +473 -473
- package/lib/components/button-group/button-group.less +82 -82
- package/lib/components/card/card.less +37 -37
- package/lib/components/check-control/check-control.less +17 -17
- package/lib/components/check-group/check-group.less +19 -19
- package/lib/components/checkbox_radio/checkbox_radio.less +159 -159
- package/lib/components/code-block/code-block.fixtures.ts +88 -88
- package/lib/components/code-block/code-block.less +116 -116
- package/lib/components/description/description.less +9 -9
- package/lib/components/empty-state/empty-state.less +16 -16
- package/lib/components/expandable/expandable.less +118 -118
- package/lib/components/expandable/expandable.ts +238 -238
- package/lib/components/input-fill/input-fill.less +35 -35
- package/lib/components/input-icon/input-icon.less +45 -45
- package/lib/components/input-message/input-message.less +49 -49
- package/lib/components/input_textarea/input_textarea.less +150 -150
- package/lib/components/label/label.less +110 -110
- package/lib/components/link/link.less +135 -120
- package/lib/components/link-preview/link-preview.less +148 -148
- package/lib/components/menu/menu.less +41 -41
- package/lib/components/modal/modal.less +118 -118
- package/lib/components/modal/modal.ts +383 -383
- package/lib/components/navigation/navigation.less +136 -136
- package/lib/components/navigation/navigation.ts +128 -128
- package/lib/components/notice/notice.less +195 -195
- package/lib/components/page-title/page-title.less +51 -51
- package/lib/components/pagination/pagination.less +65 -65
- package/lib/components/popover/popover.less +159 -159
- package/lib/components/popover/popover.ts +651 -651
- package/lib/components/popover/tooltip.ts +343 -343
- package/lib/components/post-summary/post-summary.less +457 -447
- package/lib/components/progress-bar/progress-bar.less +291 -291
- package/lib/components/prose/prose.less +452 -452
- package/lib/components/select/select.less +138 -138
- package/lib/components/sidebar-widget/sidebar-widget.less +257 -257
- package/lib/components/spinner/spinner.less +103 -103
- package/lib/components/table/table.less +307 -307
- package/lib/components/table/table.ts +296 -296
- package/lib/components/table-container/table-container.less +4 -4
- package/lib/components/tag/tag.less +186 -186
- package/lib/components/toast/toast.less +35 -35
- package/lib/components/toast/toast.ts +357 -357
- package/lib/components/toggle-switch/toggle-switch.less +104 -104
- package/lib/components/topbar/topbar.less +553 -553
- package/lib/components/uploader/uploader.less +205 -205
- package/lib/components/uploader/uploader.ts +207 -207
- package/lib/components/user-card/user-card.less +129 -129
- package/lib/controllers.ts +33 -33
- package/lib/exports/color-mixins.less +283 -283
- package/lib/exports/color-sets.less +711 -711
- package/lib/exports/color.less +65 -65
- package/lib/exports/constants-helpers.less +108 -108
- package/lib/exports/constants-type.less +155 -155
- package/lib/exports/exports.less +15 -15
- package/lib/exports/mixins.less +333 -333
- package/lib/exports/spacing-mixins.less +67 -67
- package/lib/index.ts +32 -32
- package/lib/input-utils.less +41 -41
- package/lib/stacks-dynamic.less +24 -24
- package/lib/stacks-static.less +93 -93
- package/lib/stacks.less +13 -13
- package/lib/stacks.ts +113 -113
- package/lib/test/a11y-test-utils.ts +94 -94
- package/lib/test/assertions.ts +36 -36
- package/lib/test/less-test-utils.ts +28 -28
- package/lib/test/open-wc-testing-patch.d.ts +26 -26
- package/lib/test/test-utils.ts +364 -364
- package/lib/test/visual-test-utils.ts +58 -58
- package/lib/tsconfig.build.json +4 -4
- package/lib/tsconfig.json +17 -17
- package/package.json +115 -115
|
@@ -1,195 +1,195 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generate color variables with a given color name
|
|
3
|
-
*
|
|
4
|
-
* Usage example:
|
|
5
|
-
* .generate-variant-variables(purple, important);
|
|
6
|
-
*
|
|
7
|
-
* @colorName - The name of the color to use to construct variables values
|
|
8
|
-
* @modifier - Modifier name to determine variable values for that modifier
|
|
9
|
-
*/
|
|
10
|
-
.generate-variant-variables(@colorName: "", @modifier: "") {
|
|
11
|
-
& when (@modifier = "") {
|
|
12
|
-
--_no-bc: ~"var(--@{colorName}-300)";
|
|
13
|
-
--_no-bg: ~"var(--@{colorName}-100)";
|
|
14
|
-
--_no-btn-bg-active: ~"var(--@{colorName}-200)";
|
|
15
|
-
--_no-btn-bg-focus: ~"var(--@{colorName}-200)";
|
|
16
|
-
--_no-btn-fc: ~"var(--@{colorName}-500)";
|
|
17
|
-
--_no-code-bc: ~"var(--@{colorName}-300)";
|
|
18
|
-
--_no-code-bg: ~"var(--@{colorName}-200)";
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
& when (@modifier = important) {
|
|
22
|
-
--_no-bc: var(--_no-bg);
|
|
23
|
-
--_no-bg: ~"var(--@{colorName}-400)";
|
|
24
|
-
--_no-fc: var(--white);
|
|
25
|
-
--_no-btn-bg-active: ~"var(--@{colorName}-500)";
|
|
26
|
-
--_no-btn-bg-focus: ~"var(--@{colorName}-500)";
|
|
27
|
-
--_no-btn-fc: ~"var(--@{colorName}-100)";
|
|
28
|
-
--_no-code-bc: ~"var(--@{colorName}-300)";
|
|
29
|
-
--_no-code-bg: ~"var(--@{colorName}-500)";
|
|
30
|
-
|
|
31
|
-
.highcontrast-mode({
|
|
32
|
-
--_no-bg: ~"var(--@{colorName}-500)";
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Generate styles for a notice-based component
|
|
39
|
-
*
|
|
40
|
-
* Usage example:
|
|
41
|
-
* .construct-notice-component(s-banner);
|
|
42
|
-
*
|
|
43
|
-
* @baseClass - The base class name for the notice component
|
|
44
|
-
*/
|
|
45
|
-
.construct-notice-component(@baseClass) {
|
|
46
|
-
--_no-bc: var(--black-225);
|
|
47
|
-
--_no-bg: var(--black-100);
|
|
48
|
-
--_no-fc: var(--black-500);
|
|
49
|
-
--_no-btn-bg-active: var(--black-250);
|
|
50
|
-
--_no-btn-bg-focus: var(--black-225);
|
|
51
|
-
--_no-btn-fc: var(--_no-fc);
|
|
52
|
-
--_no-code-bc: var(--black-300);
|
|
53
|
-
--_no-code-bg: var(--black-200);
|
|
54
|
-
--_no-code-fc: var(--_no-fc);
|
|
55
|
-
|
|
56
|
-
// CONTEXTUAL STYLES
|
|
57
|
-
.dark-mode({
|
|
58
|
-
--_no-bc: var(--_no-bg);
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
.highcontrast-mode({
|
|
62
|
-
&,
|
|
63
|
-
&.@{baseClass}__danger,
|
|
64
|
-
&.@{baseClass}__info,
|
|
65
|
-
&.@{baseClass}__success,
|
|
66
|
-
&.@{baseClass}__warning {
|
|
67
|
-
--_no-code-bc: var(--black-400);
|
|
68
|
-
--_no-code-bg: var(--white);
|
|
69
|
-
--_no-code-fc: var(--black);
|
|
70
|
-
|
|
71
|
-
&.@{baseClass}__important {
|
|
72
|
-
--_no-code-bc: var(--black-200);
|
|
73
|
-
--_no-code-bg: var(--black);
|
|
74
|
-
--_no-code-fc: var(--white);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
// MODIFIERS
|
|
80
|
-
&__important:not(.@{baseClass}__danger):not(.@{baseClass}__info):not(.@{baseClass}__success):not(.@{baseClass}__warning) {
|
|
81
|
-
--_no-bc: var(--_no-bg);
|
|
82
|
-
--_no-bg: var(--black-500);
|
|
83
|
-
--_no-fc: var(--white);
|
|
84
|
-
--_no-btn-bg-focus: var(--black-600);
|
|
85
|
-
--_no-btn-bg-active: var(--black-600);
|
|
86
|
-
--_no-btn-fc: var(--_no-fc);
|
|
87
|
-
--_no-code-bc: var(--black-300);
|
|
88
|
-
--_no-code-bg: var(--black-600);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// VARIANTS
|
|
92
|
-
&__danger {
|
|
93
|
-
&:not(.@{baseClass}__important) {
|
|
94
|
-
.generate-variant-variables(red);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&.@{baseClass}__important {
|
|
98
|
-
.generate-variant-variables(red, important);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&__info {
|
|
103
|
-
&:not(.@{baseClass}__important) {
|
|
104
|
-
.generate-variant-variables(theme-secondary);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&.@{baseClass}__important {
|
|
108
|
-
.generate-variant-variables(theme-secondary, important);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
&__success {
|
|
113
|
-
&:not(.@{baseClass}__important) {
|
|
114
|
-
.generate-variant-variables(green);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&.@{baseClass}__important {
|
|
118
|
-
.generate-variant-variables(green, important);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
&__warning {
|
|
123
|
-
&:not(.@{baseClass}__important) {
|
|
124
|
-
.generate-variant-variables(yellow);
|
|
125
|
-
--_no-btn-fc: var(--yellow-600);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
&.@{baseClass}__important {
|
|
129
|
-
--_no-bc: var(--_no-bg);
|
|
130
|
-
--_no-bg: var(--yellow-400);
|
|
131
|
-
--_no-fc: var(--black);
|
|
132
|
-
--_no-btn-fc: var(--_no-fc);
|
|
133
|
-
--_no-btn-bg-active: var(--yellow-300);
|
|
134
|
-
--_no-btn-bg-focus: var(--yellow-300);
|
|
135
|
-
--_no-code-bc: var(--yellow-500);
|
|
136
|
-
--_no-code-bg: var(--yellow-300);
|
|
137
|
-
|
|
138
|
-
.dark-mode({
|
|
139
|
-
--_no-fc: var(--white);
|
|
140
|
-
--_no-code-bc: var(--yellow-300);
|
|
141
|
-
--_no-code-bg: var(--yellow-500);
|
|
142
|
-
});
|
|
143
|
-
|
|
144
|
-
.highcontrast-mode({
|
|
145
|
-
--_no-bg: var(--yellow-500);
|
|
146
|
-
--_no-fc: var(--white);
|
|
147
|
-
--_no-btn-bg-active: transparent;
|
|
148
|
-
--_no-btn-bg-focus: transparent;
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
// CHILD ELEMENTS
|
|
154
|
-
code {
|
|
155
|
-
background-color: var(--_no-code-bg);
|
|
156
|
-
color: var(--_no-code-fc);
|
|
157
|
-
outline: var(--su-static1) solid var(--_no-code-bc);
|
|
158
|
-
|
|
159
|
-
border-radius: var(--br-sm);
|
|
160
|
-
padding-left: var(--su2);
|
|
161
|
-
padding-right: var(--su2);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
& &--btn {
|
|
165
|
-
// TODO: decouple .s-notice--btn from .s-btn
|
|
166
|
-
&:active {
|
|
167
|
-
background-color: var(--_no-btn-bg-active, inherit) !important;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
&:focus-visible,
|
|
171
|
-
&:hover,
|
|
172
|
-
&.focus-inset-bordered {
|
|
173
|
-
background-color: var(--_no-btn-bg-focus, inherit) !important;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
color: var(--_no-btn-fc, inherit) !important;
|
|
177
|
-
padding: var(--su8);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
// STYLES MODIFIED BY COMPONENT-SPECIFIC CUSTOM PROPERTIES
|
|
181
|
-
background: var(--_no-bg);
|
|
182
|
-
border-color: var(--_no-bc);
|
|
183
|
-
color: var(--_no-fc);
|
|
184
|
-
|
|
185
|
-
border-style: solid;
|
|
186
|
-
font-size: var(--fs-body1);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.s-notice {
|
|
190
|
-
.construct-notice-component(s-notice);
|
|
191
|
-
|
|
192
|
-
border-radius: var(--br-md);
|
|
193
|
-
border-width: var(--su-static1);
|
|
194
|
-
padding: var(--su16);
|
|
195
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Generate color variables with a given color name
|
|
3
|
+
*
|
|
4
|
+
* Usage example:
|
|
5
|
+
* .generate-variant-variables(purple, important);
|
|
6
|
+
*
|
|
7
|
+
* @colorName - The name of the color to use to construct variables values
|
|
8
|
+
* @modifier - Modifier name to determine variable values for that modifier
|
|
9
|
+
*/
|
|
10
|
+
.generate-variant-variables(@colorName: "", @modifier: "") {
|
|
11
|
+
& when (@modifier = "") {
|
|
12
|
+
--_no-bc: ~"var(--@{colorName}-300)";
|
|
13
|
+
--_no-bg: ~"var(--@{colorName}-100)";
|
|
14
|
+
--_no-btn-bg-active: ~"var(--@{colorName}-200)";
|
|
15
|
+
--_no-btn-bg-focus: ~"var(--@{colorName}-200)";
|
|
16
|
+
--_no-btn-fc: ~"var(--@{colorName}-500)";
|
|
17
|
+
--_no-code-bc: ~"var(--@{colorName}-300)";
|
|
18
|
+
--_no-code-bg: ~"var(--@{colorName}-200)";
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
& when (@modifier = important) {
|
|
22
|
+
--_no-bc: var(--_no-bg);
|
|
23
|
+
--_no-bg: ~"var(--@{colorName}-400)";
|
|
24
|
+
--_no-fc: var(--white);
|
|
25
|
+
--_no-btn-bg-active: ~"var(--@{colorName}-500)";
|
|
26
|
+
--_no-btn-bg-focus: ~"var(--@{colorName}-500)";
|
|
27
|
+
--_no-btn-fc: ~"var(--@{colorName}-100)";
|
|
28
|
+
--_no-code-bc: ~"var(--@{colorName}-300)";
|
|
29
|
+
--_no-code-bg: ~"var(--@{colorName}-500)";
|
|
30
|
+
|
|
31
|
+
.highcontrast-mode({
|
|
32
|
+
--_no-bg: ~"var(--@{colorName}-500)";
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Generate styles for a notice-based component
|
|
39
|
+
*
|
|
40
|
+
* Usage example:
|
|
41
|
+
* .construct-notice-component(s-banner);
|
|
42
|
+
*
|
|
43
|
+
* @baseClass - The base class name for the notice component
|
|
44
|
+
*/
|
|
45
|
+
.construct-notice-component(@baseClass) {
|
|
46
|
+
--_no-bc: var(--black-225);
|
|
47
|
+
--_no-bg: var(--black-100);
|
|
48
|
+
--_no-fc: var(--black-500);
|
|
49
|
+
--_no-btn-bg-active: var(--black-250);
|
|
50
|
+
--_no-btn-bg-focus: var(--black-225);
|
|
51
|
+
--_no-btn-fc: var(--_no-fc);
|
|
52
|
+
--_no-code-bc: var(--black-300);
|
|
53
|
+
--_no-code-bg: var(--black-200);
|
|
54
|
+
--_no-code-fc: var(--_no-fc);
|
|
55
|
+
|
|
56
|
+
// CONTEXTUAL STYLES
|
|
57
|
+
.dark-mode({
|
|
58
|
+
--_no-bc: var(--_no-bg);
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
.highcontrast-mode({
|
|
62
|
+
&,
|
|
63
|
+
&.@{baseClass}__danger,
|
|
64
|
+
&.@{baseClass}__info,
|
|
65
|
+
&.@{baseClass}__success,
|
|
66
|
+
&.@{baseClass}__warning {
|
|
67
|
+
--_no-code-bc: var(--black-400);
|
|
68
|
+
--_no-code-bg: var(--white);
|
|
69
|
+
--_no-code-fc: var(--black);
|
|
70
|
+
|
|
71
|
+
&.@{baseClass}__important {
|
|
72
|
+
--_no-code-bc: var(--black-200);
|
|
73
|
+
--_no-code-bg: var(--black);
|
|
74
|
+
--_no-code-fc: var(--white);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
// MODIFIERS
|
|
80
|
+
&__important:not(.@{baseClass}__danger):not(.@{baseClass}__info):not(.@{baseClass}__success):not(.@{baseClass}__warning) {
|
|
81
|
+
--_no-bc: var(--_no-bg);
|
|
82
|
+
--_no-bg: var(--black-500);
|
|
83
|
+
--_no-fc: var(--white);
|
|
84
|
+
--_no-btn-bg-focus: var(--black-600);
|
|
85
|
+
--_no-btn-bg-active: var(--black-600);
|
|
86
|
+
--_no-btn-fc: var(--_no-fc);
|
|
87
|
+
--_no-code-bc: var(--black-300);
|
|
88
|
+
--_no-code-bg: var(--black-600);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// VARIANTS
|
|
92
|
+
&__danger {
|
|
93
|
+
&:not(.@{baseClass}__important) {
|
|
94
|
+
.generate-variant-variables(red);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.@{baseClass}__important {
|
|
98
|
+
.generate-variant-variables(red, important);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&__info {
|
|
103
|
+
&:not(.@{baseClass}__important) {
|
|
104
|
+
.generate-variant-variables(theme-secondary);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&.@{baseClass}__important {
|
|
108
|
+
.generate-variant-variables(theme-secondary, important);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&__success {
|
|
113
|
+
&:not(.@{baseClass}__important) {
|
|
114
|
+
.generate-variant-variables(green);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&.@{baseClass}__important {
|
|
118
|
+
.generate-variant-variables(green, important);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&__warning {
|
|
123
|
+
&:not(.@{baseClass}__important) {
|
|
124
|
+
.generate-variant-variables(yellow);
|
|
125
|
+
--_no-btn-fc: var(--yellow-600);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&.@{baseClass}__important {
|
|
129
|
+
--_no-bc: var(--_no-bg);
|
|
130
|
+
--_no-bg: var(--yellow-400);
|
|
131
|
+
--_no-fc: var(--black);
|
|
132
|
+
--_no-btn-fc: var(--_no-fc);
|
|
133
|
+
--_no-btn-bg-active: var(--yellow-300);
|
|
134
|
+
--_no-btn-bg-focus: var(--yellow-300);
|
|
135
|
+
--_no-code-bc: var(--yellow-500);
|
|
136
|
+
--_no-code-bg: var(--yellow-300);
|
|
137
|
+
|
|
138
|
+
.dark-mode({
|
|
139
|
+
--_no-fc: var(--white);
|
|
140
|
+
--_no-code-bc: var(--yellow-300);
|
|
141
|
+
--_no-code-bg: var(--yellow-500);
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
.highcontrast-mode({
|
|
145
|
+
--_no-bg: var(--yellow-500);
|
|
146
|
+
--_no-fc: var(--white);
|
|
147
|
+
--_no-btn-bg-active: transparent;
|
|
148
|
+
--_no-btn-bg-focus: transparent;
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// CHILD ELEMENTS
|
|
154
|
+
code {
|
|
155
|
+
background-color: var(--_no-code-bg);
|
|
156
|
+
color: var(--_no-code-fc);
|
|
157
|
+
outline: var(--su-static1) solid var(--_no-code-bc);
|
|
158
|
+
|
|
159
|
+
border-radius: var(--br-sm);
|
|
160
|
+
padding-left: var(--su2);
|
|
161
|
+
padding-right: var(--su2);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
& &--btn {
|
|
165
|
+
// TODO: decouple .s-notice--btn from .s-btn
|
|
166
|
+
&:active {
|
|
167
|
+
background-color: var(--_no-btn-bg-active, inherit) !important;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&:focus-visible,
|
|
171
|
+
&:hover,
|
|
172
|
+
&.focus-inset-bordered {
|
|
173
|
+
background-color: var(--_no-btn-bg-focus, inherit) !important;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
color: var(--_no-btn-fc, inherit) !important;
|
|
177
|
+
padding: var(--su8);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// STYLES MODIFIED BY COMPONENT-SPECIFIC CUSTOM PROPERTIES
|
|
181
|
+
background: var(--_no-bg);
|
|
182
|
+
border-color: var(--_no-bc);
|
|
183
|
+
color: var(--_no-fc);
|
|
184
|
+
|
|
185
|
+
border-style: solid;
|
|
186
|
+
font-size: var(--fs-body1);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.s-notice {
|
|
190
|
+
.construct-notice-component(s-notice);
|
|
191
|
+
|
|
192
|
+
border-radius: var(--br-md);
|
|
193
|
+
border-width: var(--su-static1);
|
|
194
|
+
padding: var(--su16);
|
|
195
|
+
}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
.s-page-title {
|
|
2
|
-
--_pt-ai: flex-end;
|
|
3
|
-
--_pt-fd: row;
|
|
4
|
-
--_pt-actions-ml: var(--su8);
|
|
5
|
-
--_pt-actions-mt: unset;
|
|
6
|
-
--_pt-breadcrums-mb: var(--su8);
|
|
7
|
-
|
|
8
|
-
// CONTEXTUAL STYLES
|
|
9
|
-
#stacks-internals #screen-sm({
|
|
10
|
-
--_pt-breadcrums-mb: var(--su2);
|
|
11
|
-
});
|
|
12
|
-
#stacks-internals #screen-md({
|
|
13
|
-
--_pt-ai: flex-start;
|
|
14
|
-
--_pt-fd: column;
|
|
15
|
-
--_pt-actions-ml: 0;
|
|
16
|
-
--_pt-actions-mt: var(--su8);
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
// CHILD ELEMENTS
|
|
20
|
-
& &--actions {
|
|
21
|
-
margin-left: var(--_pt-actions-ml);
|
|
22
|
-
margin-top: var(--_pt-actions-mt);
|
|
23
|
-
flex-shrink: 0;
|
|
24
|
-
}
|
|
25
|
-
& &--description {
|
|
26
|
-
color: var(--fc-light);
|
|
27
|
-
font-size: var(--fs-body2);
|
|
28
|
-
margin-bottom: 0;
|
|
29
|
-
margin-top: var(--su4);
|
|
30
|
-
}
|
|
31
|
-
& &--header {
|
|
32
|
-
color: var(--fc-dark);
|
|
33
|
-
font-size: var(--fs-headline1);
|
|
34
|
-
font-weight: bold;
|
|
35
|
-
line-height: var(--lh-sm);
|
|
36
|
-
margin: 0;
|
|
37
|
-
margin-bottom: 0; // TODO: investigate why this exists. I assume it's so margin-bottom isn't overridden, but 🤷♂️
|
|
38
|
-
}
|
|
39
|
-
.s-breadcrumbs {
|
|
40
|
-
margin-bottom: var(--_pt-breadcrums-mb);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
align-items: var(--_pt-ai);
|
|
44
|
-
flex-direction: var(--_pt-fd);
|
|
45
|
-
|
|
46
|
-
border-bottom: var(--su-static1) solid var(--bc-medium);
|
|
47
|
-
display: flex;
|
|
48
|
-
justify-content: space-between;
|
|
49
|
-
padding-bottom: var(--su16);
|
|
50
|
-
width: 100%;
|
|
51
|
-
}
|
|
1
|
+
.s-page-title {
|
|
2
|
+
--_pt-ai: flex-end;
|
|
3
|
+
--_pt-fd: row;
|
|
4
|
+
--_pt-actions-ml: var(--su8);
|
|
5
|
+
--_pt-actions-mt: unset;
|
|
6
|
+
--_pt-breadcrums-mb: var(--su8);
|
|
7
|
+
|
|
8
|
+
// CONTEXTUAL STYLES
|
|
9
|
+
#stacks-internals #screen-sm({
|
|
10
|
+
--_pt-breadcrums-mb: var(--su2);
|
|
11
|
+
});
|
|
12
|
+
#stacks-internals #screen-md({
|
|
13
|
+
--_pt-ai: flex-start;
|
|
14
|
+
--_pt-fd: column;
|
|
15
|
+
--_pt-actions-ml: 0;
|
|
16
|
+
--_pt-actions-mt: var(--su8);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
// CHILD ELEMENTS
|
|
20
|
+
& &--actions {
|
|
21
|
+
margin-left: var(--_pt-actions-ml);
|
|
22
|
+
margin-top: var(--_pt-actions-mt);
|
|
23
|
+
flex-shrink: 0;
|
|
24
|
+
}
|
|
25
|
+
& &--description {
|
|
26
|
+
color: var(--fc-light);
|
|
27
|
+
font-size: var(--fs-body2);
|
|
28
|
+
margin-bottom: 0;
|
|
29
|
+
margin-top: var(--su4);
|
|
30
|
+
}
|
|
31
|
+
& &--header {
|
|
32
|
+
color: var(--fc-dark);
|
|
33
|
+
font-size: var(--fs-headline1);
|
|
34
|
+
font-weight: bold;
|
|
35
|
+
line-height: var(--lh-sm);
|
|
36
|
+
margin: 0;
|
|
37
|
+
margin-bottom: 0; // TODO: investigate why this exists. I assume it's so margin-bottom isn't overridden, but 🤷♂️
|
|
38
|
+
}
|
|
39
|
+
.s-breadcrumbs {
|
|
40
|
+
margin-bottom: var(--_pt-breadcrums-mb);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
align-items: var(--_pt-ai);
|
|
44
|
+
flex-direction: var(--_pt-fd);
|
|
45
|
+
|
|
46
|
+
border-bottom: var(--su-static1) solid var(--bc-medium);
|
|
47
|
+
display: flex;
|
|
48
|
+
justify-content: space-between;
|
|
49
|
+
padding-bottom: var(--su16);
|
|
50
|
+
width: 100%;
|
|
51
|
+
}
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
.s-pagination {
|
|
2
|
-
& &--item {
|
|
3
|
-
--_pa-item-bg: transparent;
|
|
4
|
-
--_pa-item-bc: var(--bc-darker);
|
|
5
|
-
--_pa-item-fc: var(--fc-medium);
|
|
6
|
-
--_pa-item-bg-focus: var(--black-400);
|
|
7
|
-
--_pa-item-fc-focus: var(--white);
|
|
8
|
-
--_pa-item-bg-hover: var(--black-225);
|
|
9
|
-
--_pa-item-bc-hover: var(--bc-darker);
|
|
10
|
-
--_pa-item-fc-hover: var(--fc-dark);
|
|
11
|
-
|
|
12
|
-
// CONTEXTUAL STYLES
|
|
13
|
-
.highcontrast-mode({ text-decoration: none; });
|
|
14
|
-
|
|
15
|
-
// MODIFIERS
|
|
16
|
-
&.is-selected {
|
|
17
|
-
--_pa-item-bg: var(--theme-primary);
|
|
18
|
-
--_pa-item-bc: transparent;
|
|
19
|
-
--_pa-item-fc: var(--white);
|
|
20
|
-
--_pa-item-bg-focus: var(--theme-primary-400);
|
|
21
|
-
}
|
|
22
|
-
&.s-pagination--item__clear {
|
|
23
|
-
--_pa-item-bg: transparent;
|
|
24
|
-
--_pa-item-bc: transparent;
|
|
25
|
-
--_pa-item-fc: inherit;
|
|
26
|
-
}
|
|
27
|
-
// override hover styles to match base styles
|
|
28
|
-
&.is-selected,
|
|
29
|
-
&.s-pagination--item__clear {
|
|
30
|
-
--_pa-item-bc-hover: var(--_pa-item-bc);
|
|
31
|
-
--_pa-item-bg-hover: var(--_pa-item-bg);
|
|
32
|
-
--_pa-item-fc-hover: var(--_pa-item-fc);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// INTERACTION
|
|
36
|
-
&:hover {
|
|
37
|
-
background-color: var(--_pa-item-bg-hover);
|
|
38
|
-
border-color: var(--_pa-item-bc-hover);
|
|
39
|
-
color: var(--_pa-item-fc-hover);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&:focus-visible {
|
|
43
|
-
.focus-styles(true, true);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&:focus-visible,
|
|
47
|
-
&.focus-inset-bordered {
|
|
48
|
-
background-color: var(--_pa-item-bg-focus);
|
|
49
|
-
color: var(--_pa-item-fc-focus);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
background-color: var(--_pa-item-bg);
|
|
53
|
-
border: 1px solid var(--_pa-item-bc);
|
|
54
|
-
color: var(--_pa-item-fc);
|
|
55
|
-
|
|
56
|
-
border-radius: var(--br-sm);
|
|
57
|
-
font-size: var(--fs-body1);
|
|
58
|
-
line-height: var(--lh-xl);
|
|
59
|
-
padding: 0 var(--su8);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-wrap: wrap;
|
|
64
|
-
gap: var(--su4);
|
|
65
|
-
}
|
|
1
|
+
.s-pagination {
|
|
2
|
+
& &--item {
|
|
3
|
+
--_pa-item-bg: transparent;
|
|
4
|
+
--_pa-item-bc: var(--bc-darker);
|
|
5
|
+
--_pa-item-fc: var(--fc-medium);
|
|
6
|
+
--_pa-item-bg-focus: var(--black-400);
|
|
7
|
+
--_pa-item-fc-focus: var(--white);
|
|
8
|
+
--_pa-item-bg-hover: var(--black-225);
|
|
9
|
+
--_pa-item-bc-hover: var(--bc-darker);
|
|
10
|
+
--_pa-item-fc-hover: var(--fc-dark);
|
|
11
|
+
|
|
12
|
+
// CONTEXTUAL STYLES
|
|
13
|
+
.highcontrast-mode({ text-decoration: none; });
|
|
14
|
+
|
|
15
|
+
// MODIFIERS
|
|
16
|
+
&.is-selected {
|
|
17
|
+
--_pa-item-bg: var(--theme-primary);
|
|
18
|
+
--_pa-item-bc: transparent;
|
|
19
|
+
--_pa-item-fc: var(--white);
|
|
20
|
+
--_pa-item-bg-focus: var(--theme-primary-400);
|
|
21
|
+
}
|
|
22
|
+
&.s-pagination--item__clear {
|
|
23
|
+
--_pa-item-bg: transparent;
|
|
24
|
+
--_pa-item-bc: transparent;
|
|
25
|
+
--_pa-item-fc: inherit;
|
|
26
|
+
}
|
|
27
|
+
// override hover styles to match base styles
|
|
28
|
+
&.is-selected,
|
|
29
|
+
&.s-pagination--item__clear {
|
|
30
|
+
--_pa-item-bc-hover: var(--_pa-item-bc);
|
|
31
|
+
--_pa-item-bg-hover: var(--_pa-item-bg);
|
|
32
|
+
--_pa-item-fc-hover: var(--_pa-item-fc);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// INTERACTION
|
|
36
|
+
&:hover {
|
|
37
|
+
background-color: var(--_pa-item-bg-hover);
|
|
38
|
+
border-color: var(--_pa-item-bc-hover);
|
|
39
|
+
color: var(--_pa-item-fc-hover);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:focus-visible {
|
|
43
|
+
.focus-styles(true, true);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:focus-visible,
|
|
47
|
+
&.focus-inset-bordered {
|
|
48
|
+
background-color: var(--_pa-item-bg-focus);
|
|
49
|
+
color: var(--_pa-item-fc-focus);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
background-color: var(--_pa-item-bg);
|
|
53
|
+
border: 1px solid var(--_pa-item-bc);
|
|
54
|
+
color: var(--_pa-item-fc);
|
|
55
|
+
|
|
56
|
+
border-radius: var(--br-sm);
|
|
57
|
+
font-size: var(--fs-body1);
|
|
58
|
+
line-height: var(--lh-xl);
|
|
59
|
+
padding: 0 var(--su8);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-wrap: wrap;
|
|
64
|
+
gap: var(--su4);
|
|
65
|
+
}
|