@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.
Files changed (101) hide show
  1. package/LICENSE.MD +9 -9
  2. package/README.md +180 -180
  3. package/dist/css/stacks.css +102 -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 -159
  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,186 +1,186 @@
1
- .s-tag {
2
- // Base
3
- --_ta-bc: var(--theme-tag-border-color, var(--_ta-bg));
4
- --_ta-bg: var(--theme-tag-background-color, var(--black-150));
5
- --_ta-fc: var(--theme-tag-color, var(--black-500));
6
- // Hover
7
- --_ta-bc-hover: var(--theme-tag-hover-border-color, var(--_ta-bg-hover));
8
- --_ta-bg-hover: var(--theme-tag-hover-background-color, var(--black-200));
9
- --_ta-fc-hover: var(--theme-tag-hover-color, var(--black-600));
10
- // Other
11
- --_ta-br: var(--br-sm);
12
- --_ta-fs: var(--fs-caption);
13
- --_ta-lh: 1.846153846;
14
- --_ta-pl: var(--_ta-px);
15
- --_ta-pr: var(--_ta-px);
16
- --_ta-px: var(--su4);
17
- --_ta-dismiss-padding: calc(var(--_ta-px) - var(--su-static1));
18
-
19
- // CONTEXTUAL STYLES
20
- .highcontrast-mode({
21
- &:not(&__moderator):not(&__required) {
22
- --_ta-bc: var(--theme-tag-border-color, var(--black-300));
23
- --_ta-bc-hover: var(--theme-tag-hover-border-color, var(--black-300));
24
- }
25
- });
26
-
27
- // MODIFIERS
28
- // Sizes
29
- &&__xs {
30
- .size-styles(xs; ta; @styles: fs);
31
- --_ta-lh: 1.4;
32
- --_ta-px: var(--su2);
33
- }
34
- &&__sm {
35
- .size-styles(sm; ta; @styles: fs);
36
- --_ta-lh: 1.5;
37
- }
38
- &&__md {
39
- --_ta-px: var(--su6);
40
- --_ta-fs: var(--fs-body2);
41
- --_ta-lh: 1.733333333;
42
- }
43
- &&__lg {
44
- --_ta-br: calc(var(--br-sm) + var(--su-static1));
45
- --_ta-fs: var(--fs-subheading);
46
- --_ta-lh: 1.684210526;
47
- --_ta-px: var(--su6);
48
- }
49
-
50
- // VARIANTS
51
- // NOTE: ignored and watched variants are used in core with the .post-tag class (in place of the base tag .s-tag)
52
- &__ignored, // TODO: remove all single `&` ignored styles once core no longer requires them
53
- &&__ignored,
54
- &__watched, // TODO: remove all single `&` watched styles once core no longer requires them
55
- &&__watched {
56
- --_ta-pl: calc(var(--su-static24) - var(--su-static2)); // 22px
57
- --_ta-before-size: calc(var(--su-static16) - var(--su-static2)); // 14px
58
- // --_ta-before-icon defined per variant
59
-
60
- &:before {
61
- height: var(--_ta-before-size);
62
- width: var(--_ta-before-size);
63
- -webkit-mask: var(--_ta-before-icon) no-repeat center;
64
- mask: var(--_ta-before-icon) no-repeat center;
65
-
66
- background-color: currentColor;
67
- content: "";
68
- display: block;
69
- left: var(--su-static4);
70
- margin-right: var(--su2);
71
- position: absolute;
72
- top: calc(50% - calc(var(--su-static8) - var(--su-static1)));
73
- -webkit-mask-size: contain;
74
- mask-size: contain;
75
- }
76
-
77
- position: relative;
78
- }
79
-
80
- &__ignored, // TODO: remove all single `&` ignored styles once core no longer requires them
81
- &&__ignored {
82
- --_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");
83
- }
84
-
85
- // moderator overrides other required
86
- &&__moderator {
87
- --_ta-bc: var(--orange-300);
88
- --_ta-bg: var(--orange-100);
89
- --_ta-fc: var(--orange-500);
90
- --_ta-bc-hover: var(--orange-300);
91
- --_ta-bg-hover: var(--orange-200);
92
- --_ta-fc-hover: var(--orange-600);
93
- }
94
-
95
- &&__required:not(&__moderator) {
96
- --_ta-bc: var(--theme-tag-required-border-color, var(--theme-tag-border-color, var(--black-400)));
97
- --_ta-bg: var(--theme-tag-required-background-color, var(--theme-tag-background-color, var(--black-150)));
98
- --_ta-fc: var(--theme-tag-required-color, var(--theme-tag-color, var(--black-500)));
99
- --_ta-bc-hover: var(--theme-tag-required-hover-border-color, var(--theme-tag-hover-border-color, var(--black-600)));
100
- --_ta-bg-hover: var(--theme-tag-required-hover-background-color, var(--theme-tag-hover-background-color, var(--black-200)));
101
- --_ta-fc-hover: var(--theme-tag-required-hover-color, var(--theme-tag-hover-color, var(--black-600)));
102
- }
103
-
104
- &__watched, // TODO: remove all single `&` watched styles once core no longer requires them
105
- &&__watched {
106
- --_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");
107
- }
108
-
109
- // CHILD ELEMENTS
110
- & button&--dismiss:not(.s-btn) {
111
- all: unset;
112
- }
113
-
114
- & &--dismiss,
115
- & button&--dismiss:not(.s-btn) { // Style adjustment to @Svg.ClearSm
116
- &:focus-visible {
117
- .focus-styles();
118
- }
119
-
120
- &:hover {
121
- .highcontrast-mode({
122
- color: var(--white);
123
- });
124
-
125
- background-color: var(--_ta-fc);
126
- color: var(--_ta-bg);
127
- }
128
-
129
- align-items: center;
130
- align-self: stretch;
131
- background-color: transparent;
132
- border-radius: var(--br-sm);
133
- color: inherit;
134
- cursor: pointer;
135
- display: flex;
136
- justify-content: center;
137
- margin: var(--su-static1) calc(var(--_ta-dismiss-padding) * -1) var(--su-static1) var(--_ta-dismiss-padding);
138
- padding: var(--_ta-dismiss-padding);
139
- }
140
-
141
- & &--sponsor { // The small sponsor favicon displayed within a tag
142
- img,
143
- .svg-icon {
144
- width: 100%;
145
- height: 100%;
146
- }
147
-
148
- align-self: center;
149
- border-radius: calc(var(--br-sm) - var(--su-static1));
150
- display: inline-flex;
151
- margin: calc(var(--su1) * -1) var(--su4) calc(var(--su2) * -1) calc(var(--su2) * -1);
152
- max-width: calc(var(--su-static16) + var(--su-static2));
153
- }
154
-
155
- // INTERACTION
156
- a& {
157
- &:hover,
158
- &:active {
159
- background-color: var(--_ta-bg-hover);
160
- border-color: var(--_ta-bc-hover);
161
- color: var(--_ta-fc-hover);
162
- }
163
- }
164
-
165
- &:focus-visible {
166
- .focus-styles(false, true);
167
- }
168
-
169
- background-color: var(--_ta-bg);
170
- border: var(--su-static1) solid var(--_ta-bc);
171
- border-radius: var(--_ta-br);
172
- color: var(--_ta-fc);
173
- font-size: var(--_ta-fs);
174
- line-height: var(--_ta-lh);
175
- padding-left: var(--_ta-pl);
176
- padding-right: var(--_ta-pr);
177
-
178
- align-items: center;
179
- display: inline-flex;
180
- font-weight: 700;
181
- justify-content: center;
182
- min-width: 0;
183
- text-decoration: none;
184
- vertical-align: middle;
185
- white-space: nowrap;
186
- }
1
+ .s-tag {
2
+ // Base
3
+ --_ta-bc: var(--theme-tag-border-color, var(--_ta-bg));
4
+ --_ta-bg: var(--theme-tag-background-color, var(--black-150));
5
+ --_ta-fc: var(--theme-tag-color, var(--black-500));
6
+ // Hover
7
+ --_ta-bc-hover: var(--theme-tag-hover-border-color, var(--_ta-bg-hover));
8
+ --_ta-bg-hover: var(--theme-tag-hover-background-color, var(--black-200));
9
+ --_ta-fc-hover: var(--theme-tag-hover-color, var(--black-600));
10
+ // Other
11
+ --_ta-br: var(--br-sm);
12
+ --_ta-fs: var(--fs-caption);
13
+ --_ta-lh: 1.846153846;
14
+ --_ta-pl: var(--_ta-px);
15
+ --_ta-pr: var(--_ta-px);
16
+ --_ta-px: var(--su4);
17
+ --_ta-dismiss-padding: calc(var(--_ta-px) - var(--su-static1));
18
+
19
+ // CONTEXTUAL STYLES
20
+ .highcontrast-mode({
21
+ &:not(&__moderator):not(&__required) {
22
+ --_ta-bc: var(--theme-tag-border-color, var(--black-300));
23
+ --_ta-bc-hover: var(--theme-tag-hover-border-color, var(--black-300));
24
+ }
25
+ });
26
+
27
+ // MODIFIERS
28
+ // Sizes
29
+ &&__xs {
30
+ .size-styles(xs; ta; @styles: fs);
31
+ --_ta-lh: 1.4;
32
+ --_ta-px: var(--su2);
33
+ }
34
+ &&__sm {
35
+ .size-styles(sm; ta; @styles: fs);
36
+ --_ta-lh: 1.5;
37
+ }
38
+ &&__md {
39
+ --_ta-px: var(--su6);
40
+ --_ta-fs: var(--fs-body2);
41
+ --_ta-lh: 1.733333333;
42
+ }
43
+ &&__lg {
44
+ --_ta-br: calc(var(--br-sm) + var(--su-static1));
45
+ --_ta-fs: var(--fs-subheading);
46
+ --_ta-lh: 1.684210526;
47
+ --_ta-px: var(--su6);
48
+ }
49
+
50
+ // VARIANTS
51
+ // NOTE: ignored and watched variants are used in core with the .post-tag class (in place of the base tag .s-tag)
52
+ &__ignored, // TODO: remove all single `&` ignored styles once core no longer requires them
53
+ &&__ignored,
54
+ &__watched, // TODO: remove all single `&` watched styles once core no longer requires them
55
+ &&__watched {
56
+ --_ta-pl: calc(var(--su-static24) - var(--su-static2)); // 22px
57
+ --_ta-before-size: calc(var(--su-static16) - var(--su-static2)); // 14px
58
+ // --_ta-before-icon defined per variant
59
+
60
+ &:before {
61
+ height: var(--_ta-before-size);
62
+ width: var(--_ta-before-size);
63
+ -webkit-mask: var(--_ta-before-icon) no-repeat center;
64
+ mask: var(--_ta-before-icon) no-repeat center;
65
+
66
+ background-color: currentColor;
67
+ content: "";
68
+ display: block;
69
+ left: var(--su-static4);
70
+ margin-right: var(--su2);
71
+ position: absolute;
72
+ top: calc(50% - calc(var(--su-static8) - var(--su-static1)));
73
+ -webkit-mask-size: contain;
74
+ mask-size: contain;
75
+ }
76
+
77
+ position: relative;
78
+ }
79
+
80
+ &__ignored, // TODO: remove all single `&` ignored styles once core no longer requires them
81
+ &&__ignored {
82
+ --_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");
83
+ }
84
+
85
+ // moderator overrides other required
86
+ &&__moderator {
87
+ --_ta-bc: var(--orange-300);
88
+ --_ta-bg: var(--orange-100);
89
+ --_ta-fc: var(--orange-500);
90
+ --_ta-bc-hover: var(--orange-300);
91
+ --_ta-bg-hover: var(--orange-200);
92
+ --_ta-fc-hover: var(--orange-600);
93
+ }
94
+
95
+ &&__required:not(&__moderator) {
96
+ --_ta-bc: var(--theme-tag-required-border-color, var(--theme-tag-border-color, var(--black-400)));
97
+ --_ta-bg: var(--theme-tag-required-background-color, var(--theme-tag-background-color, var(--black-150)));
98
+ --_ta-fc: var(--theme-tag-required-color, var(--theme-tag-color, var(--black-500)));
99
+ --_ta-bc-hover: var(--theme-tag-required-hover-border-color, var(--theme-tag-hover-border-color, var(--black-600)));
100
+ --_ta-bg-hover: var(--theme-tag-required-hover-background-color, var(--theme-tag-hover-background-color, var(--black-200)));
101
+ --_ta-fc-hover: var(--theme-tag-required-hover-color, var(--theme-tag-hover-color, var(--black-600)));
102
+ }
103
+
104
+ &__watched, // TODO: remove all single `&` watched styles once core no longer requires them
105
+ &&__watched {
106
+ --_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");
107
+ }
108
+
109
+ // CHILD ELEMENTS
110
+ & button&--dismiss:not(.s-btn) {
111
+ all: unset;
112
+ }
113
+
114
+ & &--dismiss,
115
+ & button&--dismiss:not(.s-btn) { // Style adjustment to @Svg.ClearSm
116
+ &:focus-visible {
117
+ .focus-styles();
118
+ }
119
+
120
+ &:hover {
121
+ .highcontrast-mode({
122
+ color: var(--white);
123
+ });
124
+
125
+ background-color: var(--_ta-fc);
126
+ color: var(--_ta-bg);
127
+ }
128
+
129
+ align-items: center;
130
+ align-self: stretch;
131
+ background-color: transparent;
132
+ border-radius: var(--br-sm);
133
+ color: inherit;
134
+ cursor: pointer;
135
+ display: flex;
136
+ justify-content: center;
137
+ margin: var(--su-static1) calc(var(--_ta-dismiss-padding) * -1) var(--su-static1) var(--_ta-dismiss-padding);
138
+ padding: var(--_ta-dismiss-padding);
139
+ }
140
+
141
+ & &--sponsor { // The small sponsor favicon displayed within a tag
142
+ img,
143
+ .svg-icon {
144
+ width: 100%;
145
+ height: 100%;
146
+ }
147
+
148
+ align-self: center;
149
+ border-radius: calc(var(--br-sm) - var(--su-static1));
150
+ display: inline-flex;
151
+ margin: calc(var(--su1) * -1) var(--su4) calc(var(--su2) * -1) calc(var(--su2) * -1);
152
+ max-width: calc(var(--su-static16) + var(--su-static2));
153
+ }
154
+
155
+ // INTERACTION
156
+ a& {
157
+ &:hover,
158
+ &:active {
159
+ background-color: var(--_ta-bg-hover);
160
+ border-color: var(--_ta-bc-hover);
161
+ color: var(--_ta-fc-hover);
162
+ }
163
+ }
164
+
165
+ &:focus-visible {
166
+ .focus-styles(false, true);
167
+ }
168
+
169
+ background-color: var(--_ta-bg);
170
+ border: var(--su-static1) solid var(--_ta-bc);
171
+ border-radius: var(--_ta-br);
172
+ color: var(--_ta-fc);
173
+ font-size: var(--_ta-fs);
174
+ line-height: var(--_ta-lh);
175
+ padding-left: var(--_ta-pl);
176
+ padding-right: var(--_ta-pr);
177
+
178
+ align-items: center;
179
+ display: inline-flex;
180
+ font-weight: 700;
181
+ justify-content: center;
182
+ min-width: 0;
183
+ text-decoration: none;
184
+ vertical-align: middle;
185
+ white-space: nowrap;
186
+ }
@@ -1,35 +1,35 @@
1
- // See also ./lib/components/notice/notice.less
2
- .s-toast {
3
- @media (prefers-reduced-motion) {
4
- transform: none !important;
5
- }
6
-
7
- &[aria-hidden="false"] {
8
- opacity: 1;
9
- transform: translate3d(0, 0, 0);
10
- transition: visibility 0s 0s, opacity 100ms var(--te-smooth) 0s, transform 100ms var(--te-smooth) 0s;
11
- visibility: visible;
12
- }
13
-
14
- .s-notice {
15
- box-shadow: var(--bs-sm);
16
- max-width: 44rem;
17
- padding-bottom: var(--su8);
18
- padding-top: var(--su8);
19
- pointer-events: all;
20
- width: 100%;
21
- }
22
-
23
- display: flex;
24
- justify-content: center;
25
- left: var(--su8);
26
- opacity: 0;
27
- pointer-events: none;
28
- position: fixed;
29
- right: var(--su8);
30
- top: var(--su16);
31
- transform: translate3d(0, -66px, 0);
32
- transition: transform 100ms var(--te-smooth-slow) 0s, opacity 60ms var(--te-smooth-slow) 0ms, visibility 0s 150ms;
33
- visibility: hidden;
34
- z-index: calc(var(--zi-modals) + 1); // Toasts should appear above modals
35
- }
1
+ // See also ./lib/components/notice/notice.less
2
+ .s-toast {
3
+ @media (prefers-reduced-motion) {
4
+ transform: none !important;
5
+ }
6
+
7
+ &[aria-hidden="false"] {
8
+ opacity: 1;
9
+ transform: translate3d(0, 0, 0);
10
+ transition: visibility 0s 0s, opacity 100ms var(--te-smooth) 0s, transform 100ms var(--te-smooth) 0s;
11
+ visibility: visible;
12
+ }
13
+
14
+ .s-notice {
15
+ box-shadow: var(--bs-sm);
16
+ max-width: 44rem;
17
+ padding-bottom: var(--su8);
18
+ padding-top: var(--su8);
19
+ pointer-events: all;
20
+ width: 100%;
21
+ }
22
+
23
+ display: flex;
24
+ justify-content: center;
25
+ left: var(--su8);
26
+ opacity: 0;
27
+ pointer-events: none;
28
+ position: fixed;
29
+ right: var(--su8);
30
+ top: var(--su16);
31
+ transform: translate3d(0, -66px, 0);
32
+ transition: transform 100ms var(--te-smooth-slow) 0s, opacity 60ms var(--te-smooth-slow) 0ms, visibility 0s 150ms;
33
+ visibility: hidden;
34
+ z-index: calc(var(--zi-modals) + 1); // Toasts should appear above modals
35
+ }