@stackoverflow/stacks 2.5.3 → 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.
Files changed (101) hide show
  1. package/LICENSE.MD +9 -9
  2. package/README.md +180 -180
  3. package/dist/css/stacks.css +104 -122
  4. package/dist/css/stacks.min.css +1 -1
  5. package/lib/atomic/border.less +139 -139
  6. package/lib/atomic/color.less +36 -36
  7. package/lib/atomic/flex.less +426 -426
  8. package/lib/atomic/gap.less +44 -44
  9. package/lib/atomic/grid.less +139 -139
  10. package/lib/atomic/misc.less +374 -374
  11. package/lib/atomic/spacing.less +98 -98
  12. package/lib/atomic/typography.less +264 -264
  13. package/lib/atomic/width-height.less +194 -194
  14. package/lib/base/body.less +44 -44
  15. package/lib/base/configuration-static.less +61 -61
  16. package/lib/base/fieldset.less +5 -5
  17. package/lib/base/icon.less +11 -11
  18. package/lib/base/internal.less +220 -220
  19. package/lib/base/reset-meyer.less +64 -64
  20. package/lib/base/reset-normalize.less +449 -449
  21. package/lib/base/reset.less +20 -20
  22. package/lib/components/activity-indicator/activity-indicator.less +53 -53
  23. package/lib/components/anchor/anchor.less +78 -68
  24. package/lib/components/avatar/avatar.less +108 -108
  25. package/lib/components/award-bling/award-bling.less +31 -31
  26. package/lib/components/badge/badge.less +258 -258
  27. package/lib/components/banner/banner.less +44 -44
  28. package/lib/components/banner/banner.ts +149 -149
  29. package/lib/components/block-link/block-link.less +82 -82
  30. package/lib/components/breadcrumbs/breadcrumbs.less +41 -41
  31. package/lib/components/button/button.less +473 -473
  32. package/lib/components/button-group/button-group.less +82 -82
  33. package/lib/components/card/card.less +37 -37
  34. package/lib/components/check-control/check-control.less +17 -17
  35. package/lib/components/check-group/check-group.less +19 -19
  36. package/lib/components/checkbox_radio/checkbox_radio.less +159 -159
  37. package/lib/components/code-block/code-block.fixtures.ts +88 -88
  38. package/lib/components/code-block/code-block.less +116 -116
  39. package/lib/components/description/description.less +9 -9
  40. package/lib/components/empty-state/empty-state.less +16 -16
  41. package/lib/components/expandable/expandable.less +118 -118
  42. package/lib/components/expandable/expandable.ts +238 -238
  43. package/lib/components/input-fill/input-fill.less +35 -35
  44. package/lib/components/input-icon/input-icon.less +45 -45
  45. package/lib/components/input-message/input-message.less +49 -49
  46. package/lib/components/input_textarea/input_textarea.less +150 -150
  47. package/lib/components/label/label.less +110 -110
  48. package/lib/components/link/link.less +135 -120
  49. package/lib/components/link-preview/link-preview.less +148 -148
  50. package/lib/components/menu/menu.less +41 -41
  51. package/lib/components/modal/modal.less +118 -118
  52. package/lib/components/modal/modal.ts +383 -383
  53. package/lib/components/navigation/navigation.less +136 -136
  54. package/lib/components/navigation/navigation.ts +128 -128
  55. package/lib/components/notice/notice.less +195 -195
  56. package/lib/components/page-title/page-title.less +51 -51
  57. package/lib/components/pagination/pagination.less +65 -65
  58. package/lib/components/popover/popover.less +159 -157
  59. package/lib/components/popover/popover.ts +651 -651
  60. package/lib/components/popover/tooltip.ts +343 -343
  61. package/lib/components/post-summary/post-summary.less +457 -447
  62. package/lib/components/progress-bar/progress-bar.less +291 -291
  63. package/lib/components/prose/prose.less +452 -452
  64. package/lib/components/select/select.less +138 -138
  65. package/lib/components/sidebar-widget/sidebar-widget.less +257 -257
  66. package/lib/components/spinner/spinner.less +103 -103
  67. package/lib/components/table/table.less +307 -307
  68. package/lib/components/table/table.ts +296 -296
  69. package/lib/components/table-container/table-container.less +4 -4
  70. package/lib/components/tag/tag.less +186 -186
  71. package/lib/components/toast/toast.less +35 -35
  72. package/lib/components/toast/toast.ts +357 -357
  73. package/lib/components/toggle-switch/toggle-switch.less +104 -104
  74. package/lib/components/topbar/topbar.less +553 -553
  75. package/lib/components/uploader/uploader.less +205 -205
  76. package/lib/components/uploader/uploader.ts +207 -207
  77. package/lib/components/user-card/user-card.less +129 -129
  78. package/lib/controllers.ts +33 -33
  79. package/lib/exports/color-mixins.less +283 -283
  80. package/lib/exports/color-sets.less +711 -711
  81. package/lib/exports/color.less +65 -65
  82. package/lib/exports/constants-helpers.less +108 -108
  83. package/lib/exports/constants-type.less +155 -155
  84. package/lib/exports/exports.less +15 -15
  85. package/lib/exports/mixins.less +333 -333
  86. package/lib/exports/spacing-mixins.less +67 -67
  87. package/lib/index.ts +32 -32
  88. package/lib/input-utils.less +41 -41
  89. package/lib/stacks-dynamic.less +24 -24
  90. package/lib/stacks-static.less +93 -93
  91. package/lib/stacks.less +13 -13
  92. package/lib/stacks.ts +113 -113
  93. package/lib/test/a11y-test-utils.ts +94 -94
  94. package/lib/test/assertions.ts +36 -36
  95. package/lib/test/less-test-utils.ts +28 -28
  96. package/lib/test/open-wc-testing-patch.d.ts +26 -26
  97. package/lib/test/test-utils.ts +364 -364
  98. package/lib/test/visual-test-utils.ts +58 -58
  99. package/lib/tsconfig.build.json +4 -4
  100. package/lib/tsconfig.json +17 -17
  101. package/package.json +115 -115
@@ -1,258 +1,258 @@
1
- .s-badge {
2
- --_ba-as: unset;
3
- --_ba-bc: var(--bc-medium);
4
- --_ba-bg: var(--black-150);
5
- --_ba-fc: var(--black-500);
6
- --_ba-fs: var(--fs-caption);
7
- --_ba-fw: normal;
8
- --_ba-g: 0.3em;
9
- --_ba-lh: 2;
10
- --_ba-px: var(--su6);
11
- --_ba-py: 0;
12
- --_ba-tt: unset;
13
- --_ba-wmn: 0;
14
-
15
- // CONTEXTUAL STYLES
16
- .highcontrast-mode({
17
- // Badge counts
18
- &__gold,
19
- &__silver,
20
- &__bronze,
21
- // Number counts
22
- &__rep,
23
- &__rep-down,
24
- &__votes:not(.s-badge__answered),
25
- // Users
26
- &__admin,
27
- &__moderator,
28
- &__staff {
29
- --_ba-bc: currentColor;
30
- }
31
-
32
- &__new {
33
- --_ba-fc: var(--purple-600);
34
- }
35
- });
36
-
37
- // MODIFIERS
38
- // Sizes
39
- &&__xs,
40
- &&__sm {
41
- --_ba-as: flex-start;
42
- --_ba-fs: var(--fs-fine);
43
- }
44
-
45
- &&__xs {
46
- --_ba-lh: 1.5;
47
- --_ba-px: var(--su2);
48
- --_ba-wmn: calc(var(--su-static16) + var(--su-static2));
49
- }
50
-
51
- &&__sm {
52
- --_ba-lh: 1.8;
53
- --_ba-px: var(--su4);
54
- --_ba-wmn: calc(var(--su-static16) + var(--su-static2));
55
- }
56
-
57
- // Badge counts
58
- &&__gold,
59
- &&__silver,
60
- &&__bronze {
61
- --_ba-fc: var(--black-500);
62
- }
63
-
64
- &&__gold {
65
- --_ba-bc: var(--gold-300);
66
- --_ba-bg: var(--gold-100);
67
- }
68
-
69
- &&__silver {
70
- --_ba-bc: var(--silver-300);
71
- --_ba-bg: var(--silver-100);
72
- }
73
-
74
- &&__bronze {
75
- --_ba-bc: var(--bronze-300);
76
- --_ba-bg: var(--bronze-100);
77
- }
78
-
79
- // Number counts
80
- &&__answered,
81
- &&__bounty,
82
- &&__important {
83
- --_ba-bc: transparent;
84
- --_ba-fc: var(--white);
85
- }
86
-
87
- &&__rep,
88
- &&__rep-down,
89
- &&__votes:not(&__answered) {
90
- --_ba-bg: var(--white);
91
- }
92
-
93
- &&__answered {
94
- --_ba-bg: var(--green-400);
95
- }
96
-
97
- &&__bounty {
98
- --_ba-bg: var(--blue-400);
99
- }
100
-
101
- &&__important {
102
- --_ba-bg: var(--red-400);
103
- }
104
-
105
- &&__rep {
106
- --_ba-bc: var(--green-300);
107
- --_ba-fc: var(--green-400);
108
- }
109
-
110
- &&__rep-down {
111
- --_ba-bc: var(--red-300);
112
- --_ba-fc: var(--red-400);
113
- }
114
-
115
- &&__votes:not(&__answered) {
116
- --_ba-bc: var(--black-250);
117
- --_ba-fc: var(--black-500);
118
- }
119
-
120
- // Users
121
- &&__admin {
122
- --_ba-bc: var(--theme-primary-200);
123
- --_ba-bg: var(--theme-primary-100);
124
- --_ba-fc: var(--theme-primary-500);
125
- }
126
-
127
- &&__moderator {
128
- --_ba-bc: var(--theme-secondary-300);
129
- --_ba-bg: var(--theme-secondary-200);
130
- --_ba-fc: var(--theme-secondary-600);
131
- --_ba-g: calc(var(--su-static4) - var(--su-static1)); // 3px
132
- // :before icon
133
- --_ba-before-h: calc(var(--su-static16) - var(--su-static2)); // 14px
134
- --_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");
135
- --_ba-before-mt: calc(var(--su-static1) * -1); // -1px
136
- --_ba-before-w: var(--su-static12);
137
-
138
- // Sizes
139
- &.s-badge__xs {
140
- --_ba-before-h: calc(var(--su-static8) + var(--su-static1)); // 9px
141
- --_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");
142
- --_ba-before-mt: 0;
143
- --_ba-before-w: calc(var(--su-static8) - var(--su-static1)); // 7px
144
- }
145
-
146
- &.s-badge__sm {
147
- --_ba-g: var(--su-static2);
148
- --_ba-before-h: calc(var(--su-static12) - var(--su-static1)); // 11px
149
- --_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");
150
- --_ba-before-mt: 0;
151
- --_ba-before-w: calc(var(--su-static8) + var(--su-static1)); // 9px
152
- }
153
-
154
- &:before {
155
- height: var(--_ba-before-h);
156
- margin-top: var(--_ba-before-mt);
157
- width: var(--_ba-before-w);
158
-
159
- content: "";
160
- display: inline-block;
161
- background-color: currentColor;
162
- -webkit-mask: var(--_ba-before-icon) no-repeat center;
163
- mask: var(--_ba-before-icon) no-repeat center;
164
- -webkit-mask-size: contain;
165
- mask-size: contain;
166
- }
167
- }
168
-
169
- &&__staff {
170
- // Staff badges are always "Stack Overflow Orange"
171
- --_ba-bc: var(--orange-300);
172
- --_ba-bg: var(--orange-200);
173
- --_ba-fc: var(--orange-600);
174
- }
175
-
176
- // VARIANTS
177
- &&__danger,
178
- &&__muted {
179
- &.s-badge__filled {
180
- --_ba-bc: transparent;
181
- }
182
- }
183
-
184
- &&__danger {
185
- --_ba-bc: var(--red-300);
186
- --_ba-bg: var(--red-200);
187
- --_ba-fc: var(--red-600);
188
-
189
- &.s-badge__filled {
190
- --_ba-bg: var(--red-400);
191
- --_ba-fc: var(--white);
192
- }
193
- }
194
- &&__info {
195
- --_ba-bc: var(--blue-300);
196
- --_ba-bg: var(--blue-200);
197
- --_ba-fc: var(--blue-600);
198
- }
199
-
200
- &&__warning {
201
- --_ba-bc: var(--yellow-300);
202
- --_ba-bg: var(--yellow-200);
203
- --_ba-fc: var(--yellow-600);
204
- }
205
-
206
- &&__muted {
207
- --_ba-bc: var(--black-300);
208
- --_ba-bg: var(--black-200);
209
- --_ba-fc: var(--black-500);
210
-
211
- &.s-badge__filled {
212
- --_ba-bg: var(--black-500);
213
- --_ba-fc: var(--white);
214
- }
215
- }
216
-
217
- &&__new {
218
- --_ba-bc: var(--_ba-bg);
219
- --_ba-bg: var(--purple-100);
220
- --_ba-fc: var(--purple-400);
221
- --_ba-fw: bold;
222
- --_ba-tt: uppercase;
223
- }
224
-
225
- // CHILD ELEMENTS
226
- &--image, // Included with no base class to account for usage in .s-progress__badge
227
- & &--image {
228
- align-self: center;
229
- display: inline-flex;
230
- margin-right: var(--su1);
231
- margin-left: calc((var(--su4) + var(--su1)) * -1);
232
- }
233
-
234
- // INTERACTION
235
- a&:hover {
236
- text-decoration: none;
237
- }
238
-
239
- align-self: var(--_ba-as);
240
- background-color: var(--_ba-bg);
241
- border: var(--su-static1) solid var(--_ba-bc);
242
- color: var(--_ba-fc);
243
- font-size: var(--_ba-fs);
244
- gap: var(--_ba-g);
245
- font-weight: var(--_ba-fw);
246
- line-height: var(--_ba-lh);
247
- min-width: var(--_ba-wmn);
248
- padding: var(--_ba-py) var(--_ba-px);
249
- text-transform: var(--_ba-tt);
250
-
251
- align-items: center;
252
- border-radius: var(--br-sm);
253
- display: inline-flex;
254
- justify-content: center;
255
- text-decoration: none;
256
- vertical-align: middle;
257
- white-space: nowrap;
258
- }
1
+ .s-badge {
2
+ --_ba-as: unset;
3
+ --_ba-bc: var(--bc-medium);
4
+ --_ba-bg: var(--black-150);
5
+ --_ba-fc: var(--black-500);
6
+ --_ba-fs: var(--fs-caption);
7
+ --_ba-fw: normal;
8
+ --_ba-g: 0.3em;
9
+ --_ba-lh: 2;
10
+ --_ba-px: var(--su6);
11
+ --_ba-py: 0;
12
+ --_ba-tt: unset;
13
+ --_ba-wmn: 0;
14
+
15
+ // CONTEXTUAL STYLES
16
+ .highcontrast-mode({
17
+ // Badge counts
18
+ &__gold,
19
+ &__silver,
20
+ &__bronze,
21
+ // Number counts
22
+ &__rep,
23
+ &__rep-down,
24
+ &__votes:not(.s-badge__answered),
25
+ // Users
26
+ &__admin,
27
+ &__moderator,
28
+ &__staff {
29
+ --_ba-bc: currentColor;
30
+ }
31
+
32
+ &__new {
33
+ --_ba-fc: var(--purple-600);
34
+ }
35
+ });
36
+
37
+ // MODIFIERS
38
+ // Sizes
39
+ &&__xs,
40
+ &&__sm {
41
+ --_ba-as: flex-start;
42
+ --_ba-fs: var(--fs-fine);
43
+ }
44
+
45
+ &&__xs {
46
+ --_ba-lh: 1.5;
47
+ --_ba-px: var(--su2);
48
+ --_ba-wmn: calc(var(--su-static16) + var(--su-static2));
49
+ }
50
+
51
+ &&__sm {
52
+ --_ba-lh: 1.8;
53
+ --_ba-px: var(--su4);
54
+ --_ba-wmn: calc(var(--su-static16) + var(--su-static2));
55
+ }
56
+
57
+ // Badge counts
58
+ &&__gold,
59
+ &&__silver,
60
+ &&__bronze {
61
+ --_ba-fc: var(--black-500);
62
+ }
63
+
64
+ &&__gold {
65
+ --_ba-bc: var(--gold-300);
66
+ --_ba-bg: var(--gold-100);
67
+ }
68
+
69
+ &&__silver {
70
+ --_ba-bc: var(--silver-300);
71
+ --_ba-bg: var(--silver-100);
72
+ }
73
+
74
+ &&__bronze {
75
+ --_ba-bc: var(--bronze-300);
76
+ --_ba-bg: var(--bronze-100);
77
+ }
78
+
79
+ // Number counts
80
+ &&__answered,
81
+ &&__bounty,
82
+ &&__important {
83
+ --_ba-bc: transparent;
84
+ --_ba-fc: var(--white);
85
+ }
86
+
87
+ &&__rep,
88
+ &&__rep-down,
89
+ &&__votes:not(&__answered) {
90
+ --_ba-bg: var(--white);
91
+ }
92
+
93
+ &&__answered {
94
+ --_ba-bg: var(--green-400);
95
+ }
96
+
97
+ &&__bounty {
98
+ --_ba-bg: var(--blue-400);
99
+ }
100
+
101
+ &&__important {
102
+ --_ba-bg: var(--red-400);
103
+ }
104
+
105
+ &&__rep {
106
+ --_ba-bc: var(--green-300);
107
+ --_ba-fc: var(--green-400);
108
+ }
109
+
110
+ &&__rep-down {
111
+ --_ba-bc: var(--red-300);
112
+ --_ba-fc: var(--red-400);
113
+ }
114
+
115
+ &&__votes:not(&__answered) {
116
+ --_ba-bc: var(--black-250);
117
+ --_ba-fc: var(--black-500);
118
+ }
119
+
120
+ // Users
121
+ &&__admin {
122
+ --_ba-bc: var(--theme-primary-200);
123
+ --_ba-bg: var(--theme-primary-100);
124
+ --_ba-fc: var(--theme-primary-500);
125
+ }
126
+
127
+ &&__moderator {
128
+ --_ba-bc: var(--theme-secondary-300);
129
+ --_ba-bg: var(--theme-secondary-200);
130
+ --_ba-fc: var(--theme-secondary-600);
131
+ --_ba-g: calc(var(--su-static4) - var(--su-static1)); // 3px
132
+ // :before icon
133
+ --_ba-before-h: calc(var(--su-static16) - var(--su-static2)); // 14px
134
+ --_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");
135
+ --_ba-before-mt: calc(var(--su-static1) * -1); // -1px
136
+ --_ba-before-w: var(--su-static12);
137
+
138
+ // Sizes
139
+ &.s-badge__xs {
140
+ --_ba-before-h: calc(var(--su-static8) + var(--su-static1)); // 9px
141
+ --_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");
142
+ --_ba-before-mt: 0;
143
+ --_ba-before-w: calc(var(--su-static8) - var(--su-static1)); // 7px
144
+ }
145
+
146
+ &.s-badge__sm {
147
+ --_ba-g: var(--su-static2);
148
+ --_ba-before-h: calc(var(--su-static12) - var(--su-static1)); // 11px
149
+ --_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");
150
+ --_ba-before-mt: 0;
151
+ --_ba-before-w: calc(var(--su-static8) + var(--su-static1)); // 9px
152
+ }
153
+
154
+ &:before {
155
+ height: var(--_ba-before-h);
156
+ margin-top: var(--_ba-before-mt);
157
+ width: var(--_ba-before-w);
158
+
159
+ content: "";
160
+ display: inline-block;
161
+ background-color: currentColor;
162
+ -webkit-mask: var(--_ba-before-icon) no-repeat center;
163
+ mask: var(--_ba-before-icon) no-repeat center;
164
+ -webkit-mask-size: contain;
165
+ mask-size: contain;
166
+ }
167
+ }
168
+
169
+ &&__staff {
170
+ // Staff badges are always "Stack Overflow Orange"
171
+ --_ba-bc: var(--orange-300);
172
+ --_ba-bg: var(--orange-200);
173
+ --_ba-fc: var(--orange-600);
174
+ }
175
+
176
+ // VARIANTS
177
+ &&__danger,
178
+ &&__muted {
179
+ &.s-badge__filled {
180
+ --_ba-bc: transparent;
181
+ }
182
+ }
183
+
184
+ &&__danger {
185
+ --_ba-bc: var(--red-300);
186
+ --_ba-bg: var(--red-200);
187
+ --_ba-fc: var(--red-600);
188
+
189
+ &.s-badge__filled {
190
+ --_ba-bg: var(--red-400);
191
+ --_ba-fc: var(--white);
192
+ }
193
+ }
194
+ &&__info {
195
+ --_ba-bc: var(--blue-300);
196
+ --_ba-bg: var(--blue-200);
197
+ --_ba-fc: var(--blue-600);
198
+ }
199
+
200
+ &&__warning {
201
+ --_ba-bc: var(--yellow-300);
202
+ --_ba-bg: var(--yellow-200);
203
+ --_ba-fc: var(--yellow-600);
204
+ }
205
+
206
+ &&__muted {
207
+ --_ba-bc: var(--black-300);
208
+ --_ba-bg: var(--black-200);
209
+ --_ba-fc: var(--black-500);
210
+
211
+ &.s-badge__filled {
212
+ --_ba-bg: var(--black-500);
213
+ --_ba-fc: var(--white);
214
+ }
215
+ }
216
+
217
+ &&__new {
218
+ --_ba-bc: var(--_ba-bg);
219
+ --_ba-bg: var(--purple-100);
220
+ --_ba-fc: var(--purple-400);
221
+ --_ba-fw: bold;
222
+ --_ba-tt: uppercase;
223
+ }
224
+
225
+ // CHILD ELEMENTS
226
+ &--image, // Included with no base class to account for usage in .s-progress__badge
227
+ & &--image {
228
+ align-self: center;
229
+ display: inline-flex;
230
+ margin-right: var(--su1);
231
+ margin-left: calc((var(--su4) + var(--su1)) * -1);
232
+ }
233
+
234
+ // INTERACTION
235
+ a&:hover {
236
+ text-decoration: none;
237
+ }
238
+
239
+ align-self: var(--_ba-as);
240
+ background-color: var(--_ba-bg);
241
+ border: var(--su-static1) solid var(--_ba-bc);
242
+ color: var(--_ba-fc);
243
+ font-size: var(--_ba-fs);
244
+ gap: var(--_ba-g);
245
+ font-weight: var(--_ba-fw);
246
+ line-height: var(--_ba-lh);
247
+ min-width: var(--_ba-wmn);
248
+ padding: var(--_ba-py) var(--_ba-px);
249
+ text-transform: var(--_ba-tt);
250
+
251
+ align-items: center;
252
+ border-radius: var(--br-sm);
253
+ display: inline-flex;
254
+ justify-content: center;
255
+ text-decoration: none;
256
+ vertical-align: middle;
257
+ white-space: nowrap;
258
+ }
@@ -1,44 +1,44 @@
1
- // See also ./lib/components/notice/notice.less
2
- // TODO deprecate .s-banner (by turning it into a modifier on .s-notice)
3
- // This would reduce the amount of CSS we ship to the client and simplify our codebase
4
- .s-banner {
5
- --_no-ty-offset: 0;
6
- --_no-ty: var(--theme-topbar-height, calc(var(--su-static48) + var(--su-static8)));
7
- .construct-notice-component(s-banner);
8
-
9
- &[aria-hidden="true"] { // If you want to hide and reveal the banner
10
- --_no-ty-offset: -1;
11
- opacity: 0;
12
- visibility: hidden;
13
- }
14
-
15
- &[aria-hidden="false"] {
16
- --_no-ty-offset: 1;
17
- opacity: 1;
18
- visibility: visible;
19
-
20
- &.is-pinned { // If you want to put the banner above the topbar
21
- --_no-ty-offset: 0;
22
- z-index: calc(var(--zi-navigation-fixed) + 1);
23
- }
24
- }
25
-
26
- &__body-pt {
27
- padding-top: 93px;
28
- }
29
-
30
- & &--container { // When we want to keep hero content capped
31
- margin: 0 auto;
32
- max-width: calc(var(--s-step) * 10);
33
- position: relative;
34
- width: 100%;
35
- }
36
-
37
- border-width: 0 0 var(--su-static1);
38
- inset: 0 0 auto 0;
39
- padding: var(--su12);
40
- position: fixed;
41
- transform: translate3d(0, calc(var(--_no-ty) * var(--_no-ty-offset)), 0);
42
- width: 100%;
43
- z-index: calc(var(--zi-navigation-fixed) - 1); // Tuck below topbar
44
- }
1
+ // See also ./lib/components/notice/notice.less
2
+ // TODO deprecate .s-banner (by turning it into a modifier on .s-notice)
3
+ // This would reduce the amount of CSS we ship to the client and simplify our codebase
4
+ .s-banner {
5
+ --_no-ty-offset: 0;
6
+ --_no-ty: var(--theme-topbar-height, calc(var(--su-static48) + var(--su-static8)));
7
+ .construct-notice-component(s-banner);
8
+
9
+ &[aria-hidden="true"] { // If you want to hide and reveal the banner
10
+ --_no-ty-offset: -1;
11
+ opacity: 0;
12
+ visibility: hidden;
13
+ }
14
+
15
+ &[aria-hidden="false"] {
16
+ --_no-ty-offset: 1;
17
+ opacity: 1;
18
+ visibility: visible;
19
+
20
+ &.is-pinned { // If you want to put the banner above the topbar
21
+ --_no-ty-offset: 0;
22
+ z-index: calc(var(--zi-navigation-fixed) + 1);
23
+ }
24
+ }
25
+
26
+ &__body-pt {
27
+ padding-top: 93px;
28
+ }
29
+
30
+ & &--container { // When we want to keep hero content capped
31
+ margin: 0 auto;
32
+ max-width: calc(var(--s-step) * 10);
33
+ position: relative;
34
+ width: 100%;
35
+ }
36
+
37
+ border-width: 0 0 var(--su-static1);
38
+ inset: 0 0 auto 0;
39
+ padding: var(--su12);
40
+ position: fixed;
41
+ transform: translate3d(0, calc(var(--_no-ty) * var(--_no-ty-offset)), 0);
42
+ width: 100%;
43
+ z-index: calc(var(--zi-navigation-fixed) - 1); // Tuck below topbar
44
+ }