@primer/css 0.0.0-2021926165249 → 0.0.0-2021926222917

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @primer/css
2
2
 
3
- ## 0.0.0-2021926165249
3
+ ## 0.0.0-2021926222917
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -1,26 +1,26 @@
1
- @import './action-list-helpers-temporary.scss';
1
+ // stylelint-disable primer/spacing
2
2
 
3
3
  // emtpy divider
4
4
 
5
5
  .ActionList-sectionDivider {
6
6
  // has children
7
7
  &:not(:empty) {
8
- padding: (($spacer-5 - $s-20) / 2) $spacer-2;
8
+ display: flex;
9
+ padding: ($spacer-1 * 1.5) $spacer-2;
9
10
  font-size: $font-size-small;
10
11
  font-weight: $font-weight-bold;
11
12
  color: var(--color-fg-muted);
12
- display: flex;
13
13
  flex-direction: column;
14
14
  }
15
15
 
16
16
  // no children
17
17
  &:empty {
18
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
19
  padding: 0;
20
+ margin: ($spacer-2 - 1px) ($spacer-2 * -1) $spacer-2;
23
21
  list-style: none;
22
+ background: var(--color-action-list-item-inline-divider);
23
+ border: 0;
24
24
  }
25
25
 
26
26
  // secondary description text
@@ -33,8 +33,8 @@
33
33
  .ActionList-sectionDivider--filled {
34
34
  margin: $spacer-2 ($spacer-2 * -1);
35
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);
36
+ border-top: $border-width $border-style var(--color-action-list-item-inline-divider);
37
+ border-bottom: $border-width $border-style var(--color-action-list-item-inline-divider);
38
38
 
39
39
  // if no children, treat as divider
40
40
  &:empty {
@@ -1,17 +1,18 @@
1
- @import './action-list-helpers-temporary.scss';
1
+ // stylelint-disable selector-max-specificity, max-nesting-depth, primer/spacing, no-duplicate-selectors
2
+ @import './action-list-variables.scss';
2
3
 
3
4
  @mixin focusOutline {
4
- outline: none;
5
- box-shadow: 0 0 0 2px var(--color-accent-fg); // this color breaks convention
6
5
  position: relative;
7
6
  z-index: 1;
7
+ outline: none;
8
+ box-shadow: 0 0 0 2px var(--color-accent-fg); // this color breaks convention
8
9
  }
9
10
 
10
11
  // <li>
11
12
  .ActionList-item {
12
- list-style: none;
13
13
  position: relative;
14
- border-radius: $border-radius-2;
14
+ list-style: none;
15
+ border-radius: $border-radius;
15
16
 
16
17
  &:hover,
17
18
  &:active {
@@ -26,36 +27,37 @@
26
27
  // only hover li without list as children
27
28
  &:not(.ActionList-item--has-sub-item) {
28
29
  &:hover {
29
- background-color: var(--color-action-list-item-default-hover-bg);
30
30
  cursor: pointer;
31
+ background-color: var(--color-action-list-item-default-hover-bg);
31
32
  }
32
33
 
33
34
  &:active {
34
35
  background: var(--color-action-list-item-default-active-bg);
35
36
 
36
37
  @media screen and (prefers-reduced-motion: no-preference) {
37
- animation: ActionList-item-active-bg 4s forwards $ease-out-cubic;
38
+ animation: ActionList-item-active-bg 4s forwards cubic-bezier(0.33, 1, 0.68, 1);
38
39
  }
39
40
 
41
+ // stylelint-disable primer/box-shadow
40
42
  @keyframes ActionList-item-active-bg {
41
- 0% {
42
- }
43
43
  50% {
44
- transform: scale(1);
45
44
  box-shadow: inset 0 0 0 rgba(#000, 0.04);
45
+ transform: scale(1);
46
46
  }
47
+
47
48
  100% {
48
- transform: scale(0.97);
49
49
  box-shadow: inset 0 3px 9px rgba(#000, 0.04);
50
+ transform: scale(0.97);
50
51
  }
51
52
  }
53
+ // stylelint-enable primer/box-shadow
52
54
  }
53
55
 
54
56
  &:hover,
55
57
  &:active {
56
58
  // hide dividers
57
- .ActionList-item-content--label:before,
58
- + .ActionList-item .ActionList-item-content--label:before {
59
+ .ActionList-item-content--label::before,
60
+ + .ActionList-item .ActionList-item-content--label::before {
59
61
  visibility: hidden;
60
62
  }
61
63
  }
@@ -76,21 +78,22 @@
76
78
 
77
79
  &.ActionList-item--nav-active:not(.ActionList-item--danger) {
78
80
  background: var(--color-action-list-item-default-selected-bg);
79
- &:before,
80
- + .ActionList-item:before {
81
+
82
+ &::before,
83
+ + .ActionList-item::before {
81
84
  visibility: hidden;
82
85
  }
83
86
 
84
87
  // blue accent line
85
- &:after {
86
- content: '';
87
- width: $spacer-1;
88
- height: $spacer-4;
89
- border-radius: $border-radius-1;
88
+ &::after {
90
89
  position: absolute;
90
+ top: calc(50% - ($spacer-4 * 0.5));
91
91
  left: -$actionList-item-padding-horizontal;
92
- top: calc(50% - (24px / 2));
92
+ width: $spacer-1;
93
+ height: $spacer-4;
94
+ content: '';
93
95
  background: var(--color-accent-fg);
96
+ border-radius: $border-radius;
94
97
  }
95
98
  }
96
99
 
@@ -98,8 +101,8 @@
98
101
 
99
102
  &[aria-expanded='true'] {
100
103
  .ActionList-item-content--collapseIcon {
101
- transform: scaleY(-1);
102
104
  transition: transform 120ms linear;
105
+ transform: scaleY(-1);
103
106
  }
104
107
 
105
108
  .ActionList--sub-group {
@@ -115,8 +118,8 @@
115
118
 
116
119
  &[aria-expanded='false'] {
117
120
  .ActionList-item-content--collapseIcon {
118
- transform: scaleY(1);
119
121
  transition: transform 120ms linear;
122
+ transform: scaleY(1);
120
123
  }
121
124
 
122
125
  .ActionList--sub-group {
@@ -133,7 +136,7 @@
133
136
  .ActionList-item-content--multiSelect-checkmark {
134
137
  visibility: visible;
135
138
  opacity: 1;
136
- transition: visibility 0s linear 0s, opacity $actionList-item-checkmark-transition-timing;
139
+ transition: visibility 0 linear 0, opacity $actionList-item-checkmark-transition-timing;
137
140
  }
138
141
 
139
142
  // singleselect checkmark
@@ -165,15 +168,16 @@
165
168
  .ActionList-item-content--multiSelect-checkmark {
166
169
  visibility: hidden;
167
170
  opacity: 0;
168
- transition: visibility 0s linear $actionList-item-checkmark-transition-timing,
171
+ transition:
172
+ visibility 0 linear $actionList-item-checkmark-transition-timing,
169
173
  opacity $actionList-item-checkmark-transition-timing;
170
174
  }
171
175
 
172
176
  // singleselect checkmark
173
177
  .ActionList-item-content--singleSelect {
174
178
  visibility: hidden;
175
- clip-path: inset(16px 0 0 0);
176
179
  transition: visibility 0s linear 200ms;
180
+ clip-path: inset(16px 0 0 0);
177
181
 
178
182
  @media screen and (prefers-reduced-motion: no-preference) {
179
183
  animation: checkmarkOut 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards;
@@ -199,6 +203,7 @@
199
203
  from {
200
204
  clip-path: inset(16px 0 0 0);
201
205
  }
206
+
202
207
  to {
203
208
  clip-path: inset(0 0 0 0);
204
209
  }
@@ -208,6 +213,7 @@
208
213
  from {
209
214
  clip-path: inset(0 0 0 0);
210
215
  }
216
+
211
217
  to {
212
218
  clip-path: inset(16px 0 0 0);
213
219
  }
@@ -223,6 +229,10 @@
223
229
  @media (hover: hover) and (pointer: fine) {
224
230
  &:hover {
225
231
  background: var(--color-action-list-item-danger-hover-bg);
232
+
233
+ .ActionList-item-content--label {
234
+ color: var(--color-action-list-item-danger-hover-text);
235
+ }
226
236
  }
227
237
  }
228
238
 
@@ -239,21 +249,21 @@
239
249
 
240
250
  // span or a href
241
251
  .ActionList-item-content {
252
+ position: relative;
242
253
  display: grid;
243
- grid-template-rows: minmax(20px, max-content); // 20px + 12px padding [32]
244
- grid-template-areas: 'leadingAction leadingVisual label trailingVisual trailingAction';
245
- grid-template-columns: min-content min-content minmax(min-content, auto) min-content min-content;
246
- align-items: center;
247
254
  padding: $actionList-item-padding-vertical $actionList-item-padding-horizontal;
248
- position: relative;
249
- border-radius: $border-radius-2;
250
255
  font-weight: $font-weight-normal;
251
256
  color: var(--color-fg-default);
252
257
  user-select: none;
258
+ border-radius: $border-radius;
253
259
  transition: $actionList-item-bg-transition;
260
+ grid-template-rows: minmax($actionList-item-height-sm, max-content); // 20px with 12px padding = [32px total]
261
+ grid-template-areas: 'leadingAction leadingVisual label trailingVisual trailingAction';
262
+ grid-template-columns: min-content min-content minmax(min-content, auto) min-content min-content;
263
+ align-items: center;
254
264
 
255
265
  // column-gap persists with empty grid-areas, margin applies only when children exist
256
- & > :not(:last-child) {
266
+ > :not(:last-child) {
257
267
  margin-right: $spacer-2;
258
268
  }
259
269
 
@@ -264,16 +274,16 @@
264
274
  // sizes
265
275
 
266
276
  &.ActionList-item-content--sizeMedium {
267
- grid-template-rows: minmax(28px, max-content); // 28px + 12px padding [40]
277
+ grid-template-rows: minmax($actionList-item-height-md, max-content); // 28px with 12px padding = [40px total]
268
278
  }
269
279
 
270
280
  &.ActionList-item-content--sizeLarge {
271
- grid-template-rows: minmax(36px, max-content); // 36px + 12px padding [48]
281
+ grid-template-rows: minmax($actionList-item-height-lg, max-content); // 36px with 12px padding = [48px total]
272
282
  }
273
283
 
274
284
  // On pointer:coarse (mobile), all list items are large
275
285
  @media (pointer: coarse) {
276
- grid-template-rows: minmax(36px, max-content);
286
+ grid-template-rows: minmax($actionList-item-height-lg, max-content);
277
287
  }
278
288
 
279
289
  &.ActionList-item-content--blockDescription {
@@ -347,18 +357,18 @@
347
357
  // span wrapping svg or text
348
358
  .ActionList-item-content--visual,
349
359
  .ActionList-item-content--action {
350
- min-height: 20px;
351
360
  display: flex;
352
- align-items: center;
353
- fill: var(--color-fg-muted);
361
+ min-height: $actionList-item-height-sm;
354
362
  color: var(--color-fg-muted); // if visual is text
363
+ fill: var(--color-fg-muted);
364
+ align-items: center;
355
365
  }
356
366
 
357
367
  // text
358
368
  .ActionList-item-content--label {
369
+ position: relative; // for pseudo dividers
359
370
  font-weight: $font-weight-normal;
360
371
  color: var(--color-fg-default);
361
- position: relative; // for pseudo dividers
362
372
  }
363
373
 
364
374
  // nested lists (only supports 1 level currently)
@@ -371,27 +381,27 @@
371
381
  // no leading visual
372
382
  .ActionList--sub-group {
373
383
  .ActionList-item--sub-item {
374
- padding-left: 16px;
384
+ padding-left: $spacer-3;
375
385
  }
376
386
  }
377
387
 
378
388
  // has 16px leading visual
379
389
  .ActionList-item-content--visual--16 + .ActionList--sub-group {
380
390
  .ActionList-item--sub-item {
381
- padding-left: 24px;
391
+ padding-left: $spacer-4;
382
392
  }
383
393
  }
384
394
 
385
395
  // has 20px leading visual
386
396
  .ActionList-item-content--visual--20 + .ActionList--sub-group {
387
397
  .ActionList-item--sub-item {
388
- padding-left: 28px;
398
+ padding-left: $spacer-3 * 1.75;
389
399
  }
390
400
  }
391
401
 
392
402
  // has 24px leading visual
393
403
  .ActionList-item-content--visual--24 + .ActionList--sub-group {
394
404
  .ActionList-item--sub-item {
395
- padding-left: 32px;
405
+ padding-left: $spacer-5;
396
406
  }
397
407
  }
@@ -0,0 +1,7 @@
1
+ $actionList-item-height-sm: 20px !default;
2
+ $actionList-item-height-md: 28px !default;
3
+ $actionList-item-height-lg: 36px !default;
4
+ $actionList-item-padding-vertical: $spacer-1 * 1.5 !default;
5
+ $actionList-item-padding-horizontal: $spacer-2 !default;
6
+ $actionList-item-bg-transition: background 33.333ms linear !default; // 2 frames on a 60hz monitor
7
+ $actionList-item-checkmark-transition-timing: 50ms !default;
@@ -1,34 +1,35 @@
1
- @import './action-list-helpers-temporary.scss';
1
+ // stylelint-disable selector-max-specificity, selector-max-compound-selectors
2
+ @import './action-list-variables.scss';
2
3
 
3
4
  // <ul>
4
5
  .ActionList {
5
- padding: $actionList-padding;
6
+ padding: $spacer-2;
6
7
  }
7
8
 
8
9
  // dividers
9
10
 
10
11
  .ActionList--divided {
11
- .ActionList-item-content--label:before {
12
- content: '';
13
- display: block;
12
+ .ActionList-item-content--label::before {
14
13
  position: absolute;
14
+ top: -$actionList-item-padding-vertical;
15
+ display: block;
15
16
  width: 100%;
16
17
  height: 1px;
18
+ content: '';
17
19
  background: var(--color-action-list-item-inline-divider);
18
- top: -$actionList-item-padding-vertical;
19
20
  }
20
21
 
21
22
  // hide divider if item is active
22
23
  .ActionList-item--nav-active {
23
- .ActionList-item-content--label:before,
24
- + .ActionList-item .ActionList-item-content--label:before {
24
+ .ActionList-item-content--label::before,
25
+ + .ActionList-item .ActionList-item-content--label::before {
25
26
  visibility: hidden;
26
27
  }
27
28
  }
28
29
  }
29
30
 
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 {
31
+ .ActionList-item:first-of-type .ActionList-item-content--label::before,
32
+ .ActionList-sectionDivider + .ActionList-item .ActionList-item-content--label::before,
33
+ .ActionList-sectionHeader + .ActionList-item .ActionList-item-content--label::before {
33
34
  visibility: hidden;
34
35
  }
@@ -1,4 +1,5 @@
1
1
  @import '../support/index.scss';
2
+ @import './action-list-variables.scss';
2
3
  @import './action-list.scss';
3
4
  @import './action-list-item.scss';
4
5
  @import './action-list-item-divider.scss';
@@ -1,2 +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: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}
1
+ .ActionList{padding:8px}.ActionList--divided .ActionList-item-content--label::before{position:absolute;top:-6px;display:block;width:100%;height:1px;content:"";background:var(--color-action-list-item-inline-divider)}.ActionList--divided .ActionList-item--nav-active .ActionList-item-content--label::before,.ActionList--divided .ActionList-item--nav-active+.ActionList-item .ActionList-item-content--label::before{visibility:hidden}.ActionList-item:first-of-type .ActionList-item-content--label::before,.ActionList-sectionDivider+.ActionList-item .ActionList-item-content--label::before,.ActionList-sectionHeader+.ActionList-item .ActionList-item-content--label::before{visibility:hidden}.ActionList-item{position:relative;list-style:none;border-radius:6px}.ActionList-item:hover,.ActionList-item:active{cursor:pointer}.ActionList-item:hover .ActionList-item-content,.ActionList-item:active .ActionList-item-content{text-decoration:none}.ActionList-item:not(.ActionList-item--has-sub-item):hover{cursor:pointer;background-color:var(--color-action-list-item-default-hover-bg)}.ActionList-item:not(.ActionList-item--has-sub-item):active{background:var(--color-action-list-item-default-active-bg)}@media screen and (prefers-reduced-motion: no-preference){.ActionList-item:not(.ActionList-item--has-sub-item):active{animation:ActionList-item-active-bg 4s forwards cubic-bezier(0.33, 1, 0.68, 1)}}@keyframes ActionList-item-active-bg{50%{box-shadow:inset 0 0 0 rgba(0,0,0,.04);transform:scale(1)}100%{box-shadow:inset 0 3px 9px rgba(0,0,0,.04);transform:scale(0.97)}}.ActionList-item:not(.ActionList-item--has-sub-item):hover .ActionList-item-content--label::before,.ActionList-item:not(.ActionList-item--has-sub-item):hover+.ActionList-item .ActionList-item-content--label::before,.ActionList-item:not(.ActionList-item--has-sub-item):active .ActionList-item-content--label::before,.ActionList-item:not(.ActionList-item--has-sub-item):active+.ActionList-item .ActionList-item-content--label::before{visibility:hidden}.ActionList-item.ActionList-item--has-sub-item>.ActionList-item-content:hover{background-color:var(--color-action-list-item-default-hover-bg)}.ActionList-item.ActionList-item--nav-active:not(.ActionList-item--danger){background:var(--color-action-list-item-default-selected-bg)}.ActionList-item.ActionList-item--nav-active:not(.ActionList-item--danger)::before,.ActionList-item.ActionList-item--nav-active:not(.ActionList-item--danger)+.ActionList-item::before{visibility:hidden}.ActionList-item.ActionList-item--nav-active:not(.ActionList-item--danger)::after{position:absolute;top:calc(50% - 12px);left:-8px;width:4px;height:24px;content:"";background:var(--color-accent-fg);border-radius:6px}.ActionList-item[aria-expanded=true] .ActionList-item-content--collapseIcon{transition:transform 120ms linear;transform:scaleY(-1)}.ActionList-item[aria-expanded=true] .ActionList--sub-group{display:block}.ActionList-item[aria-expanded=true].ActionList-item--has-sub-item>.ActionList-item-content>.ActionList-item-content--label{font-weight:600}.ActionList-item[aria-expanded=false] .ActionList-item-content--collapseIcon{transition:transform 120ms linear;transform:scaleY(1)}.ActionList-item[aria-expanded=false] .ActionList--sub-group{display:none}.ActionList-item[aria-checked=true] .ActionList-item-content--multiSelect-checkmark,.ActionList-item[aria-selected=true] .ActionList-item-content--multiSelect-checkmark{visibility:visible;opacity:1;transition:visibility 0 linear 0,opacity 50ms}.ActionList-item[aria-checked=true] .ActionList-item-content--singleSelect,.ActionList-item[aria-selected=true] .ActionList-item-content--singleSelect{visibility:visible}@media screen and (prefers-reduced-motion: no-preference){.ActionList-item[aria-checked=true] .ActionList-item-content--singleSelect,.ActionList-item[aria-selected=true] .ActionList-item-content--singleSelect{animation:checkmarkIn 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards}}.ActionList-item[aria-checked=true] .ActionList-item-content--multiSelect .ActionList-item-content--multiSelect-rectangle,.ActionList-item[aria-selected=true] .ActionList-item-content--multiSelect .ActionList-item-content--multiSelect-rectangle{fill:var(--color-accent-fg);stroke:var(--color-accent-fg);stroke-width:1px}.ActionList-item[aria-checked=true] .ActionList-item-content--multiSelect .ActionList-item-content--multiSelect-checkmark,.ActionList-item[aria-selected=true] .ActionList-item-content--multiSelect .ActionList-item-content--multiSelect-checkmark{fill:var(--color-fg-on-emphasis)}.ActionList-item[aria-checked=false] .ActionList-item-content--multiSelect-checkmark,.ActionList-item[aria-selected=false] .ActionList-item-content--multiSelect-checkmark{visibility:hidden;opacity:0;transition:visibility 0 linear 50ms,opacity 50ms}.ActionList-item[aria-checked=false] .ActionList-item-content--singleSelect,.ActionList-item[aria-selected=false] .ActionList-item-content--singleSelect{visibility:hidden;transition:visibility 0s linear 200ms;-webkit-clip-path:inset(16px 0 0 0);clip-path:inset(16px 0 0 0)}@media screen and (prefers-reduced-motion: no-preference){.ActionList-item[aria-checked=false] .ActionList-item-content--singleSelect,.ActionList-item[aria-selected=false] .ActionList-item-content--singleSelect{animation:checkmarkOut 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards}}.ActionList-item[aria-checked=false] .ActionList-item-content--multiSelect .ActionList-item-content--multiSelect-rectangle,.ActionList-item[aria-selected=false] .ActionList-item-content--multiSelect .ActionList-item-content--multiSelect-rectangle{fill:var(--color-canvas-default);stroke:var(--color-border-default);stroke-width:1px}.ActionList-item[aria-checked=false] .ActionList-item-content--multiSelect-rectangle,.ActionList-item[aria-selected=false] .ActionList-item-content--multiSelect-rectangle{fill:var(--color-canvas-default);border:1px solid var(--color-border-default)}@keyframes checkmarkIn{from{-webkit-clip-path:inset(16px 0 0 0);clip-path:inset(16px 0 0 0)}to{-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}}@keyframes checkmarkOut{from{-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0)}to{-webkit-clip-path:inset(16px 0 0 0);clip-path:inset(16px 0 0 0)}}.ActionList-item.ActionList-item--danger .ActionList-item-content--label{color:var(--color-danger-fg)}@media(hover: hover)and (pointer: fine){.ActionList-item.ActionList-item--danger:hover{background:var(--color-action-list-item-danger-hover-bg)}.ActionList-item.ActionList-item--danger:hover .ActionList-item-content--label{color:var(--color-action-list-item-danger-hover-text)}}.ActionList-item.ActionList-item--danger:active{background:var(--color-action-list-item-danger-active-bg)}.ActionList-item .ActionList{padding:unset}.ActionList-item-content{position:relative;display:grid;padding:6px 8px;font-weight:400;color:var(--color-fg-default);-webkit-user-select:none;user-select:none;border-radius:6px;transition:background 33.333ms linear;grid-template-rows:minmax(20px, max-content);grid-template-areas:"leadingAction leadingVisual label trailingVisual trailingAction";grid-template-columns:min-content min-content minmax(min-content, auto) min-content min-content;align-items:center}.ActionList-item-content>:not(:last-child){margin-right:8px}.ActionList-item-content:focus-visible{position:relative;z-index:1;outline:none;box-shadow:0 0 0 2px var(--color-accent-fg)}.ActionList-item-content.ActionList-item-content--sizeMedium{grid-template-rows:minmax(28px, max-content)}.ActionList-item-content.ActionList-item-content--sizeLarge{grid-template-rows:minmax(36px, max-content)}@media(pointer: coarse){.ActionList-item-content{grid-template-rows:minmax(36px, max-content)}}.ActionList-item-content.ActionList-item-content--blockDescription .ActionList-item-content--visual{place-self:start}.ActionList-item-content--action-leading{grid-area:leadingAction}.ActionList-item-content--visual-leading{grid-area:leadingVisual}.ActionList-item-content--label{grid-area:label}.ActionList-item-content--visual-trailing{grid-area:trailingVisual}.ActionList-item-content--action-trailing{grid-area:trailingAction}.ActionList-item-content--label-blockDescription,.ActionList-item-content--label-inlineDescription{grid-area:label;display:flex}.ActionList-item-content--label-blockDescription .ActionList-item-content--label,.ActionList-item-content--label-inlineDescription .ActionList-item-content--label{font-weight:600}.ActionList-item-content--label-blockDescription{flex-direction:column}.ActionList-item-content--label-blockDescription .ActionList-item-content--description{margin-top:4px}.ActionList-item-content--label-inlineDescription{flex-direction:row;align-items:baseline}.ActionList-item-content--label-inlineDescription .ActionList-item-content--description{margin-left:8px}.ActionList-item-content--description{font-size:12px;line-height:1.5;color:var(--color-fg-muted)}.ActionList-item-content--visual,.ActionList-item-content--action{display:flex;min-height:20px;color:var(--color-fg-muted);fill:var(--color-fg-muted);align-items:center}.ActionList-item-content--label{position:relative;font-weight:400;color:var(--color-fg-default)}.ActionList-item--sub-item>.ActionList-item-content{font-size:12px}.ActionList--sub-group .ActionList-item--sub-item{padding-left:16px}.ActionList-item-content--visual--16+.ActionList--sub-group .ActionList-item--sub-item{padding-left:24px}.ActionList-item-content--visual--20+.ActionList--sub-group .ActionList-item--sub-item{padding-left:28px}.ActionList-item-content--visual--24+.ActionList--sub-group .ActionList-item--sub-item{padding-left:32px}.ActionList-sectionDivider:not(:empty){display:flex;padding:6px 8px;font-size:12px;font-weight:600;color:var(--color-fg-muted);flex-direction:column}.ActionList-sectionDivider:empty{height:1px;padding:0;margin:7px -8px 8px;list-style:none;background:var(--color-action-list-item-inline-divider);border:0}.ActionList-sectionDivider .ActionList-sectionDivider--description{font-size:12px;font-weight:400}.ActionList-sectionDivider--filled{margin:8px -8px;background:var(--color-canvas-subtle);border-top:1px solid var(--color-action-list-item-inline-divider);border-bottom:1px solid var(--color-action-list-item-inline-divider)}.ActionList-sectionDivider--filled:empty{height:8px;box-sizing:border-box}.ActionList-sectionDivider--filled:first-child{margin-top:0}
2
2
  /*# sourceMappingURL=actionlist.css.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["file:///home/runner/work/css/css/src/actionlist/index.scss%23sass"],"names":[],"mappings":"AAgiBA,YAAA,WAAA,CAAA,4DAAA,UAAA,CAAA,aAAA,CAAA,iBAAA,CAAA,UAAA,CAAA,UAAA,CAAA,uDAAA,CAAA,QAAA,CAAA,mMAAA,iBAAA,CAAA,2OAAA,iBAAA,CAAA,iBAAA,eAAA,CAAA,iBAAA,CAAA,iBAAA,CAAA,+CAAA,cAAA,CAAA,iGAAA,oBAAA,CAAA,2DAAA,+DAAA,CAAA,cAAA,CAAA,4DAAA,0DAAA,CAAA,0DAAA,4DAAA,8EAAA,CAAA,CAAA,qCAAA,IAAA,kBAAA,CAAA,sCAAA,CAAA,KAAA,qBAAA,CAAA,0CAAA,CAAA,CAAA,4aAAA,iBAAA,CAAA,8EAAA,+DAAA,CAAA,2EAAA,4DAAA,CAAA,qLAAA,iBAAA,CAAA,iFAAA,UAAA,CAAA,SAAA,CAAA,WAAA,CAAA,iBAAA,CAAA,iBAAA,CAAA,SAAA,CAAA,oBAAA,CAAA,iCAAA,CAAA,4EAAA,oBAAA,CAAA,iCAAA,CAAA,4DAAA,aAAA,CAAA,4HAAA,eAAA,CAAA,6EAAA,mBAAA,CAAA,iCAAA,CAAA,6DAAA,YAAA,CAAA,yKAAA,kBAAA,CAAA,SAAA,CAAA,+CAAA,CAAA,uJAAA,kBAAA,CAAA,0DAAA,uJAAA,kEAAA,CAAA,CAAA,qPAAA,2BAAA,CAAA,6BAAA,CAAA,gBAAA,CAAA,qPAAA,gCAAA,CAAA,2KAAA,iBAAA,CAAA,SAAA,CAAA,iDAAA,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