@primer/css 0.0.0-2021925172423 → 0.0.0-202192617029

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