@primer/css 0.0.0-2021926192438 → 0.0.0-2021926222917

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @primer/css
2
2
 
3
- ## 0.0.0-2021926192438
3
+ ## 0.0.0-2021926222917
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -8,11 +8,7 @@
8
8
 
9
9
  ### Patch Changes
10
10
 
11
- - [#1690](https://github.com/primer/css/pull/1690) [`af5a3ae8`](https://github.com/primer/css/commit/af5a3ae82668d6d04af8c3465302980dcf062cc4) Thanks [@simurai](https://github.com/simurai)! - Update `Subhead` actions
12
-
13
- * Fake entry to force publishing
14
-
15
- - [#1707](https://github.com/primer/css/pull/1707) [`70f4c65e`](https://github.com/primer/css/commit/70f4c65efb4dad553e8754a87cf529201aa4e204) Thanks [@maximedegreve](https://github.com/maximedegreve)! - Fix for disabled Safari inputs
11
+ - Fake entry to force publishing
16
12
 
17
13
  * [#1693](https://github.com/primer/css/pull/1693) [`c1ca19d4`](https://github.com/primer/css/commit/c1ca19d4f071a9b12172e4a13bdb96c52a200d47) Thanks [@jasonmacgowan](https://github.com/jasonmacgowan)! - Fix light-theme attr reference in theme docs
18
14
 
@@ -0,0 +1,48 @@
1
+ // stylelint-disable primer/spacing
2
+
3
+ // emtpy divider
4
+
5
+ .ActionList-sectionDivider {
6
+ // has children
7
+ &:not(:empty) {
8
+ display: flex;
9
+ padding: ($spacer-1 * 1.5) $spacer-2;
10
+ font-size: $font-size-small;
11
+ font-weight: $font-weight-bold;
12
+ color: var(--color-fg-muted);
13
+ flex-direction: column;
14
+ }
15
+
16
+ // no children
17
+ &:empty {
18
+ height: 1px;
19
+ padding: 0;
20
+ margin: ($spacer-2 - 1px) ($spacer-2 * -1) $spacer-2;
21
+ list-style: none;
22
+ background: var(--color-action-list-item-inline-divider);
23
+ border: 0;
24
+ }
25
+
26
+ // secondary description text
27
+ .ActionList-sectionDivider--description {
28
+ font-size: $font-size-small;
29
+ font-weight: $font-weight-normal;
30
+ }
31
+ }
32
+
33
+ .ActionList-sectionDivider--filled {
34
+ margin: $spacer-2 ($spacer-2 * -1);
35
+ background: var(--color-canvas-subtle);
36
+ border-top: $border-width $border-style var(--color-action-list-item-inline-divider);
37
+ border-bottom: $border-width $border-style var(--color-action-list-item-inline-divider);
38
+
39
+ // if no children, treat as divider
40
+ &:empty {
41
+ height: $spacer-2;
42
+ box-sizing: border-box;
43
+ }
44
+
45
+ &:first-child {
46
+ margin-top: 0;
47
+ }
48
+ }
@@ -0,0 +1,407 @@
1
+ // stylelint-disable selector-max-specificity, max-nesting-depth, primer/spacing, no-duplicate-selectors
2
+ @import './action-list-variables.scss';
3
+
4
+ @mixin focusOutline {
5
+ position: relative;
6
+ z-index: 1;
7
+ outline: none;
8
+ box-shadow: 0 0 0 2px var(--color-accent-fg); // this color breaks convention
9
+ }
10
+
11
+ // <li>
12
+ .ActionList-item {
13
+ position: relative;
14
+ list-style: none;
15
+ border-radius: $border-radius;
16
+
17
+ &:hover,
18
+ &:active {
19
+ cursor: pointer;
20
+
21
+ // a href
22
+ .ActionList-item-content {
23
+ text-decoration: none;
24
+ }
25
+ }
26
+
27
+ // only hover li without list as children
28
+ &:not(.ActionList-item--has-sub-item) {
29
+ &:hover {
30
+ cursor: pointer;
31
+ background-color: var(--color-action-list-item-default-hover-bg);
32
+ }
33
+
34
+ &:active {
35
+ background: var(--color-action-list-item-default-active-bg);
36
+
37
+ @media screen and (prefers-reduced-motion: no-preference) {
38
+ animation: ActionList-item-active-bg 4s forwards cubic-bezier(0.33, 1, 0.68, 1);
39
+ }
40
+
41
+ // stylelint-disable primer/box-shadow
42
+ @keyframes ActionList-item-active-bg {
43
+ 50% {
44
+ box-shadow: inset 0 0 0 rgba(#000, 0.04);
45
+ transform: scale(1);
46
+ }
47
+
48
+ 100% {
49
+ box-shadow: inset 0 3px 9px rgba(#000, 0.04);
50
+ transform: scale(0.97);
51
+ }
52
+ }
53
+ // stylelint-enable primer/box-shadow
54
+ }
55
+
56
+ &:hover,
57
+ &:active {
58
+ // hide dividers
59
+ .ActionList-item-content--label::before,
60
+ + .ActionList-item .ActionList-item-content--label::before {
61
+ visibility: hidden;
62
+ }
63
+ }
64
+ }
65
+
66
+ // target contents of li if sub-item (li wraps item label + nested ul)
67
+ // collapse styles here
68
+ &.ActionList-item--has-sub-item {
69
+ // first child
70
+ > .ActionList-item-content {
71
+ &:hover {
72
+ background-color: var(--color-action-list-item-default-hover-bg);
73
+ }
74
+ }
75
+ }
76
+
77
+ // active state [aria-current]
78
+
79
+ &.ActionList-item--nav-active:not(.ActionList-item--danger) {
80
+ background: var(--color-action-list-item-default-selected-bg);
81
+
82
+ &::before,
83
+ + .ActionList-item::before {
84
+ visibility: hidden;
85
+ }
86
+
87
+ // blue accent line
88
+ &::after {
89
+ position: absolute;
90
+ top: calc(50% - ($spacer-4 * 0.5));
91
+ left: -$actionList-item-padding-horizontal;
92
+ width: $spacer-1;
93
+ height: $spacer-4;
94
+ content: '';
95
+ background: var(--color-accent-fg);
96
+ border-radius: $border-radius;
97
+ }
98
+ }
99
+
100
+ // collapsible item [aria-expanded]
101
+
102
+ &[aria-expanded='true'] {
103
+ .ActionList-item-content--collapseIcon {
104
+ transition: transform 120ms linear;
105
+ transform: scaleY(-1);
106
+ }
107
+
108
+ .ActionList--sub-group {
109
+ display: block;
110
+ }
111
+
112
+ &.ActionList-item--has-sub-item {
113
+ > .ActionList-item-content > .ActionList-item-content--label {
114
+ font-weight: $font-weight-bold;
115
+ }
116
+ }
117
+ }
118
+
119
+ &[aria-expanded='false'] {
120
+ .ActionList-item-content--collapseIcon {
121
+ transition: transform 120ms linear;
122
+ transform: scaleY(1);
123
+ }
124
+
125
+ .ActionList--sub-group {
126
+ display: none;
127
+ }
128
+ }
129
+
130
+ // checkbox item [aria-checked]
131
+ // listbox [aria-selected]
132
+
133
+ &[aria-checked='true'],
134
+ &[aria-selected='true'] {
135
+ // multiselect checkmark
136
+ .ActionList-item-content--multiSelect-checkmark {
137
+ visibility: visible;
138
+ opacity: 1;
139
+ transition: visibility 0 linear 0, opacity $actionList-item-checkmark-transition-timing;
140
+ }
141
+
142
+ // singleselect checkmark
143
+ .ActionList-item-content--singleSelect {
144
+ visibility: visible;
145
+
146
+ @media screen and (prefers-reduced-motion: no-preference) {
147
+ animation: checkmarkIn 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards;
148
+ }
149
+ }
150
+
151
+ // checkbox
152
+ .ActionList-item-content--multiSelect {
153
+ .ActionList-item-content--multiSelect-rectangle {
154
+ fill: var(--color-accent-fg);
155
+ stroke: var(--color-accent-fg);
156
+ stroke-width: $border-width;
157
+ }
158
+
159
+ .ActionList-item-content--multiSelect-checkmark {
160
+ fill: var(--color-fg-on-emphasis);
161
+ }
162
+ }
163
+ }
164
+
165
+ &[aria-checked='false'],
166
+ &[aria-selected='false'] {
167
+ // multiselect checkmark
168
+ .ActionList-item-content--multiSelect-checkmark {
169
+ visibility: hidden;
170
+ opacity: 0;
171
+ transition:
172
+ visibility 0 linear $actionList-item-checkmark-transition-timing,
173
+ opacity $actionList-item-checkmark-transition-timing;
174
+ }
175
+
176
+ // singleselect checkmark
177
+ .ActionList-item-content--singleSelect {
178
+ visibility: hidden;
179
+ transition: visibility 0s linear 200ms;
180
+ clip-path: inset(16px 0 0 0);
181
+
182
+ @media screen and (prefers-reduced-motion: no-preference) {
183
+ animation: checkmarkOut 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards;
184
+ }
185
+ }
186
+
187
+ // checkbox
188
+ .ActionList-item-content--multiSelect {
189
+ .ActionList-item-content--multiSelect-rectangle {
190
+ fill: var(--color-canvas-default);
191
+ stroke: var(--color-border-default);
192
+ stroke-width: $border-width;
193
+ }
194
+ }
195
+
196
+ .ActionList-item-content--multiSelect-rectangle {
197
+ fill: var(--color-canvas-default);
198
+ border: $border-width $border-style var(--color-border-default);
199
+ }
200
+ }
201
+
202
+ @keyframes checkmarkIn {
203
+ from {
204
+ clip-path: inset(16px 0 0 0);
205
+ }
206
+
207
+ to {
208
+ clip-path: inset(0 0 0 0);
209
+ }
210
+ }
211
+
212
+ @keyframes checkmarkOut {
213
+ from {
214
+ clip-path: inset(0 0 0 0);
215
+ }
216
+
217
+ to {
218
+ clip-path: inset(16px 0 0 0);
219
+ }
220
+ }
221
+
222
+ // variants
223
+
224
+ &.ActionList-item--danger {
225
+ .ActionList-item-content--label {
226
+ color: var(--color-danger-fg);
227
+ }
228
+
229
+ @media (hover: hover) and (pointer: fine) {
230
+ &:hover {
231
+ background: var(--color-action-list-item-danger-hover-bg);
232
+
233
+ .ActionList-item-content--label {
234
+ color: var(--color-action-list-item-danger-hover-text);
235
+ }
236
+ }
237
+ }
238
+
239
+ &:active {
240
+ background: var(--color-action-list-item-danger-active-bg);
241
+ }
242
+ }
243
+
244
+ // if nested list exists, remove default padding
245
+ .ActionList {
246
+ padding: unset;
247
+ }
248
+ }
249
+
250
+ // span or a href
251
+ .ActionList-item-content {
252
+ position: relative;
253
+ display: grid;
254
+ padding: $actionList-item-padding-vertical $actionList-item-padding-horizontal;
255
+ font-weight: $font-weight-normal;
256
+ color: var(--color-fg-default);
257
+ user-select: none;
258
+ border-radius: $border-radius;
259
+ transition: $actionList-item-bg-transition;
260
+ grid-template-rows: minmax($actionList-item-height-sm, max-content); // 20px with 12px padding = [32px total]
261
+ grid-template-areas: 'leadingAction leadingVisual label trailingVisual trailingAction';
262
+ grid-template-columns: min-content min-content minmax(min-content, auto) min-content min-content;
263
+ align-items: center;
264
+
265
+ // column-gap persists with empty grid-areas, margin applies only when children exist
266
+ > :not(:last-child) {
267
+ margin-right: $spacer-2;
268
+ }
269
+
270
+ &:focus-visible {
271
+ @include focusOutline;
272
+ }
273
+
274
+ // sizes
275
+
276
+ &.ActionList-item-content--sizeMedium {
277
+ grid-template-rows: minmax($actionList-item-height-md, max-content); // 28px with 12px padding = [40px total]
278
+ }
279
+
280
+ &.ActionList-item-content--sizeLarge {
281
+ grid-template-rows: minmax($actionList-item-height-lg, max-content); // 36px with 12px padding = [48px total]
282
+ }
283
+
284
+ // On pointer:coarse (mobile), all list items are large
285
+ @media (pointer: coarse) {
286
+ grid-template-rows: minmax($actionList-item-height-lg, max-content);
287
+ }
288
+
289
+ &.ActionList-item-content--blockDescription {
290
+ // if leading/trailing visual, align with first line of content
291
+ .ActionList-item-content--visual {
292
+ place-self: start;
293
+ }
294
+ }
295
+ }
296
+
297
+ // place children on grid
298
+
299
+ .ActionList-item-content--action-leading {
300
+ grid-area: leadingAction;
301
+ }
302
+
303
+ .ActionList-item-content--visual-leading {
304
+ grid-area: leadingVisual;
305
+ }
306
+
307
+ .ActionList-item-content--label {
308
+ grid-area: label;
309
+ }
310
+
311
+ .ActionList-item-content--visual-trailing {
312
+ grid-area: trailingVisual;
313
+ }
314
+
315
+ .ActionList-item-content--action-trailing {
316
+ grid-area: trailingAction;
317
+ }
318
+
319
+ // wrapper span
320
+ .ActionList-item-content--label-blockDescription,
321
+ .ActionList-item-content--label-inlineDescription {
322
+ grid-area: label;
323
+ display: flex;
324
+
325
+ .ActionList-item-content--label {
326
+ font-weight: $font-weight-bold;
327
+ }
328
+ }
329
+
330
+ // block
331
+ .ActionList-item-content--label-blockDescription {
332
+ flex-direction: column;
333
+
334
+ .ActionList-item-content--description {
335
+ margin-top: $spacer-1;
336
+ }
337
+ }
338
+
339
+ // inline
340
+ .ActionList-item-content--label-inlineDescription {
341
+ flex-direction: row;
342
+ align-items: baseline;
343
+
344
+ .ActionList-item-content--description {
345
+ margin-left: $actionList-item-padding-horizontal;
346
+ }
347
+ }
348
+
349
+ // description
350
+ .ActionList-item-content--description {
351
+ font-size: $font-size-small;
352
+ line-height: $lh-default;
353
+ color: var(--color-fg-muted);
354
+ }
355
+
356
+ // helper for grid alignment with multi-line content
357
+ // span wrapping svg or text
358
+ .ActionList-item-content--visual,
359
+ .ActionList-item-content--action {
360
+ display: flex;
361
+ min-height: $actionList-item-height-sm;
362
+ color: var(--color-fg-muted); // if visual is text
363
+ fill: var(--color-fg-muted);
364
+ align-items: center;
365
+ }
366
+
367
+ // text
368
+ .ActionList-item-content--label {
369
+ position: relative; // for pseudo dividers
370
+ font-weight: $font-weight-normal;
371
+ color: var(--color-fg-default);
372
+ }
373
+
374
+ // nested lists (only supports 1 level currently)
375
+ // target ActionList-item--sub-item for padding-left to maintain :active :after state
376
+
377
+ .ActionList-item--sub-item > .ActionList-item-content {
378
+ font-size: $font-size-small;
379
+ }
380
+
381
+ // no leading visual
382
+ .ActionList--sub-group {
383
+ .ActionList-item--sub-item {
384
+ padding-left: $spacer-3;
385
+ }
386
+ }
387
+
388
+ // has 16px leading visual
389
+ .ActionList-item-content--visual--16 + .ActionList--sub-group {
390
+ .ActionList-item--sub-item {
391
+ padding-left: $spacer-4;
392
+ }
393
+ }
394
+
395
+ // has 20px leading visual
396
+ .ActionList-item-content--visual--20 + .ActionList--sub-group {
397
+ .ActionList-item--sub-item {
398
+ padding-left: $spacer-3 * 1.75;
399
+ }
400
+ }
401
+
402
+ // has 24px leading visual
403
+ .ActionList-item-content--visual--24 + .ActionList--sub-group {
404
+ .ActionList-item--sub-item {
405
+ padding-left: $spacer-5;
406
+ }
407
+ }
@@ -0,0 +1,7 @@
1
+ $actionList-item-height-sm: 20px !default;
2
+ $actionList-item-height-md: 28px !default;
3
+ $actionList-item-height-lg: 36px !default;
4
+ $actionList-item-padding-vertical: $spacer-1 * 1.5 !default;
5
+ $actionList-item-padding-horizontal: $spacer-2 !default;
6
+ $actionList-item-bg-transition: background 33.333ms linear !default; // 2 frames on a 60hz monitor
7
+ $actionList-item-checkmark-transition-timing: 50ms !default;
@@ -0,0 +1,35 @@
1
+ // stylelint-disable selector-max-specificity, selector-max-compound-selectors
2
+ @import './action-list-variables.scss';
3
+
4
+ // <ul>
5
+ .ActionList {
6
+ padding: $spacer-2;
7
+ }
8
+
9
+ // dividers
10
+
11
+ .ActionList--divided {
12
+ .ActionList-item-content--label::before {
13
+ position: absolute;
14
+ top: -$actionList-item-padding-vertical;
15
+ display: block;
16
+ width: 100%;
17
+ height: 1px;
18
+ content: '';
19
+ background: var(--color-action-list-item-inline-divider);
20
+ }
21
+
22
+ // hide divider if item is active
23
+ .ActionList-item--nav-active {
24
+ .ActionList-item-content--label::before,
25
+ + .ActionList-item .ActionList-item-content--label::before {
26
+ visibility: hidden;
27
+ }
28
+ }
29
+ }
30
+
31
+ .ActionList-item:first-of-type .ActionList-item-content--label::before,
32
+ .ActionList-sectionDivider + .ActionList-item .ActionList-item-content--label::before,
33
+ .ActionList-sectionHeader + .ActionList-item .ActionList-item-content--label::before {
34
+ visibility: hidden;
35
+ }
@@ -0,0 +1,5 @@
1
+ @import '../support/index.scss';
2
+ @import './action-list-variables.scss';
3
+ @import './action-list.scss';
4
+ @import './action-list-item.scss';
5
+ @import './action-list-item-divider.scss';
package/core/index.scss CHANGED
@@ -6,23 +6,24 @@
6
6
  */
7
7
 
8
8
  // Global requirements
9
- @import "../support/index.scss";
9
+ @import '../support/index.scss';
10
10
 
11
11
  // Color modes
12
12
 
13
13
  // Core modules
14
- @import "../base/index.scss";
15
- @import "../box/index.scss";
16
- @import "../breadcrumb/index.scss";
17
- @import "../buttons/index.scss";
18
- @import "../table-object/index.scss";
19
- @import "../forms/index.scss";
20
- @import "../layout/index.scss";
21
- @import "../links/index.scss";
22
- @import "../navigation/index.scss";
23
- @import "../pagination/index.scss";
24
- @import "../tooltips/index.scss";
25
- @import "../truncate/index.scss";
14
+ @import '../actionlist/index.scss';
15
+ @import '../base/index.scss';
16
+ @import '../box/index.scss';
17
+ @import '../breadcrumb/index.scss';
18
+ @import '../buttons/index.scss';
19
+ @import '../table-object/index.scss';
20
+ @import '../forms/index.scss';
21
+ @import '../layout/index.scss';
22
+ @import '../links/index.scss';
23
+ @import '../navigation/index.scss';
24
+ @import '../pagination/index.scss';
25
+ @import '../tooltips/index.scss';
26
+ @import '../truncate/index.scss';
26
27
 
27
28
  // Utilities always go last so that they can override components
28
- @import "../utilities/index.scss";
29
+ @import '../utilities/index.scss';
@@ -0,0 +1,2 @@
1
+ .ActionList{padding:8px}.ActionList--divided .ActionList-item-content--label::before{position:absolute;top:-6px;display:block;width:100%;height:1px;content:"";background:var(--color-action-list-item-inline-divider)}.ActionList--divided .ActionList-item--nav-active .ActionList-item-content--label::before,.ActionList--divided .ActionList-item--nav-active+.ActionList-item .ActionList-item-content--label::before{visibility:hidden}.ActionList-item:first-of-type .ActionList-item-content--label::before,.ActionList-sectionDivider+.ActionList-item .ActionList-item-content--label::before,.ActionList-sectionHeader+.ActionList-item .ActionList-item-content--label::before{visibility:hidden}.ActionList-item{position:relative;list-style:none;border-radius:6px}.ActionList-item:hover,.ActionList-item:active{cursor:pointer}.ActionList-item:hover .ActionList-item-content,.ActionList-item:active .ActionList-item-content{text-decoration:none}.ActionList-item:not(.ActionList-item--has-sub-item):hover{cursor:pointer;background-color:var(--color-action-list-item-default-hover-bg)}.ActionList-item:not(.ActionList-item--has-sub-item):active{background:var(--color-action-list-item-default-active-bg)}@media screen and (prefers-reduced-motion: no-preference){.ActionList-item:not(.ActionList-item--has-sub-item):active{animation:ActionList-item-active-bg 4s forwards cubic-bezier(0.33, 1, 0.68, 1)}}@keyframes ActionList-item-active-bg{50%{box-shadow:inset 0 0 0 rgba(0,0,0,.04);transform:scale(1)}100%{box-shadow:inset 0 3px 9px rgba(0,0,0,.04);transform:scale(0.97)}}.ActionList-item:not(.ActionList-item--has-sub-item):hover .ActionList-item-content--label::before,.ActionList-item:not(.ActionList-item--has-sub-item):hover+.ActionList-item .ActionList-item-content--label::before,.ActionList-item:not(.ActionList-item--has-sub-item):active .ActionList-item-content--label::before,.ActionList-item:not(.ActionList-item--has-sub-item):active+.ActionList-item .ActionList-item-content--label::before{visibility:hidden}.ActionList-item.ActionList-item--has-sub-item>.ActionList-item-content:hover{background-color:var(--color-action-list-item-default-hover-bg)}.ActionList-item.ActionList-item--nav-active:not(.ActionList-item--danger){background:var(--color-action-list-item-default-selected-bg)}.ActionList-item.ActionList-item--nav-active:not(.ActionList-item--danger)::before,.ActionList-item.ActionList-item--nav-active:not(.ActionList-item--danger)+.ActionList-item::before{visibility:hidden}.ActionList-item.ActionList-item--nav-active:not(.ActionList-item--danger)::after{position:absolute;top:calc(50% - 12px);left:-8px;width:4px;height:24px;content:"";background:var(--color-accent-fg);border-radius:6px}.ActionList-item[aria-expanded=true] .ActionList-item-content--collapseIcon{transition:transform 120ms linear;transform:scaleY(-1)}.ActionList-item[aria-expanded=true] .ActionList--sub-group{display:block}.ActionList-item[aria-expanded=true].ActionList-item--has-sub-item>.ActionList-item-content>.ActionList-item-content--label{font-weight:600}.ActionList-item[aria-expanded=false] .ActionList-item-content--collapseIcon{transition:transform 120ms linear;transform:scaleY(1)}.ActionList-item[aria-expanded=false] .ActionList--sub-group{display:none}.ActionList-item[aria-checked=true] .ActionList-item-content--multiSelect-checkmark,.ActionList-item[aria-selected=true] .ActionList-item-content--multiSelect-checkmark{visibility:visible;opacity:1;transition:visibility 0 linear 0,opacity 50ms}.ActionList-item[aria-checked=true] .ActionList-item-content--singleSelect,.ActionList-item[aria-selected=true] .ActionList-item-content--singleSelect{visibility:visible}@media screen and (prefers-reduced-motion: no-preference){.ActionList-item[aria-checked=true] .ActionList-item-content--singleSelect,.ActionList-item[aria-selected=true] .ActionList-item-content--singleSelect{animation:checkmarkIn 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards}}.ActionList-item[aria-checked=true] .ActionList-item-content--multiSelect .ActionList-item-content--multiSelect-rectangle,.ActionList-item[aria-selected=true] .ActionList-item-content--multiSelect .ActionList-item-content--multiSelect-rectangle{fill:var(--color-accent-fg);stroke:var(--color-accent-fg);stroke-width:1px}.ActionList-item[aria-checked=true] .ActionList-item-content--multiSelect .ActionList-item-content--multiSelect-checkmark,.ActionList-item[aria-selected=true] .ActionList-item-content--multiSelect .ActionList-item-content--multiSelect-checkmark{fill:var(--color-fg-on-emphasis)}.ActionList-item[aria-checked=false] .ActionList-item-content--multiSelect-checkmark,.ActionList-item[aria-selected=false] .ActionList-item-content--multiSelect-checkmark{visibility:hidden;opacity:0;transition:visibility 0 linear 50ms,opacity 50ms}.ActionList-item[aria-checked=false] .ActionList-item-content--singleSelect,.ActionList-item[aria-selected=false] .ActionList-item-content--singleSelect{visibility:hidden;transition:visibility 0s linear 200ms;-webkit-clip-path:inset(16px 0 0 0);clip-path:inset(16px 0 0 0)}@media screen and (prefers-reduced-motion: no-preference){.ActionList-item[aria-checked=false] .ActionList-item-content--singleSelect,.ActionList-item[aria-selected=false] .ActionList-item-content--singleSelect{animation:checkmarkOut 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards}}.ActionList-item[aria-checked=false] .ActionList-item-content--multiSelect .ActionList-item-content--multiSelect-rectangle,.ActionList-item[aria-selected=false] .ActionList-item-content--multiSelect .ActionList-item-content--multiSelect-rectangle{fill:var(--color-canvas-default);stroke:var(--color-border-default);stroke-width:1px}.ActionList-item[aria-checked=false] .ActionList-item-content--multiSelect-rectangle,.ActionList-item[aria-selected=false] .ActionList-item-content--multiSelect-rectangle{fill:var(--color-canvas-default);border:1px solid var(--color-border-default)}@keyframes checkmarkIn{from{-webkit-clip-path:inset(16px 0 0 0);clip-path:inset(16px 0 0 0)}to{-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}}@keyframes checkmarkOut{from{-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}to{-webkit-clip-path:inset(16px 0 0 0);clip-path:inset(16px 0 0 0)}}.ActionList-item.ActionList-item--danger .ActionList-item-content--label{color:var(--color-danger-fg)}@media(hover: hover)and (pointer: fine){.ActionList-item.ActionList-item--danger:hover{background:var(--color-action-list-item-danger-hover-bg)}.ActionList-item.ActionList-item--danger:hover .ActionList-item-content--label{color:var(--color-action-list-item-danger-hover-text)}}.ActionList-item.ActionList-item--danger:active{background:var(--color-action-list-item-danger-active-bg)}.ActionList-item .ActionList{padding:unset}.ActionList-item-content{position:relative;display:grid;padding:6px 8px;font-weight:400;color:var(--color-fg-default);-webkit-user-select:none;user-select:none;border-radius:6px;transition:background 33.333ms linear;grid-template-rows:minmax(20px, max-content);grid-template-areas:"leadingAction leadingVisual label trailingVisual trailingAction";grid-template-columns:min-content min-content minmax(min-content, auto) min-content min-content;align-items:center}.ActionList-item-content>:not(:last-child){margin-right:8px}.ActionList-item-content:focus-visible{position:relative;z-index:1;outline:none;box-shadow:0 0 0 2px var(--color-accent-fg)}.ActionList-item-content.ActionList-item-content--sizeMedium{grid-template-rows:minmax(28px, max-content)}.ActionList-item-content.ActionList-item-content--sizeLarge{grid-template-rows:minmax(36px, max-content)}@media(pointer: coarse){.ActionList-item-content{grid-template-rows:minmax(36px, max-content)}}.ActionList-item-content.ActionList-item-content--blockDescription .ActionList-item-content--visual{place-self:start}.ActionList-item-content--action-leading{grid-area:leadingAction}.ActionList-item-content--visual-leading{grid-area:leadingVisual}.ActionList-item-content--label{grid-area:label}.ActionList-item-content--visual-trailing{grid-area:trailingVisual}.ActionList-item-content--action-trailing{grid-area:trailingAction}.ActionList-item-content--label-blockDescription,.ActionList-item-content--label-inlineDescription{grid-area:label;display:flex}.ActionList-item-content--label-blockDescription .ActionList-item-content--label,.ActionList-item-content--label-inlineDescription .ActionList-item-content--label{font-weight:600}.ActionList-item-content--label-blockDescription{flex-direction:column}.ActionList-item-content--label-blockDescription .ActionList-item-content--description{margin-top:4px}.ActionList-item-content--label-inlineDescription{flex-direction:row;align-items:baseline}.ActionList-item-content--label-inlineDescription .ActionList-item-content--description{margin-left:8px}.ActionList-item-content--description{font-size:12px;line-height:1.5;color:var(--color-fg-muted)}.ActionList-item-content--visual,.ActionList-item-content--action{display:flex;min-height:20px;color:var(--color-fg-muted);fill:var(--color-fg-muted);align-items:center}.ActionList-item-content--label{position:relative;font-weight:400;color:var(--color-fg-default)}.ActionList-item--sub-item>.ActionList-item-content{font-size:12px}.ActionList--sub-group .ActionList-item--sub-item{padding-left:16px}.ActionList-item-content--visual--16+.ActionList--sub-group .ActionList-item--sub-item{padding-left:24px}.ActionList-item-content--visual--20+.ActionList--sub-group .ActionList-item--sub-item{padding-left:28px}.ActionList-item-content--visual--24+.ActionList--sub-group .ActionList-item--sub-item{padding-left:32px}.ActionList-sectionDivider:not(:empty){display:flex;padding:6px 8px;font-size:12px;font-weight:600;color:var(--color-fg-muted);flex-direction:column}.ActionList-sectionDivider:empty{height:1px;padding:0;margin:7px -8px 8px;list-style:none;background:var(--color-action-list-item-inline-divider);border:0}.ActionList-sectionDivider .ActionList-sectionDivider--description{font-size:12px;font-weight:400}.ActionList-sectionDivider--filled{margin:8px -8px;background:var(--color-canvas-subtle);border-top:1px solid var(--color-action-list-item-inline-divider);border-bottom:1px solid var(--color-action-list-item-inline-divider)}.ActionList-sectionDivider--filled:empty{height:8px;box-sizing:border-box}.ActionList-sectionDivider--filled:first-child{margin-top:0}
2
+ /*# sourceMappingURL=actionlist.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["file:///home/runner/work/css/css/src/actionlist/index.scss%23sass"],"names":[],"mappings":"AAmhBA,YAAA,WAAA,CAAA,6DAAA,iBAAA,CAAA,QAAA,CAAA,aAAA,CAAA,UAAA,CAAA,UAAA,CAAA,UAAA,CAAA,uDAAA,CAAA,qMAAA,iBAAA,CAAA,8OAAA,iBAAA,CAAA,iBAAA,iBAAA,CAAA,eAAA,CAAA,iBAAA,CAAA,+CAAA,cAAA,CAAA,iGAAA,oBAAA,CAAA,2DAAA,cAAA,CAAA,+DAAA,CAAA,4DAAA,0DAAA,CAAA,0DAAA,4DAAA,8EAAA,CAAA,CAAA,qCAAA,IAAA,sCAAA,CAAA,kBAAA,CAAA,KAAA,0CAAA,CAAA,qBAAA,CAAA,CAAA,gbAAA,iBAAA,CAAA,8EAAA,+DAAA,CAAA,2EAAA,4DAAA,CAAA,uLAAA,iBAAA,CAAA,kFAAA,iBAAA,CAAA,oBAAA,CAAA,SAAA,CAAA,SAAA,CAAA,WAAA,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