@primer/css 0.0.0-2021111003855 → 0.0.0-20211110224258
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 +1 -1
- package/actionlist/action-list-item.scss +0 -147
- package/actionlist/action-list-tree.scss +98 -0
- package/actionlist/action-list.scss +0 -7
- package/actionlist/index.scss +1 -0
- package/dist/actionlist.css +1 -1
- package/dist/actionlist.css.map +1 -1
- package/dist/core.css +1 -1
- package/dist/core.css.map +1 -1
- package/dist/meta.json +33 -33
- package/dist/primer.css +1 -1
- package/dist/primer.css.map +1 -1
- package/dist/stats/actionlist.json +1 -1
- package/dist/stats/core.json +1 -1
- package/dist/stats/primer.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -121,15 +121,6 @@
|
|
|
121
121
|
|
|
122
122
|
.ActionList--subGroup {
|
|
123
123
|
display: block;
|
|
124
|
-
|
|
125
|
-
// &::before {
|
|
126
|
-
// position: absolute;
|
|
127
|
-
// content: '';
|
|
128
|
-
// width: 1px;
|
|
129
|
-
// background: deeppink;
|
|
130
|
-
// left: 16px;
|
|
131
|
-
// height: calc(100% - 28px);
|
|
132
|
-
// }
|
|
133
124
|
}
|
|
134
125
|
|
|
135
126
|
&.ActionList-item--hasActiveSubItem {
|
|
@@ -489,141 +480,3 @@
|
|
|
489
480
|
padding-left: $spacer-5;
|
|
490
481
|
}
|
|
491
482
|
}
|
|
492
|
-
|
|
493
|
-
// padding left
|
|
494
|
-
// no visuals
|
|
495
|
-
// 16px visual
|
|
496
|
-
// 20px visual
|
|
497
|
-
// 24px visual
|
|
498
|
-
// action 16px visual
|
|
499
|
-
// action 20px visual
|
|
500
|
-
// action 24px visual
|
|
501
|
-
|
|
502
|
-
@mixin treeConnectingLine($left) {
|
|
503
|
-
position: absolute;
|
|
504
|
-
content: '';
|
|
505
|
-
width: 1px;
|
|
506
|
-
background: deeppink;
|
|
507
|
-
left: $left;
|
|
508
|
-
height: calc(100% - 28px);
|
|
509
|
-
z-index: 1000;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
// [aria-level='1'].ActionList-item--hasSubItem {
|
|
513
|
-
// background: pink;
|
|
514
|
-
|
|
515
|
-
// > .ActionList--subGroup {
|
|
516
|
-
// &::before {
|
|
517
|
-
// position: absolute;
|
|
518
|
-
// content: '';
|
|
519
|
-
// width: 1px;
|
|
520
|
-
// background: deeppink;
|
|
521
|
-
// left: 16px;
|
|
522
|
-
// height: calc(100% - 28px);
|
|
523
|
-
// z-index: 1000;
|
|
524
|
-
// }
|
|
525
|
-
// }
|
|
526
|
-
// }
|
|
527
|
-
|
|
528
|
-
// [aria-level='2'].ActionList-item--hasSubItem {
|
|
529
|
-
// background: lightblue;
|
|
530
|
-
|
|
531
|
-
// > .ActionList--subGroup {
|
|
532
|
-
// &::before {
|
|
533
|
-
// position: absolute;
|
|
534
|
-
// content: '';
|
|
535
|
-
// width: 1px;
|
|
536
|
-
// background: darkcyan;
|
|
537
|
-
// left: 40px;
|
|
538
|
-
// height: calc(100% - 28px);
|
|
539
|
-
// z-index: 1000;
|
|
540
|
-
// }
|
|
541
|
-
// }
|
|
542
|
-
// }
|
|
543
|
-
|
|
544
|
-
// first subitem
|
|
545
|
-
.ActionList--tree {
|
|
546
|
-
> [aria-level='1'].ActionList-item--hasSubItem {
|
|
547
|
-
background: pink;
|
|
548
|
-
|
|
549
|
-
> .ActionList--subGroup {
|
|
550
|
-
&::before {
|
|
551
|
-
position: absolute;
|
|
552
|
-
content: '';
|
|
553
|
-
width: 1px;
|
|
554
|
-
background: deeppink;
|
|
555
|
-
left: 16px;
|
|
556
|
-
height: calc(100% - 28px);
|
|
557
|
-
z-index: 1000;
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
// all other subitems
|
|
563
|
-
.ActionList-item--hasSubItem:not([aria-level='1']) {
|
|
564
|
-
background: plum;
|
|
565
|
-
> .ActionList--subGroup {
|
|
566
|
-
&::before {
|
|
567
|
-
position: absolute;
|
|
568
|
-
content: '';
|
|
569
|
-
width: 1px;
|
|
570
|
-
background: deeppink;
|
|
571
|
-
left: 40px;
|
|
572
|
-
height: calc(100% - 28px);
|
|
573
|
-
z-index: 1000;
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
// .ActionList-item--hasSubItem:not(:nth-of-type(1)) {
|
|
580
|
-
// background: pink;
|
|
581
|
-
|
|
582
|
-
// > .ActionList--subGroup {
|
|
583
|
-
// &::before {
|
|
584
|
-
// position: absolute;
|
|
585
|
-
// content: '';
|
|
586
|
-
// width: 1px;
|
|
587
|
-
// background: darkmagenta;
|
|
588
|
-
// left: 40px;
|
|
589
|
-
// height: calc(100% - 28px);
|
|
590
|
-
// z-index: 1000;
|
|
591
|
-
// }
|
|
592
|
-
// }
|
|
593
|
-
// }
|
|
594
|
-
|
|
595
|
-
.ActionList-item > .ActionList-content > .ActionList-item-action--leading {
|
|
596
|
-
background: deeppink;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
// [aria-level='1'].ActionList-item--hasSubItem {
|
|
600
|
-
// background: pink;
|
|
601
|
-
|
|
602
|
-
// > .ActionList--subGroup {
|
|
603
|
-
// &::before {
|
|
604
|
-
// position: absolute;
|
|
605
|
-
// content: '';
|
|
606
|
-
// width: 1px;
|
|
607
|
-
// background: deeppink;
|
|
608
|
-
// left: 16px;
|
|
609
|
-
// height: calc(100% - 28px);
|
|
610
|
-
// z-index: 1000;
|
|
611
|
-
// }
|
|
612
|
-
// }
|
|
613
|
-
// }
|
|
614
|
-
|
|
615
|
-
// [aria-level='2'].ActionList-item--hasSubItem {
|
|
616
|
-
// background: lightblue;
|
|
617
|
-
|
|
618
|
-
// > .ActionList--subGroup {
|
|
619
|
-
// &::before {
|
|
620
|
-
// position: absolute;
|
|
621
|
-
// content: '';
|
|
622
|
-
// width: 1px;
|
|
623
|
-
// background: darkcyan;
|
|
624
|
-
// left: 40px;
|
|
625
|
-
// height: calc(100% - 28px);
|
|
626
|
-
// z-index: 1000;
|
|
627
|
-
// }
|
|
628
|
-
// }
|
|
629
|
-
// }
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// <ul>
|
|
2
|
+
// tree-view variant
|
|
3
|
+
// renders ActionList with default styling for tree-view
|
|
4
|
+
// collapse/expand icons presents as leadingActions, rotate 90deg
|
|
5
|
+
// connecting vertical lines between collapse groups
|
|
6
|
+
// consisten font-size between nested groups
|
|
7
|
+
|
|
8
|
+
@mixin treeConnectingLine($left) {
|
|
9
|
+
position: absolute;
|
|
10
|
+
content: '';
|
|
11
|
+
width: 1px;
|
|
12
|
+
background: var(--color-action-list-item-inline-divider);
|
|
13
|
+
left: $left;
|
|
14
|
+
height: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:root {
|
|
18
|
+
--ActionList-tree-depth: 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ActionList--tree {
|
|
22
|
+
// move out
|
|
23
|
+
.ActionList-item--subItem > .ActionList-content {
|
|
24
|
+
font-size: $body-font-size;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ActionList--subGroup {
|
|
28
|
+
position: relative;
|
|
29
|
+
|
|
30
|
+
.ActionList-content {
|
|
31
|
+
padding-left: calc(10px * var(--ActionList-tree-depth)) !important;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ActionList-item--hasSubItem {
|
|
36
|
+
padding-left: 0 !important;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ActionList-item--subItem {
|
|
40
|
+
padding-left: 0 !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// expand/collapse group
|
|
44
|
+
.ActionList-item--hasSubItem {
|
|
45
|
+
.ActionList-item--subItem:not(.ActionList-item--hasSubItem) {
|
|
46
|
+
.ActionList-content {
|
|
47
|
+
// increase child padding by targeting content first child span (add to ActionList-content padding, not replace)
|
|
48
|
+
> span:first-child {
|
|
49
|
+
padding-left: 16px !important;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// padding left
|
|
56
|
+
// no visuals
|
|
57
|
+
// 16px visual
|
|
58
|
+
// 20px visual
|
|
59
|
+
// 24px visual
|
|
60
|
+
// action 16px visual
|
|
61
|
+
// action 20px visual
|
|
62
|
+
// action 24px visual
|
|
63
|
+
|
|
64
|
+
// first subitem
|
|
65
|
+
> [aria-level='1'].ActionList-item--hasSubItem {
|
|
66
|
+
> .ActionList--subGroup {
|
|
67
|
+
&::before {
|
|
68
|
+
@include treeConnectingLine($left: 16px);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// all other subitems
|
|
74
|
+
.ActionList-item--hasSubItem:not([aria-level='1']) {
|
|
75
|
+
> .ActionList--subGroup {
|
|
76
|
+
&::before {
|
|
77
|
+
@include treeConnectingLine($left: calc(10px * (var(--ActionList-tree-depth)) + 7px));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// tree-view specific collapse icon positioning/animation
|
|
83
|
+
.ActionList-item {
|
|
84
|
+
&[aria-expanded='true'] {
|
|
85
|
+
.ActionList-item-collapseIcon {
|
|
86
|
+
transition: transform 120ms linear;
|
|
87
|
+
transform: rotate(0deg);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&[aria-expanded='false'] {
|
|
92
|
+
.ActionList-item-collapseIcon {
|
|
93
|
+
transition: transform 120ms linear;
|
|
94
|
+
transform: rotate(-90deg);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
package/actionlist/index.scss
CHANGED
package/dist/actionlist.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.ActionList{padding:8px}.ActionList--full{padding:0}.ActionList--tree .ActionList-item--subItem>.ActionList-content{font-size:14px}.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--subItem) .ActionList-item-label{font-weight:600}.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--hasActiveSubItem>.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-expanded=false].ActionList-item--hasActiveSubItem{background:var(--color-action-list-item-default-selected-bg)}.ActionList-item[aria-expanded=false].ActionList-item--hasActiveSubItem .ActionList-item-label{font-weight:600}.ActionList-item[aria-expanded=false].ActionList-item--hasActiveSubItem::before,.ActionList-item[aria-expanded=false].ActionList-item--hasActiveSubItem+.ActionList-item::before{visibility:hidden}.ActionList-item[aria-expanded=false].ActionList-item--hasActiveSubItem::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-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;font-size:14px;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(0, auto) min-content min-content;align-items:start}.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-label--truncate{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.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--tree>[aria-level="1"].ActionList-item--hasSubItem{background:pink}.ActionList--tree>[aria-level="1"].ActionList-item--hasSubItem>.ActionList--subGroup::before{position:absolute;content:"";width:1px;background:#ff1493;left:16px;height:calc(100% - 28px);z-index:1000}.ActionList--tree .ActionList-item--hasSubItem:not([aria-level="1"]){background:plum}.ActionList--tree .ActionList-item--hasSubItem:not([aria-level="1"])>.ActionList--subGroup::before{position:absolute;content:"";width:1px;background:#ff1493;left:40px;height:calc(100% - 28px);z-index:1000}.ActionList-item>.ActionList-content>.ActionList-item-action--leading{background:#ff1493}.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}
|
|
1
|
+
.ActionList{padding:8px}.ActionList--full{padding:0}.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}:root{--ActionList-tree-depth: 1}.ActionList--tree .ActionList-item--subItem>.ActionList-content{font-size:14px}.ActionList--tree .ActionList--subGroup{position:relative}.ActionList--tree .ActionList--subGroup .ActionList-content{padding-left:calc(10px*var(--ActionList-tree-depth)) !important}.ActionList--tree .ActionList-item--hasSubItem{padding-left:0 !important}.ActionList--tree .ActionList-item--subItem{padding-left:0 !important}.ActionList--tree .ActionList-item--hasSubItem .ActionList-item--subItem:not(.ActionList-item--hasSubItem) .ActionList-content>span:first-child{padding-left:16px !important}.ActionList--tree>[aria-level="1"].ActionList-item--hasSubItem>.ActionList--subGroup::before{position:absolute;content:"";width:1px;background:var(--color-action-list-item-inline-divider);left:16px;height:100%}.ActionList--tree .ActionList-item--hasSubItem:not([aria-level="1"])>.ActionList--subGroup::before{position:absolute;content:"";width:1px;background:var(--color-action-list-item-inline-divider);left:calc(10px*(var(--ActionList-tree-depth)) + 7px);height:100%}.ActionList--tree .ActionList-item[aria-expanded=true] .ActionList-item-collapseIcon{transition:transform 120ms linear;transform:rotate(0deg)}.ActionList--tree .ActionList-item[aria-expanded=false] .ActionList-item-collapseIcon{transition:transform 120ms linear;transform:rotate(-90deg)}.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--subItem) .ActionList-item-label{font-weight:600}.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--hasActiveSubItem>.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-expanded=false].ActionList-item--hasActiveSubItem{background:var(--color-action-list-item-default-selected-bg)}.ActionList-item[aria-expanded=false].ActionList-item--hasActiveSubItem .ActionList-item-label{font-weight:600}.ActionList-item[aria-expanded=false].ActionList-item--hasActiveSubItem::before,.ActionList-item[aria-expanded=false].ActionList-item--hasActiveSubItem+.ActionList-item::before{visibility:hidden}.ActionList-item[aria-expanded=false].ActionList-item--hasActiveSubItem::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-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;font-size:14px;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(0, auto) min-content min-content;align-items:start}.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-label--truncate{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.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
2
|
/*# sourceMappingURL=actionlist.css.map */
|
package/dist/actionlist.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["file:///home/runner/work/css/css/src/actionlist/index.scss%23sass"],"names":[],"mappings":"AA8hBA,YAAA,WAAA,CAAA,kBAAA,SAAA,CAAA,
|
|
1
|
+
{"version":3,"sources":["file:///home/runner/work/css/css/src/actionlist/index.scss%23sass"],"names":[],"mappings":"AA8hBA,YAAA,WAAA,CAAA,kBAAA,SAAA,CAAA,oDAAA,iBAAA,CAAA,QAAA,CAAA,aAAA,CAAA,UAAA,CAAA,UAAA,CAAA,UAAA,CAAA,uDAAA,CAAA,iLAAA,iBAAA,CAAA,yIAAA,iBAAA,CAAA,MAAA,0BAAA,CAAA,gEAAA,cAAA,CAAA,wCAAA,iBAAA,CAAA,4DAAA,+DAAA,CAAA,+CAAA,yBAAA,CAAA,4CAAA,yBAAA,CAAA,gJAAA,4BAAA,CAAA,6FAAA,iBAAA,CAAA,UAAA,CAAA,SAAA,CAAA,uDAAA,CAAA,SAAA,CAAA,WAAA,CAAA,mGAAA,iBAAA,CAAA,UAAA,CAAA,SAAA,CAAA,uDAAA,CAAA,oDAAA,CAAA,WAAA,CAAA,qFAAA,iC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