@primer/css 0.0.0-2021929144632 → 0.0.0-2021929223923

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,10 +1,6 @@
1
1
  # @primer/css
2
2
 
3
- ## 0.0.0-2021929144632
4
-
5
- ### Major Changes
6
-
7
- - [#1716](https://github.com/primer/css/pull/1716) [`cc55fd86`](https://github.com/primer/css/commit/cc55fd8605b725a072a18f3f465b659c96109ddd) Thanks [@tobiasahlin](https://github.com/tobiasahlin)! - Update marketing buttons (including color mode support)
3
+ ## 0.0.0-2021929223923
8
4
 
9
5
  ### Patch Changes
10
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,443 @@
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
+ &.ActionList-item--hasSubItem {
115
+ // stylelint-disable-next-line selector-max-specificity
116
+ > .ActionList-content > .ActionList-item-label {
117
+ font-weight: $font-weight-bold;
118
+ }
119
+ }
120
+ }
121
+
122
+ &[aria-expanded='false'] {
123
+ .ActionList-item-collapseIcon {
124
+ transition: transform 120ms linear;
125
+ transform: scaleY(1);
126
+ }
127
+
128
+ .ActionList--subGroup {
129
+ display: none;
130
+ }
131
+ }
132
+
133
+ // checkbox item [aria-checked]
134
+ // listbox [aria-selected]
135
+
136
+ &[aria-checked='true'],
137
+ &[aria-selected='true'] {
138
+ // multiselect checkmark
139
+ .ActionList-item-multiSelectCheckmark {
140
+ visibility: visible;
141
+ opacity: 1;
142
+ transition: visibility 0 linear 0, opacity $actionList-item-checkmark-transition-timing;
143
+ }
144
+
145
+ // singleselect checkmark
146
+ .ActionList-item-singleSelectCheckmark {
147
+ visibility: visible;
148
+
149
+ @media screen and (prefers-reduced-motion: no-preference) {
150
+ animation: checkmarkIn 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards;
151
+ }
152
+ }
153
+
154
+ // checkbox
155
+ .ActionList-item-multiSelectIcon {
156
+ .ActionList-item-multiSelectIconRect {
157
+ fill: var(--color-accent-fg);
158
+ stroke: var(--color-accent-fg);
159
+ stroke-width: $border-width;
160
+ }
161
+
162
+ .ActionList-item-multiSelectCheckmark {
163
+ fill: var(--color-fg-on-emphasis);
164
+ }
165
+ }
166
+ }
167
+
168
+ &[aria-checked='false'],
169
+ &[aria-selected='false'] {
170
+ // multiselect checkmark
171
+ .ActionList-item-multiSelectCheckmark {
172
+ visibility: hidden;
173
+ opacity: 0;
174
+ transition: visibility 0 linear $actionList-item-checkmark-transition-timing,
175
+ opacity $actionList-item-checkmark-transition-timing;
176
+ }
177
+
178
+ // singleselect checkmark
179
+ .ActionList-item-singleSelectCheckmark {
180
+ visibility: hidden;
181
+ transition: visibility 0s linear 200ms;
182
+ clip-path: inset(16px 0 0 0);
183
+
184
+ @media screen and (prefers-reduced-motion: no-preference) {
185
+ animation: checkmarkOut 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards;
186
+ }
187
+ }
188
+
189
+ // checkbox
190
+ .ActionList-item-multiSelectIcon {
191
+ .ActionList-item-multiSelectIconRect {
192
+ fill: var(--color-canvas-default);
193
+ stroke: var(--color-border-default);
194
+ stroke-width: $border-width;
195
+ }
196
+ }
197
+
198
+ .ActionList-item-multiSelectIconRect {
199
+ fill: var(--color-canvas-default);
200
+ border: $border-width $border-style var(--color-border-default);
201
+ }
202
+ }
203
+
204
+ @keyframes checkmarkIn {
205
+ from {
206
+ clip-path: inset(16px 0 0 0);
207
+ }
208
+
209
+ to {
210
+ clip-path: inset(0 0 0 0);
211
+ }
212
+ }
213
+
214
+ @keyframes checkmarkOut {
215
+ from {
216
+ clip-path: inset(0 0 0 0);
217
+ }
218
+
219
+ to {
220
+ clip-path: inset(16px 0 0 0);
221
+ }
222
+ }
223
+
224
+ // variants
225
+
226
+ // danger
227
+ &.ActionList-item--danger {
228
+ .ActionList-item-label {
229
+ color: var(--color-danger-fg);
230
+ }
231
+
232
+ .ActionList-item-visual {
233
+ color: var(--color-danger-fg);
234
+ }
235
+
236
+ @media (hover: hover) and (pointer: fine) {
237
+ &:hover {
238
+ background: var(--color-action-list-item-danger-hover-bg);
239
+
240
+ // stylelint-disable-next-line max-nesting-depth
241
+ .ActionList-item-label {
242
+ color: var(--color-action-list-item-danger-hover-text);
243
+ }
244
+ }
245
+ }
246
+
247
+ &:active {
248
+ background: var(--color-action-list-item-danger-active-bg);
249
+ }
250
+ }
251
+
252
+ // disabled
253
+ &[aria-disabled='true'] {
254
+ .ActionList-item-label,
255
+ .ActionList-item-description {
256
+ color: var(--color-primer-fg-disabled);
257
+ }
258
+
259
+ .ActionList-item-visual {
260
+ fill: var(--color-primer-fg-disabled);
261
+ }
262
+
263
+ @media (hover: hover) and (pointer: fine) {
264
+ &:hover {
265
+ cursor: not-allowed;
266
+ background-color: transparent;
267
+ }
268
+ }
269
+ }
270
+
271
+ // if nested list exists, remove default padding
272
+ .ActionList {
273
+ // stylelint-disable-next-line primer/spacing
274
+ padding: unset;
275
+ }
276
+ }
277
+
278
+ // span or a href
279
+ .ActionList-content {
280
+ position: relative;
281
+ display: grid;
282
+ // stylelint-disable-next-line primer/spacing
283
+ padding: $actionList-item-padding-vertical $actionList-item-padding-horizontal;
284
+ font-weight: $font-weight-normal;
285
+ color: var(--color-fg-default);
286
+ user-select: none;
287
+ border-radius: $border-radius;
288
+ transition: $actionList-item-bg-transition;
289
+ grid-template-rows: min-content;
290
+ grid-template-areas: 'leadingAction leadingVisual label trailingVisual trailingAction';
291
+ grid-template-columns: min-content min-content minmax(min-content, auto) min-content min-content;
292
+ align-items: center;
293
+
294
+ // column-gap persists with empty grid-areas, margin applies only when children exist
295
+ > :not(:last-child) {
296
+ margin-right: $spacer-2;
297
+ }
298
+
299
+ &:focus-visible {
300
+ @include focusOutline;
301
+ }
302
+
303
+ // sizes
304
+
305
+ &.ActionList-content--sizeMedium {
306
+ // 44px total height
307
+ // stylelint-disable-next-line primer/spacing
308
+ padding: $actionList-item-padding-vertical-md $actionList-item-padding-horizontal;
309
+ }
310
+
311
+ &.ActionList-content--sizeLarge {
312
+ // 48px total height
313
+ // stylelint-disable-next-line primer/spacing
314
+ padding: $actionList-item-padding-vertical-lg $actionList-item-padding-horizontal;
315
+ }
316
+
317
+ // On pointer:coarse (mobile), all list items are large
318
+ @media (pointer: coarse) {
319
+ // stylelint-disable-next-line primer/spacing
320
+ padding: $actionList-item-padding-vertical-lg $actionList-item-padding-horizontal;
321
+ }
322
+
323
+ &.ActionList-content--blockDescription {
324
+ // if leading/trailing visual, align with first line of content
325
+ .ActionList-item-visual {
326
+ place-self: start;
327
+ }
328
+ }
329
+ }
330
+
331
+ // place children on grid
332
+
333
+ .ActionList-item-action--leading {
334
+ grid-area: leadingAction;
335
+ }
336
+
337
+ .ActionList-item-visual--leading {
338
+ grid-area: leadingVisual;
339
+ }
340
+
341
+ .ActionList-item-label {
342
+ grid-area: label;
343
+ }
344
+
345
+ .ActionList-item-visual--trailing {
346
+ grid-area: trailingVisual;
347
+ }
348
+
349
+ .ActionList-item-action--trailing {
350
+ grid-area: trailingAction;
351
+ }
352
+
353
+ // wrapper span
354
+ // default block
355
+ .ActionList-item-descriptionWrap {
356
+ grid-area: label;
357
+ display: flex;
358
+ flex-direction: column;
359
+
360
+ .ActionList-item-description {
361
+ margin-top: $spacer-1;
362
+ }
363
+
364
+ .ActionList-item-label {
365
+ font-weight: $font-weight-bold;
366
+ }
367
+ }
368
+
369
+ // inline
370
+ .ActionList-item-descriptionWrap--inline {
371
+ flex-direction: row;
372
+ align-items: baseline;
373
+
374
+ .ActionList-item-description {
375
+ // stylelint-disable-next-line primer/spacing
376
+ margin-left: $actionList-item-padding-horizontal;
377
+ }
378
+ }
379
+
380
+ // description
381
+ .ActionList-item-description {
382
+ font-size: $font-size-small;
383
+ font-weight: $font-weight-normal;
384
+ line-height: $lh-default;
385
+ color: var(--color-fg-muted);
386
+ }
387
+
388
+ // helper for grid alignment with multi-line content
389
+ // span wrapping svg or text
390
+ .ActionList-item-visual,
391
+ .ActionList-item-action {
392
+ display: flex;
393
+ min-height: $actionList-item-height-sm;
394
+ color: var(--color-fg-muted); // if visual is text
395
+ fill: var(--color-fg-muted);
396
+ align-items: center;
397
+ }
398
+
399
+ // text
400
+ // stylelint-disable-next-line no-duplicate-selectors
401
+ .ActionList-item-label {
402
+ position: relative; // for pseudo dividers
403
+ font-weight: $font-weight-normal;
404
+ // we need a strict value here for grid alignment
405
+ // stylelint-disable-next-line primer/typography
406
+ line-height: $actionList-item-label-line-height;
407
+ color: var(--color-fg-default);
408
+ }
409
+
410
+ // nested lists (only supports 1 level currently)
411
+ // target ActionList-item--subItem for padding-left to maintain :active :after state
412
+
413
+ .ActionList-item--subItem > .ActionList-content {
414
+ font-size: $font-size-small;
415
+ }
416
+
417
+ // no leading visual
418
+ .ActionList--subGroup {
419
+ .ActionList-item--subItem {
420
+ padding-left: $spacer-3;
421
+ }
422
+ }
423
+
424
+ // has 16px leading visual
425
+ .ActionList-content--visual16 + .ActionList--subGroup {
426
+ .ActionList-item--subItem {
427
+ padding-left: $spacer-4;
428
+ }
429
+ }
430
+
431
+ // has 20px leading visual
432
+ .ActionList-content--visual20 + .ActionList--subGroup {
433
+ .ActionList-item--subItem {
434
+ padding-left: $spacer-3 * 1.75;
435
+ }
436
+ }
437
+
438
+ // has 24px leading visual
439
+ .ActionList-content--visual24 + .ActionList--subGroup {
440
+ .ActionList-item--subItem {
441
+ padding-left: $spacer-5;
442
+ }
443
+ }
@@ -0,0 +1,8 @@
1
+ $actionList-item-height-sm: $spacer-2 * 2.5 !default;
2
+ $actionList-item-label-line-height: $spacer-2 * 2.5 !default;
3
+ $actionList-item-padding-vertical-md: $spacer-2 * 1.25 !default;
4
+ $actionList-item-padding-vertical-lg: $spacer-2 * 1.75 !default;
5
+ $actionList-item-padding-vertical: $spacer-1 * 1.5 !default;
6
+ $actionList-item-padding-horizontal: $spacer-2 !default;
7
+ $actionList-item-bg-transition: background 33.333ms linear !default; // 2 frames on a 60hz monitor
8
+ $actionList-item-checkmark-transition-timing: 50ms !default;
@@ -0,0 +1,33 @@
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
+ + .ActionList-item .ActionList-item-label::before {
24
+ visibility: hidden;
25
+ }
26
+ }
27
+ }
28
+
29
+ // hide if item is first of type with label::before, or is the first item after a sectionDivider
30
+ .ActionList-item:first-of-type .ActionList-item-label::before,
31
+ .ActionList-sectionDivider + .ActionList-item .ActionList-item-label::before {
32
+ visibility: hidden;
33
+ }
@@ -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:min-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{padding:10px 8px}.ActionList-content.ActionList-content--sizeLarge{padding:14px 8px}@media(pointer: coarse){.ActionList-content{padding:14px 8px}}.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;line-height:20px;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":"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","file":"actionlist.css"}
@@ -0,0 +1 @@
1
+ export {cssstats: require('./stats/actionlist.json')}