@primer/css 0.0.0-20219266537 → 0.0.0-2021927162313

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-20219266537
3
+ ## 0.0.0-2021927162313
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -8,13 +8,11 @@
8
8
 
9
9
  ### Patch Changes
10
10
 
11
- - [#1690](https://github.com/primer/css/pull/1690) [`3c0a65c5`](https://github.com/primer/css/commit/3c0a65c5efdc63352ae88881f2fd6ea3b96ad77c) Thanks [@simurai](https://github.com/simurai)! - Update `Subhead` actions
11
+ - Fake entry to force publishing
12
12
 
13
- * Fake entry to force publishing
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
14
14
 
15
- - [#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
16
-
17
- * [#1689](https://github.com/primer/css/pull/1689) [`257f68f6`](https://github.com/primer/css/commit/257f68f6539539ab809fbdb4351aefa57173e044) Thanks [@adityatheoctocatdev](https://github.com/adityatheoctocatdev)! - Update all Toast variant icons to use `var(--color-fg-on-emphasis)`
15
+ - [#1689](https://github.com/primer/css/pull/1689) [`257f68f6`](https://github.com/primer/css/commit/257f68f6539539ab809fbdb4351aefa57173e044) Thanks [@adityatheoctocatdev](https://github.com/adityatheoctocatdev)! - Update all Toast variant icons to use `var(--color-fg-on-emphasis)`
18
16
 
19
17
  The only visible change is in the `warning` variant, previously using `var(--color-fg-default)`
20
18
 
@@ -0,0 +1,42 @@
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
+
27
+ .ActionList-sectionDivider--filled {
28
+ margin: $spacer-2 ($spacer-2 * -1);
29
+ background: var(--color-canvas-subtle);
30
+ border-top: $border-width $border-style var(--color-action-list-item-inline-divider);
31
+ border-bottom: $border-width $border-style var(--color-action-list-item-inline-divider);
32
+
33
+ // if no children, treat as divider
34
+ &:empty {
35
+ height: $spacer-2;
36
+ box-sizing: border-box;
37
+ }
38
+
39
+ &:first-child {
40
+ margin-top: 0;
41
+ }
42
+ }
@@ -0,0 +1,421 @@
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-content {
23
+ text-decoration: none;
24
+ }
25
+ }
26
+
27
+ // only hover li without list as children
28
+ &:not(.ActionList-item--hasSubItem) {
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-label::before,
60
+ + .ActionList-item .ActionList-item-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--hasSubItem {
69
+ // first child
70
+ > .ActionList-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--navActive: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-collapseIcon {
104
+ transition: transform 120ms linear;
105
+ transform: scaleY(-1);
106
+ }
107
+
108
+ .ActionList--subGroup {
109
+ display: block;
110
+ }
111
+
112
+ &.ActionList-item--hasSubItem {
113
+ > .ActionList-content > .ActionList-item-label {
114
+ font-weight: $font-weight-bold;
115
+ }
116
+ }
117
+ }
118
+
119
+ &[aria-expanded='false'] {
120
+ .ActionList-item-collapseIcon {
121
+ transition: transform 120ms linear;
122
+ transform: scaleY(1);
123
+ }
124
+
125
+ .ActionList--subGroup {
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-multiSelectCheckmark {
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-singleSelectCheckmark {
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-multiSelectIcon {
153
+ .ActionList-item-multiSelectIconRect {
154
+ fill: var(--color-accent-fg);
155
+ stroke: var(--color-accent-fg);
156
+ stroke-width: $border-width;
157
+ }
158
+
159
+ .ActionList-item-multiSelectCheckmark {
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-multiSelectCheckmark {
169
+ visibility: hidden;
170
+ opacity: 0;
171
+ transition: visibility 0 linear $actionList-item-checkmark-transition-timing, opacity $actionList-item-checkmark-transition-timing;
172
+ }
173
+
174
+ // singleselect checkmark
175
+ .ActionList-item-singleSelectCheckmark {
176
+ visibility: hidden;
177
+ transition: visibility 0s linear 200ms;
178
+ clip-path: inset(16px 0 0 0);
179
+
180
+ @media screen and (prefers-reduced-motion: no-preference) {
181
+ animation: checkmarkOut 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards;
182
+ }
183
+ }
184
+
185
+ // checkbox
186
+ .ActionList-item-multiSelectIcon {
187
+ .ActionList-item-multiSelectIconRect {
188
+ fill: var(--color-canvas-default);
189
+ stroke: var(--color-border-default);
190
+ stroke-width: $border-width;
191
+ }
192
+ }
193
+
194
+ .ActionList-item-multiSelectIconRect {
195
+ fill: var(--color-canvas-default);
196
+ border: $border-width $border-style var(--color-border-default);
197
+ }
198
+ }
199
+
200
+ @keyframes checkmarkIn {
201
+ from {
202
+ clip-path: inset(16px 0 0 0);
203
+ }
204
+
205
+ to {
206
+ clip-path: inset(0 0 0 0);
207
+ }
208
+ }
209
+
210
+ @keyframes checkmarkOut {
211
+ from {
212
+ clip-path: inset(0 0 0 0);
213
+ }
214
+
215
+ to {
216
+ clip-path: inset(16px 0 0 0);
217
+ }
218
+ }
219
+
220
+ // variants
221
+
222
+ // danger
223
+ &.ActionList-item--danger {
224
+ .ActionList-item-label {
225
+ color: var(--color-danger-fg);
226
+ }
227
+
228
+ @media (hover: hover) and (pointer: fine) {
229
+ &:hover {
230
+ background: var(--color-action-list-item-danger-hover-bg);
231
+
232
+ .ActionList-item-label {
233
+ color: var(--color-action-list-item-danger-hover-text);
234
+ }
235
+ }
236
+ }
237
+
238
+ &:active {
239
+ background: var(--color-action-list-item-danger-active-bg);
240
+ }
241
+ }
242
+
243
+ // disabled
244
+ &.ActionList-item--disabled {
245
+ .ActionList-item-label {
246
+ color: pink;
247
+ }
248
+
249
+ .ActionList-item-visual {
250
+ fill: pink;
251
+ }
252
+
253
+ @media (hover: hover) and (pointer: fine) {
254
+ &:hover {
255
+ background-color: unset;
256
+ cursor: not-allowed;
257
+ }
258
+ }
259
+ }
260
+
261
+ // if nested list exists, remove default padding
262
+ .ActionList {
263
+ padding: unset;
264
+ }
265
+ }
266
+
267
+ // span or a href
268
+ .ActionList-content {
269
+ position: relative;
270
+ display: grid;
271
+ padding: $actionList-item-padding-vertical $actionList-item-padding-horizontal;
272
+ font-weight: $font-weight-normal;
273
+ color: var(--color-fg-default);
274
+ user-select: none;
275
+ border-radius: $border-radius;
276
+ transition: $actionList-item-bg-transition;
277
+ grid-template-rows: minmax($actionList-item-height-sm, max-content); // 20px with 12px padding = [32px total]
278
+ grid-template-areas: 'leadingAction leadingVisual label trailingVisual trailingAction';
279
+ grid-template-columns: min-content min-content minmax(min-content, auto) min-content min-content;
280
+ align-items: center;
281
+
282
+ // column-gap persists with empty grid-areas, margin applies only when children exist
283
+ > :not(:last-child) {
284
+ margin-right: $spacer-2;
285
+ }
286
+
287
+ &:focus-visible {
288
+ @include focusOutline;
289
+ }
290
+
291
+ // sizes
292
+
293
+ &.ActionList-content--sizeMedium {
294
+ grid-template-rows: minmax($actionList-item-height-md, max-content); // 28px with 12px padding = [40px total]
295
+ }
296
+
297
+ &.ActionList-content--sizeLarge {
298
+ grid-template-rows: minmax($actionList-item-height-lg, max-content); // 36px with 12px padding = [48px total]
299
+ }
300
+
301
+ // On pointer:coarse (mobile), all list items are large
302
+ @media (pointer: coarse) {
303
+ grid-template-rows: minmax($actionList-item-height-lg, max-content);
304
+ }
305
+
306
+ &.ActionList-content--blockDescription {
307
+ // if leading/trailing visual, align with first line of content
308
+ .ActionList-item-visual {
309
+ place-self: start;
310
+ }
311
+ }
312
+ }
313
+
314
+ // place children on grid
315
+
316
+ .ActionList-item-action--leading {
317
+ grid-area: leadingAction;
318
+ }
319
+
320
+ .ActionList-item-visual--leading {
321
+ grid-area: leadingVisual;
322
+ }
323
+
324
+ .ActionList-item-label {
325
+ grid-area: label;
326
+ }
327
+
328
+ .ActionList-item-visual--trailing {
329
+ grid-area: trailingVisual;
330
+ }
331
+
332
+ .ActionList-item-action--trailing {
333
+ grid-area: trailingAction;
334
+ }
335
+
336
+ // wrapper span
337
+ // default block
338
+ .ActionList-item-descriptionWrap {
339
+ grid-area: label;
340
+ display: flex;
341
+ flex-direction: column;
342
+
343
+ .ActionList-item-description {
344
+ margin-top: $spacer-1;
345
+ }
346
+
347
+ .ActionList-item-label {
348
+ font-weight: $font-weight-bold;
349
+ }
350
+ }
351
+
352
+ // inline
353
+ .ActionList-item-descriptionWrap--inline {
354
+ flex-direction: row;
355
+ align-items: baseline;
356
+
357
+ .ActionList-item-description {
358
+ margin-left: $actionList-item-padding-horizontal;
359
+ }
360
+ }
361
+
362
+ // description
363
+ .ActionList-item-description {
364
+ font-size: $font-size-small;
365
+ font-weight: $font-weight-normal;
366
+ line-height: $lh-default;
367
+ color: var(--color-fg-muted);
368
+ }
369
+
370
+ // helper for grid alignment with multi-line content
371
+ // span wrapping svg or text
372
+ .ActionList-item-visual,
373
+ .ActionList-item-action {
374
+ display: flex;
375
+ min-height: $actionList-item-height-sm;
376
+ color: var(--color-fg-muted); // if visual is text
377
+ fill: var(--color-fg-muted);
378
+ align-items: center;
379
+ }
380
+
381
+ // text
382
+ .ActionList-item-label {
383
+ position: relative; // for pseudo dividers
384
+ font-weight: $font-weight-normal;
385
+ color: var(--color-fg-default);
386
+ }
387
+
388
+ // nested lists (only supports 1 level currently)
389
+ // target ActionList-item--subItem for padding-left to maintain :active :after state
390
+
391
+ .ActionList-item--subItem > .ActionList-content {
392
+ font-size: $font-size-small;
393
+ }
394
+
395
+ // no leading visual
396
+ .ActionList--subGroup {
397
+ .ActionList-item--subItem {
398
+ padding-left: $spacer-3;
399
+ }
400
+ }
401
+
402
+ // has 16px leading visual
403
+ .ActionList-content--visual16 + .ActionList--subGroup {
404
+ .ActionList-item--subItem {
405
+ padding-left: $spacer-4;
406
+ }
407
+ }
408
+
409
+ // has 20px leading visual
410
+ .ActionList-content--visual20 + .ActionList--subGroup {
411
+ .ActionList-item--subItem {
412
+ padding-left: $spacer-3 * 1.75;
413
+ }
414
+ }
415
+
416
+ // has 24px leading visual
417
+ .ActionList-content--visual24 + .ActionList--subGroup {
418
+ .ActionList-item--subItem {
419
+ padding-left: $spacer-5;
420
+ }
421
+ }
@@ -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-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--navActive {
24
+ .ActionList-item-label::before,
25
+ + .ActionList-item .ActionList-item-label::before {
26
+ visibility: hidden;
27
+ }
28
+ }
29
+ }
30
+
31
+ .ActionList-item:first-of-type .ActionList-item-label::before,
32
+ .ActionList-sectionDivider + .ActionList-item .ActionList-item-label::before,
33
+ .ActionList-sectionHeader + .ActionList-item .ActionList-item-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-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--navActive .ActionList-item-label::before,.ActionList--divided .ActionList-item--navActive+.ActionList-item .ActionList-item-label::before{visibility:hidden}.ActionList-item:first-of-type .ActionList-item-label::before,.ActionList-sectionDivider+.ActionList-item .ActionList-item-label::before,.ActionList-sectionHeader+.ActionList-item .ActionList-item-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-content,.ActionList-item:active .ActionList-content{text-decoration:none}.ActionList-item:not(.ActionList-item--hasSubItem):hover{cursor:pointer;background-color:var(--color-action-list-item-default-hover-bg)}.ActionList-item:not(.ActionList-item--hasSubItem):active{background:var(--color-action-list-item-default-active-bg)}@media screen and (prefers-reduced-motion: no-preference){.ActionList-item:not(.ActionList-item--hasSubItem):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--hasSubItem):hover .ActionList-item-label::before,.ActionList-item:not(.ActionList-item--hasSubItem):hover+.ActionList-item .ActionList-item-label::before,.ActionList-item:not(.ActionList-item--hasSubItem):active .ActionList-item-label::before,.ActionList-item:not(.ActionList-item--hasSubItem):active+.ActionList-item .ActionList-item-label::before{visibility:hidden}.ActionList-item.ActionList-item--hasSubItem>.ActionList-content:hover{background-color:var(--color-action-list-item-default-hover-bg)}.ActionList-item.ActionList-item--navActive:not(.ActionList-item--danger){background:var(--color-action-list-item-default-selected-bg)}.ActionList-item.ActionList-item--navActive:not(.ActionList-item--danger)::before,.ActionList-item.ActionList-item--navActive:not(.ActionList-item--danger)+.ActionList-item::before{visibility:hidden}.ActionList-item.ActionList-item--navActive: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-collapseIcon{transition:transform 120ms linear;transform:scaleY(-1)}.ActionList-item[aria-expanded=true] .ActionList--subGroup{display:block}.ActionList-item[aria-expanded=true].ActionList-item--hasSubItem>.ActionList-content>.ActionList-item-label{font-weight:600}.ActionList-item[aria-expanded=false] .ActionList-item-collapseIcon{transition:transform 120ms linear;transform:scaleY(1)}.ActionList-item[aria-expanded=false] .ActionList--subGroup{display:none}.ActionList-item[aria-checked=true] .ActionList-item-multiSelectCheckmark,.ActionList-item[aria-selected=true] .ActionList-item-multiSelectCheckmark{visibility:visible;opacity:1;transition:visibility 0 linear 0,opacity 50ms}.ActionList-item[aria-checked=true] .ActionList-item-singleSelectCheckmark,.ActionList-item[aria-selected=true] .ActionList-item-singleSelectCheckmark{visibility:visible}@media screen and (prefers-reduced-motion: no-preference){.ActionList-item[aria-checked=true] .ActionList-item-singleSelectCheckmark,.ActionList-item[aria-selected=true] .ActionList-item-singleSelectCheckmark{animation:checkmarkIn 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards}}.ActionList-item[aria-checked=true] .ActionList-item-multiSelectIcon .ActionList-item-multiSelectIconRect,.ActionList-item[aria-selected=true] .ActionList-item-multiSelectIcon .ActionList-item-multiSelectIconRect{fill:var(--color-accent-fg);stroke:var(--color-accent-fg);stroke-width:1px}.ActionList-item[aria-checked=true] .ActionList-item-multiSelectIcon .ActionList-item-multiSelectCheckmark,.ActionList-item[aria-selected=true] .ActionList-item-multiSelectIcon .ActionList-item-multiSelectCheckmark{fill:var(--color-fg-on-emphasis)}.ActionList-item[aria-checked=false] .ActionList-item-multiSelectCheckmark,.ActionList-item[aria-selected=false] .ActionList-item-multiSelectCheckmark{visibility:hidden;opacity:0;transition:visibility 0 linear 50ms,opacity 50ms}.ActionList-item[aria-checked=false] .ActionList-item-singleSelectCheckmark,.ActionList-item[aria-selected=false] .ActionList-item-singleSelectCheckmark{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-singleSelectCheckmark,.ActionList-item[aria-selected=false] .ActionList-item-singleSelectCheckmark{animation:checkmarkOut 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards}}.ActionList-item[aria-checked=false] .ActionList-item-multiSelectIcon .ActionList-item-multiSelectIconRect,.ActionList-item[aria-selected=false] .ActionList-item-multiSelectIcon .ActionList-item-multiSelectIconRect{fill:var(--color-canvas-default);stroke:var(--color-border-default);stroke-width:1px}.ActionList-item[aria-checked=false] .ActionList-item-multiSelectIconRect,.ActionList-item[aria-selected=false] .ActionList-item-multiSelectIconRect{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-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-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-item--disabled .ActionList-item-label{color:pink}.ActionList-item.ActionList-item--disabled .ActionList-item-visual{fill:pink}@media(hover: hover)and (pointer: fine){.ActionList-item.ActionList-item--disabled:hover{background-color:unset;cursor:not-allowed}}.ActionList-item .ActionList{padding:unset}.ActionList-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-content>:not(:last-child){margin-right:8px}.ActionList-content:focus-visible{position:relative;z-index:1;outline:none;box-shadow:0 0 0 2px var(--color-accent-fg)}.ActionList-content.ActionList-content--sizeMedium{grid-template-rows:minmax(28px, max-content)}.ActionList-content.ActionList-content--sizeLarge{grid-template-rows:minmax(36px, max-content)}@media(pointer: coarse){.ActionList-content{grid-template-rows:minmax(36px, max-content)}}.ActionList-content.ActionList-content--blockDescription .ActionList-item-visual{place-self:start}.ActionList-item-action--leading{grid-area:leadingAction}.ActionList-item-visual--leading{grid-area:leadingVisual}.ActionList-item-label{grid-area:label}.ActionList-item-visual--trailing{grid-area:trailingVisual}.ActionList-item-action--trailing{grid-area:trailingAction}.ActionList-item-descriptionWrap{grid-area:label;display:flex;flex-direction:column}.ActionList-item-descriptionWrap .ActionList-item-description{margin-top:4px}.ActionList-item-descriptionWrap .ActionList-item-label{font-weight:600}.ActionList-item-descriptionWrap--inline{flex-direction:row;align-items:baseline}.ActionList-item-descriptionWrap--inline .ActionList-item-description{margin-left:8px}.ActionList-item-description{font-size:12px;font-weight:400;line-height:1.5;color:var(--color-fg-muted)}.ActionList-item-visual,.ActionList-item-action{display:flex;min-height:20px;color:var(--color-fg-muted);fill:var(--color-fg-muted);align-items:center}.ActionList-item-label{position:relative;font-weight:400;color:var(--color-fg-default)}.ActionList-item--subItem>.ActionList-content{font-size:12px}.ActionList--subGroup .ActionList-item--subItem{padding-left:16px}.ActionList-content--visual16+.ActionList--subGroup .ActionList-item--subItem{padding-left:24px}.ActionList-content--visual20+.ActionList--subGroup .ActionList-item--subItem{padding-left:28px}.ActionList-content--visual24+.ActionList--subGroup .ActionList-item--subItem{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--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,oDAAA,iBAAA,CAAA,QAAA,CAAA,aAAA,CAAA,UAAA,CAAA,UAAA,CAAA,UAAA,CAAA,uDAAA,CAAA,iLAAA,iBAAA,CAAA,mNAAA,iBAAA,CAAA,iBAAA,iBAAA,CAAA,eAAA,CAAA,iBAAA,CAAA,+CAAA,cAAA,CAAA,uFAAA,oBAAA,CAAA,yDAAA,cAAA,CAAA,+DAAA,CAAA,0DAAA,0DAA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