@primer/css 0.0.0-202192914659 → 0.0.0-2021929185348

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-202192914659
3
+ ## 0.0.0-2021929185348
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -0,0 +1,42 @@
1
+ // emtpy divider
2
+
3
+ .ActionList-sectionDivider {
4
+ // has children
5
+ &:not(:empty) {
6
+ display: flex;
7
+ // stylelint-disable-next-line primer/spacing
8
+ padding: ($spacer-1 * 1.5) $spacer-2;
9
+ font-size: $font-size-small;
10
+ font-weight: $font-weight-bold;
11
+ color: var(--color-fg-muted);
12
+ flex-direction: column;
13
+ }
14
+
15
+ // no children
16
+ &:empty {
17
+ height: 1px;
18
+ padding: 0;
19
+ // stylelint-disable-next-line primer/spacing
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,439 @@
1
+ @mixin focusOutline {
2
+ position: relative;
3
+ z-index: 1;
4
+ outline: none;
5
+ box-shadow: 0 0 0 2px var(--color-accent-fg); // this color breaks convention
6
+ }
7
+
8
+ // <li>
9
+ .ActionList-item {
10
+ position: relative;
11
+ list-style: none;
12
+ background-color: transparent;
13
+ border-radius: $border-radius;
14
+
15
+ &:hover,
16
+ &:active {
17
+ cursor: pointer;
18
+
19
+ // a href
20
+ .ActionList-content {
21
+ text-decoration: none;
22
+ }
23
+ }
24
+
25
+ // only hover li without list as children
26
+ &:not(.ActionList-item--hasSubItem) {
27
+ &:hover {
28
+ cursor: pointer;
29
+ background-color: var(--color-action-list-item-default-hover-bg);
30
+ }
31
+
32
+ &:active {
33
+ background: var(--color-action-list-item-default-active-bg);
34
+
35
+ @media screen and (prefers-reduced-motion: no-preference) {
36
+ animation: ActionList-item-active-bg 4s forwards cubic-bezier(0.33, 1, 0.68, 1);
37
+ }
38
+
39
+ // stylelint-disable primer/box-shadow
40
+ @keyframes ActionList-item-active-bg {
41
+ // stylelint-disable-next-line max-nesting-depth
42
+ 50% {
43
+ box-shadow: inset 0 0 0 rgba(#000, 0.04);
44
+ transform: scale(1);
45
+ }
46
+
47
+ // stylelint-disable-next-line max-nesting-depth
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
+ // stylelint-disable-next-line selector-max-specificity
60
+ .ActionList-item-label::before,
61
+ + .ActionList-item .ActionList-item-label::before {
62
+ visibility: hidden;
63
+ }
64
+ }
65
+ }
66
+
67
+ // target contents of li if sub-item (li wraps item label + nested ul)
68
+ // collapse styles here
69
+ &.ActionList-item--hasSubItem {
70
+ // first child
71
+ > .ActionList-content {
72
+ &:hover {
73
+ background-color: var(--color-action-list-item-default-hover-bg);
74
+ }
75
+ }
76
+ }
77
+
78
+ // active state [aria-current]
79
+
80
+ &.ActionList-item--navActive:not(.ActionList-item--danger) {
81
+ background: var(--color-action-list-item-default-selected-bg);
82
+
83
+ // stylelint-disable-next-line selector-max-specificity
84
+ &::before,
85
+ + .ActionList-item::before {
86
+ visibility: hidden;
87
+ }
88
+
89
+ // blue accent line
90
+ &::after {
91
+ position: absolute;
92
+ top: calc(50% - 12px);
93
+ left: -$actionList-item-padding-horizontal;
94
+ width: $spacer-1;
95
+ height: $spacer-4;
96
+ content: '';
97
+ background: var(--color-accent-fg);
98
+ border-radius: $border-radius;
99
+ }
100
+ }
101
+
102
+ // collapsible item [aria-expanded]
103
+
104
+ &[aria-expanded='true'] {
105
+ .ActionList-item-collapseIcon {
106
+ transition: transform 120ms linear;
107
+ transform: scaleY(-1);
108
+ }
109
+
110
+ .ActionList--subGroup {
111
+ display: block;
112
+ }
113
+
114
+ // stylelint-disable-next-line selector-max-specificity
115
+ &.ActionList-item--hasSubItem {
116
+ // stylelint-disable-next-line selector-max-specificity
117
+ > .ActionList-content > .ActionList-item-label {
118
+ font-weight: $font-weight-bold;
119
+ }
120
+ }
121
+ }
122
+
123
+ &[aria-expanded='false'] {
124
+ .ActionList-item-collapseIcon {
125
+ transition: transform 120ms linear;
126
+ transform: scaleY(1);
127
+ }
128
+
129
+ .ActionList--subGroup {
130
+ display: none;
131
+ }
132
+ }
133
+
134
+ // checkbox item [aria-checked]
135
+ // listbox [aria-selected]
136
+
137
+ &[aria-checked='true'],
138
+ &[aria-selected='true'] {
139
+ // multiselect checkmark
140
+ .ActionList-item-multiSelectCheckmark {
141
+ visibility: visible;
142
+ opacity: 1;
143
+ transition: visibility 0 linear 0, opacity $actionList-item-checkmark-transition-timing;
144
+ }
145
+
146
+ // singleselect checkmark
147
+ .ActionList-item-singleSelectCheckmark {
148
+ visibility: visible;
149
+
150
+ @media screen and (prefers-reduced-motion: no-preference) {
151
+ animation: checkmarkIn 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards;
152
+ }
153
+ }
154
+
155
+ // checkbox
156
+ .ActionList-item-multiSelectIcon {
157
+ .ActionList-item-multiSelectIconRect {
158
+ fill: var(--color-accent-fg);
159
+ stroke: var(--color-accent-fg);
160
+ stroke-width: $border-width;
161
+ }
162
+
163
+ .ActionList-item-multiSelectCheckmark {
164
+ fill: var(--color-fg-on-emphasis);
165
+ }
166
+ }
167
+ }
168
+
169
+ &[aria-checked='false'],
170
+ &[aria-selected='false'] {
171
+ // multiselect checkmark
172
+ // stylelint-disable-next-line selector-max-specificity
173
+ .ActionList-item-multiSelectCheckmark {
174
+ visibility: hidden;
175
+ opacity: 0;
176
+ transition:
177
+ visibility 0 linear $actionList-item-checkmark-transition-timing,
178
+ opacity $actionList-item-checkmark-transition-timing;
179
+ }
180
+
181
+ // singleselect checkmark
182
+ .ActionList-item-singleSelectCheckmark {
183
+ visibility: hidden;
184
+ transition: visibility 0s linear 200ms;
185
+ clip-path: inset(16px 0 0 0);
186
+
187
+ @media screen and (prefers-reduced-motion: no-preference) {
188
+ animation: checkmarkOut 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards;
189
+ }
190
+ }
191
+
192
+ // checkbox
193
+ .ActionList-item-multiSelectIcon {
194
+ .ActionList-item-multiSelectIconRect {
195
+ fill: var(--color-canvas-default);
196
+ stroke: var(--color-border-default);
197
+ stroke-width: $border-width;
198
+ }
199
+ }
200
+
201
+ .ActionList-item-multiSelectIconRect {
202
+ fill: var(--color-canvas-default);
203
+ border: $border-width $border-style var(--color-border-default);
204
+ }
205
+ }
206
+
207
+ @keyframes checkmarkIn {
208
+ from {
209
+ clip-path: inset(16px 0 0 0);
210
+ }
211
+
212
+ to {
213
+ clip-path: inset(0 0 0 0);
214
+ }
215
+ }
216
+
217
+ @keyframes checkmarkOut {
218
+ from {
219
+ clip-path: inset(0 0 0 0);
220
+ }
221
+
222
+ to {
223
+ clip-path: inset(16px 0 0 0);
224
+ }
225
+ }
226
+
227
+ // variants
228
+
229
+ // danger
230
+ &.ActionList-item--danger {
231
+ .ActionList-item-label {
232
+ color: var(--color-danger-fg);
233
+ }
234
+
235
+ .ActionList-item-visual {
236
+ color: var(--color-danger-fg);
237
+ }
238
+
239
+ @media (hover: hover) and (pointer: fine) {
240
+ &:hover {
241
+ background: var(--color-action-list-item-danger-hover-bg);
242
+
243
+ // stylelint-disable-next-line max-nesting-depth
244
+ .ActionList-item-label {
245
+ color: var(--color-action-list-item-danger-hover-text);
246
+ }
247
+ }
248
+ }
249
+
250
+ &:active {
251
+ background: var(--color-action-list-item-danger-active-bg);
252
+ }
253
+ }
254
+
255
+ // disabled
256
+ &[aria-disabled='true'] {
257
+ .ActionList-item-label,
258
+ .ActionList-item-description {
259
+ color: var(--color-primer-fg-disabled);
260
+ }
261
+
262
+ .ActionList-item-visual {
263
+ fill: var(--color-primer-fg-disabled);
264
+ }
265
+
266
+ @media (hover: hover) and (pointer: fine) {
267
+ &:hover {
268
+ cursor: not-allowed;
269
+ background-color: transparent;
270
+ }
271
+ }
272
+ }
273
+
274
+ // if nested list exists, remove default padding
275
+ .ActionList {
276
+ // stylelint-disable-next-line primer/spacing
277
+ padding: unset;
278
+ }
279
+ }
280
+
281
+ // span or a href
282
+ .ActionList-content {
283
+ position: relative;
284
+ display: grid;
285
+ // stylelint-disable-next-line primer/spacing
286
+ padding: $actionList-item-padding-vertical $actionList-item-padding-horizontal;
287
+ font-weight: $font-weight-normal;
288
+ color: var(--color-fg-default);
289
+ user-select: none;
290
+ border-radius: $border-radius;
291
+ transition: $actionList-item-bg-transition;
292
+ grid-template-rows: minmax($actionList-item-height-sm, max-content); // 20px with 12px padding = [32px total]
293
+ grid-template-areas: 'leadingAction leadingVisual label trailingVisual trailingAction';
294
+ grid-template-columns: min-content min-content minmax(min-content, auto) min-content min-content;
295
+ align-items: center;
296
+
297
+ // column-gap persists with empty grid-areas, margin applies only when children exist
298
+ > :not(:last-child) {
299
+ margin-right: $spacer-2;
300
+ }
301
+
302
+ &:focus-visible {
303
+ @include focusOutline;
304
+ }
305
+
306
+ // sizes
307
+
308
+ &.ActionList-content--sizeMedium {
309
+ grid-template-rows: minmax($actionList-item-height-md, max-content); // 28px with 12px padding = [40px total]
310
+ }
311
+
312
+ &.ActionList-content--sizeLarge {
313
+ grid-template-rows: minmax($actionList-item-height-lg, max-content); // 36px with 12px padding = [48px total]
314
+ }
315
+
316
+ // On pointer:coarse (mobile), all list items are large
317
+ @media (pointer: coarse) {
318
+ grid-template-rows: minmax($actionList-item-height-lg, max-content);
319
+ }
320
+
321
+ &.ActionList-content--blockDescription {
322
+ // if leading/trailing visual, align with first line of content
323
+ .ActionList-item-visual {
324
+ place-self: start;
325
+ }
326
+ }
327
+ }
328
+
329
+ // place children on grid
330
+
331
+ .ActionList-item-action--leading {
332
+ grid-area: leadingAction;
333
+ }
334
+
335
+ .ActionList-item-visual--leading {
336
+ grid-area: leadingVisual;
337
+ }
338
+
339
+ .ActionList-item-label {
340
+ grid-area: label;
341
+ }
342
+
343
+ .ActionList-item-visual--trailing {
344
+ grid-area: trailingVisual;
345
+ }
346
+
347
+ .ActionList-item-action--trailing {
348
+ grid-area: trailingAction;
349
+ }
350
+
351
+ // wrapper span
352
+ // default block
353
+ .ActionList-item-descriptionWrap {
354
+ grid-area: label;
355
+ display: flex;
356
+ flex-direction: column;
357
+
358
+ .ActionList-item-description {
359
+ margin-top: $spacer-1;
360
+ }
361
+
362
+ .ActionList-item-label {
363
+ font-weight: $font-weight-bold;
364
+ }
365
+ }
366
+
367
+ // inline
368
+ .ActionList-item-descriptionWrap--inline {
369
+ flex-direction: row;
370
+ align-items: baseline;
371
+
372
+ .ActionList-item-description {
373
+ // stylelint-disable-next-line primer/spacing
374
+ margin-left: $actionList-item-padding-horizontal;
375
+ }
376
+ }
377
+
378
+ // description
379
+ .ActionList-item-description {
380
+ font-size: $font-size-small;
381
+ font-weight: $font-weight-normal;
382
+ line-height: $lh-default;
383
+ color: var(--color-fg-muted);
384
+ }
385
+
386
+ // helper for grid alignment with multi-line content
387
+ // span wrapping svg or text
388
+ .ActionList-item-visual,
389
+ .ActionList-item-action {
390
+ display: flex;
391
+ min-height: $actionList-item-height-sm;
392
+ color: var(--color-fg-muted); // if visual is text
393
+ fill: var(--color-fg-muted);
394
+ align-items: center;
395
+ }
396
+
397
+ // text
398
+ // stylelint-disable-next-line no-duplicate-selectors
399
+ .ActionList-item-label {
400
+ position: relative; // for pseudo dividers
401
+ font-weight: $font-weight-normal;
402
+ color: var(--color-fg-default);
403
+ }
404
+
405
+ // nested lists (only supports 1 level currently)
406
+ // target ActionList-item--subItem for padding-left to maintain :active :after state
407
+
408
+ .ActionList-item--subItem > .ActionList-content {
409
+ font-size: $font-size-small;
410
+ }
411
+
412
+ // no leading visual
413
+ .ActionList--subGroup {
414
+ .ActionList-item--subItem {
415
+ padding-left: $spacer-3;
416
+ }
417
+ }
418
+
419
+ // has 16px leading visual
420
+ .ActionList-content--visual16 + .ActionList--subGroup {
421
+ .ActionList-item--subItem {
422
+ padding-left: $spacer-4;
423
+ }
424
+ }
425
+
426
+ // has 20px leading visual
427
+ .ActionList-content--visual20 + .ActionList--subGroup {
428
+ .ActionList-item--subItem {
429
+ // stylelint-disable-next-line primer/spacing
430
+ padding-left: $spacer-3 * 1.75;
431
+ }
432
+ }
433
+
434
+ // has 24px leading visual
435
+ .ActionList-content--visual24 + .ActionList--subGroup {
436
+ .ActionList-item--subItem {
437
+ padding-left: $spacer-5;
438
+ }
439
+ }
@@ -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,34 @@
1
+ // <ul>
2
+ .ActionList {
3
+ padding: $spacer-2;
4
+ }
5
+
6
+ // dividers
7
+
8
+ .ActionList--divided {
9
+ .ActionList-item-label::before {
10
+ position: absolute;
11
+ top: -$actionList-item-padding-vertical;
12
+ display: block;
13
+ width: 100%;
14
+ height: 1px;
15
+ content: '';
16
+ background: var(--color-action-list-item-inline-divider);
17
+ }
18
+
19
+ // hide divider if item is active
20
+ .ActionList-item--navActive {
21
+ // stylelint-disable-next-line selector-max-specificity, selector-max-compound-selectors
22
+ .ActionList-item-label::before,
23
+ // stylelint-disable-next-line selector-max-specificity
24
+ + .ActionList-item .ActionList-item-label::before {
25
+ visibility: hidden;
26
+ }
27
+ }
28
+ }
29
+
30
+ // hide if item is first of type with label::before, or is the first item after a sectionDivider
31
+ .ActionList-item:first-of-type .ActionList-item-label::before,
32
+ .ActionList-sectionDivider + .ActionList-item .ActionList-item-label::before {
33
+ visibility: hidden;
34
+ }
@@ -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
@@ -11,6 +11,7 @@
11
11
  // Color modes
12
12
 
13
13
  // Core modules
14
+ @import '../actionlist/index.scss';
14
15
  @import '../base/index.scss';
15
16
  @import '../box/index.scss';
16
17
  @import '../breadcrumb/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{visibility:hidden}.ActionList-item{position:relative;list-style:none;background-color:transparent;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)}.ActionList-item.ActionList-item--danger .ActionList-item-visual{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[aria-disabled=true] .ActionList-item-label,.ActionList-item[aria-disabled=true] .ActionList-item-description{color:var(--color-primer-fg-disabled)}.ActionList-item[aria-disabled=true] .ActionList-item-visual{fill:var(--color-primer-fg-disabled)}@media(hover: hover)and (pointer: fine){.ActionList-item[aria-disabled=true]:hover{cursor:not-allowed;background-color:transparent}}.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":"AA0gBA,YAAA,WAAA,CAAA,oDAAA,iBAAA,CAAA,QAAA,CAA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