@primer/view-components 0.3.0-rc.dc2abcf9 → 0.3.0
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/app/assets/javascripts/primer_view_components.js +1 -1
- package/app/assets/javascripts/primer_view_components.js.map +1 -1
- package/app/assets/styles/primer_view_components.css +4999 -1
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/alpha/action_list.css +710 -1
- package/app/components/primer/alpha/action_list.css.json +77 -77
- package/app/components/primer/alpha/auto_complete.css +130 -1
- package/app/components/primer/alpha/auto_complete.css.json +4 -4
- package/app/components/primer/alpha/banner.css +131 -1
- package/app/components/primer/alpha/banner.css.json +2 -2
- package/app/components/primer/alpha/button_marketing.css +204 -1
- package/app/components/primer/alpha/button_marketing.css.json +9 -9
- package/app/components/primer/alpha/dialog.css +607 -1
- package/app/components/primer/alpha/dialog.css.json +10 -10
- package/app/components/primer/alpha/dropdown.css +265 -1
- package/app/components/primer/alpha/dropdown.css.json +19 -19
- package/app/components/primer/alpha/layout.css +398 -1
- package/app/components/primer/alpha/layout.css.json +16 -16
- package/app/components/primer/alpha/menu.css +117 -1
- package/app/components/primer/alpha/menu.css.json +7 -7
- package/app/components/primer/alpha/overlay.css +32 -1
- package/app/components/primer/alpha/overlay.css.json +3 -2
- package/app/components/primer/alpha/segmented_control.css +175 -1
- package/app/components/primer/alpha/segmented_control.css.json +7 -7
- package/app/components/primer/alpha/tab_nav.css +106 -1
- package/app/components/primer/alpha/tab_nav.css.json +6 -6
- package/app/components/primer/alpha/text_field.css +849 -1
- package/app/components/primer/alpha/text_field.css.json +45 -45
- package/app/components/primer/alpha/toggle_switch.css +228 -1
- package/app/components/primer/alpha/toggle_switch.css.json +10 -10
- package/app/components/primer/alpha/underline_nav.css +149 -1
- package/app/components/primer/alpha/underline_nav.css.json +8 -8
- package/app/components/primer/anchored_position.js +1 -3
- package/app/components/primer/beta/avatar.css +74 -1
- package/app/components/primer/beta/avatar_stack.css +138 -1
- package/app/components/primer/beta/avatar_stack.css.json +6 -6
- package/app/components/primer/beta/blankslate.css +90 -1
- package/app/components/primer/beta/border_box.css +279 -1
- package/app/components/primer/beta/border_box.css.json +4 -4
- package/app/components/primer/beta/breadcrumbs.css +27 -1
- package/app/components/primer/beta/breadcrumbs.css.json +3 -3
- package/app/components/primer/beta/button.css +385 -1
- package/app/components/primer/beta/button.css.json +16 -16
- package/app/components/primer/beta/button_group.css +23 -1
- package/app/components/primer/beta/button_group.css.json +5 -5
- package/app/components/primer/beta/counter.css +36 -1
- package/app/components/primer/beta/flash.css +150 -1
- package/app/components/primer/beta/label.css +105 -1
- package/app/components/primer/beta/label.css.json +4 -4
- package/app/components/primer/beta/link.css +62 -1
- package/app/components/primer/beta/link.css.json +3 -3
- package/app/components/primer/beta/popover.css +235 -1
- package/app/components/primer/beta/popover.css.json +29 -29
- package/app/components/primer/beta/progress_bar.css +26 -1
- package/app/components/primer/beta/progress_bar.css.json +1 -1
- package/app/components/primer/beta/state.css +50 -1
- package/app/components/primer/beta/state.css.json +1 -1
- package/app/components/primer/beta/subhead.css +54 -1
- package/app/components/primer/beta/subhead.css.json +1 -1
- package/app/components/primer/beta/timeline_item.css +95 -1
- package/app/components/primer/beta/timeline_item.css.json +1 -1
- package/app/components/primer/beta/truncate.css +37 -1
- package/app/components/primer/beta/truncate.css.json +6 -6
- package/app/components/primer/truncate.css +30 -1
- package/app/components/primer/truncate.css.json +4 -4
- package/package.json +1 -1
|
@@ -1 +1,710 @@
|
|
|
1
|
-
:root{--actionListContent-paddingBlock:var(--control-medium-paddingBlock,0.375rem)}.ActionListHeader{margin-bottom:var(--base-size-16,1rem);margin-left:var(--base-size-8,.5rem)}.ActionListWrap{list-style:none}.ActionListWrap--inset{padding:var(--base-size-8,.5rem)}.ActionListWrap--divided .ActionListItem-label:before{height:1px}.ActionListWrap--divided .ActionListItem-descriptionWrap--inline:before,.ActionListWrap--divided .ActionListItem-label:before{background:var(--borderColor-muted,var(--color-neutral-muted));content:"";display:block;position:absolute;top:calc(var(--actionListContent-paddingBlock)*-1);width:100%}.ActionListWrap--divided .ActionListItem-descriptionWrap--inline:before{height:var(--borderWidth-thin,max(1px,.0625rem))}.ActionListWrap--divided .ActionListItem-descriptionWrap--inline .ActionListItem-label:before{content:unset}.ActionList-sectionDivider+.ActionListItem .ActionListItem-descriptionWrap--inline:before,.ActionList-sectionDivider+.ActionListItem .ActionListItem-label:before,.ActionListItem:first-of-type .ActionListItem-descriptionWrap--inline:before,.ActionListItem:first-of-type .ActionListItem-label:before,.ActionListWrap--divided .ActionListItem--navActive .ActionListItem-label:before,.ActionListWrap--divided .ActionListItem--navActive+.ActionListItem .ActionListItem-label:before{visibility:hidden}.ActionListItem{background-color:var(--control-transparent-bgColor-rest,#0000);border-radius:var(--borderRadius-medium,6px);list-style:none;position:relative}.ActionListItem:active,.ActionListItem:hover{cursor:pointer}@media (hover:hover){.ActionListItem:hover .ActionListItem-descriptionWrap--inline:before,.ActionListItem:hover .ActionListItem-label:before,.ActionListItem:hover+.ActionListItem .ActionListItem-descriptionWrap--inline:before,.ActionListItem:hover+.ActionListItem .ActionListItem-label:before{visibility:hidden}}.ActionListItem[hidden]+.ActionList-sectionDivider{display:none}.ActionListItem.ActionListItem--hasSubItem>.ActionListContent{z-index:1}@media (hover:hover){.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:hover{background-color:var(--control-transparent-bgColor-hover,var(--color-action-list-item-default-hover-bg))}}.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active{background-color:var(--control-transparent-bgColor-active,var(--color-action-list-item-default-active-bg))}@media (hover:hover){.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:hover,.ActionListItem:not(.ActionListItem--hasSubItem):hover{background-color:var(--control-transparent-bgColor-hover,var(--color-action-list-item-default-hover-bg));cursor:pointer}.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:hover:not(.ActionListItem--navActive,:focus-visible),.ActionListItem:not(.ActionListItem--hasSubItem):hover:not(.ActionListItem--navActive,:focus-visible){box-shadow:var(--boxShadow-thin,inset 0 0 0 max(1px,.0625rem)) var(--control-transparent-borderColor-active,var(--color-action-list-item-default-active-border));outline:solid var(--borderWidth-thin,max(1px,.0625rem)) #0000;outline-offset:calc(var(--borderWidth-thin,max(1px, .0625rem))*-1)}}.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active,.ActionListItem:not(.ActionListItem--hasSubItem):active{background:var(--control-transparent-bgColor-active,var(--color-action-list-item-default-active-bg))}.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active:not(.ActionListItem--navActive),.ActionListItem:not(.ActionListItem--hasSubItem):active:not(.ActionListItem--navActive){box-shadow:var(--boxShadow-thin,inset 0 0 0 max(1px,.0625rem)) var(--control-transparent-borderColor-active,var(--color-action-list-item-default-active-border));outline:solid var(--borderWidth-thin,max(1px,.0625rem)) #0000;outline-offset:calc(var(--borderWidth-thin,max(1px, .0625rem))*-1)}.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active .ActionListItem-label:before,.ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active+.ActionListItem .ActionListItem-label:before,.ActionListItem:not(.ActionListItem--hasSubItem):active .ActionListItem-label:before,.ActionListItem:not(.ActionListItem--hasSubItem):active+.ActionListItem .ActionListItem-label:before{visibility:hidden}.ActionListItem[aria-selected=true]{background:var(--control-transparent-bgColor-selected,var(--color-action-list-item-default-selected-bg));font-weight:var(--base-text-weight-normal,400)}@media (hover:hover){.ActionListItem[aria-selected=true]:hover{background-color:var(--control-transparent-bgColor-hover,var(--color-action-list-item-default-hover-bg))}}.ActionListItem[aria-selected=true]+.ActionListItem:before,.ActionListItem[aria-selected=true]:before{visibility:hidden}.ActionListItem[aria-selected=true]:after{background:var(--borderColor-accent-emphasis,var(--color-accent-fg));border-radius:var(--borderRadius-medium,6px);content:"";height:var(--base-size-24,1.5rem);left:calc(var(--base-size-4,.25rem)*-1);position:absolute;top:calc(50% - 12px);width:var(--base-size-4,.25rem)}.ActionListItem.ActionListItem--navActive{outline:2px solid #0000}.ActionListItem.ActionListItem--navActive:not(.ActionListItem--subItem) .ActionListItem-label{font-weight:var(--base-text-weight-semibold,600)}.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger){background:var(--control-transparent-bgColor-selected,var(--color-action-list-item-default-selected-bg))}@media (hover:hover){.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):hover{background-color:var(--control-transparent-bgColor-hover,var(--color-action-list-item-default-hover-bg))}}.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)+.ActionListItem:before,.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):before{visibility:hidden}.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):after{background:var(--borderColor-accent-emphasis,var(--color-accent-fg));border-radius:var(--borderRadius-medium,6px);content:"";height:var(--base-size-24,1.5rem);left:calc(var(--base-size-8,.5rem)*-1);position:absolute;top:calc(50% - 12px);width:var(--base-size-4,.25rem)}.ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-description,.ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-label,.ActionListItem[aria-disabled=true] .ActionListContent .ActionListItem-description,.ActionListItem[aria-disabled=true] .ActionListContent .ActionListItem-label{color:var(--control-fgColor-disabled,var(--color-primer-fg-disabled))}.ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-visual,.ActionListItem[aria-disabled=true] .ActionListContent .ActionListItem-visual{fill:var(--control-fgColor-disabled,var(--color-primer-fg-disabled))}@media (hover:hover){.ActionListItem.ActionListItem--disabled:hover,.ActionListItem[aria-disabled=true]:hover{background-color:initial;cursor:not-allowed}}.ActionListItem.ActionListItem--danger .ActionListItem-label,.ActionListItem.ActionListItem--danger .ActionListItem-visual{color:var(--control-danger-fgColor-rest,var(--color-danger-fg))}@media (hover:hover){.ActionListItem.ActionListItem--danger:hover{background:var(--control-danger-bgColor-hover,var(--color-action-list-item-danger-hover-bg))}.ActionListItem.ActionListItem--danger:hover .ActionListItem-label,.ActionListItem.ActionListItem--danger:hover .ActionListItem-visual{color:var(--control-danger-fgColor-hover,var(--color-action-list-item-danger-hover-text))}}.ActionListItem.ActionListItem--danger .ActionListContent:active{background:var(--control-danger-bgColor-active,var(--color-action-list-item-danger-active-bg))}.ActionListItem.ActionListItem--danger .ActionListContent:active .ActionListItem-label,.ActionListItem.ActionListItem--danger .ActionListContent:active .ActionListItem-visual{color:var(--control-danger-fgColor-hover,var(--color-action-list-item-danger-hover-text))}.ActionListContent{-webkit-tap-highlight-color:transparent;align-items:start;background-color:initial;border:none;border-radius:var(--borderRadius-medium,6px);color:var(--control-fgColor-rest,var(--color-fg-default));display:grid;grid-template-areas:"leadingAction leadingVisual label trailingVisual trailingAction";grid-template-columns:min-content min-content minmax(0,auto) min-content min-content;grid-template-rows:min-content;padding-block:var(--actionListContent-paddingBlock);padding-inline:var(--control-medium-paddingInline-condensed,.5rem);position:relative;text-align:left;touch-action:manipulation;transition:background 33.333ms linear;-webkit-user-select:none;user-select:none;width:100%}.ActionListContent>:not(:last-child){margin-right:var(--control-medium-gap,.5rem)}.ActionListContent:hover{text-decoration:none}.ActionListContent[aria-disabled=true] .ActionListItem-description,.ActionListContent[aria-disabled=true] .ActionListItem-label{color:var(--control-fgColor-disabled,var(--color-primer-fg-disabled))}.ActionListContent[aria-disabled=true] .ActionListItem-visual{fill:var(--control-fgColor-disabled,var(--color-primer-fg-disabled))}@media (hover:hover){.ActionListContent[aria-disabled=true]:hover{background-color:initial;cursor:not-allowed}}@media screen and (prefers-reduced-motion:no-preference){.ActionListContent[aria-expanded]+.ActionList--subGroup{transition:opacity .16s cubic-bezier(.25,1,.5,1),transform .16s cubic-bezier(.25,1,.5,1)}}.ActionListContent[aria-expanded]+.ActionList--subGroup .ActionListContent{padding-left:var(--base-size-24,1.5rem)}.ActionListContent.ActionListContent--visual16[aria-expanded]+.ActionList--subGroup .ActionListContent{padding-left:var(--base-size-32,2rem)}.ActionListContent.ActionListContent--visual20[aria-expanded]+.ActionList--subGroup .ActionListContent{padding-left:var(--base-size-36,2.25rem)}.ActionListContent.ActionListContent--visual24[aria-expanded]+.ActionList--subGroup .ActionListContent{padding-left:var(--base-size-40,2.5rem)}.ActionListContent[aria-expanded=true] .ActionListItem-collapseIcon{transform:scaleY(-1);transition:transform .12s linear}.ActionListContent[aria-expanded=true]+.ActionList--subGroup{height:auto;opacity:1;overflow:visible;transform:translateY(0);visibility:visible}.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=true]>.ActionListItem-label{font-weight:var(--base-text-weight-semibold,600)}.ActionListContent[aria-expanded=false] .ActionListItem-collapseIcon{transform:scaleY(1);transition:transform .12s linear}.ActionListContent[aria-expanded=false]+.ActionList--subGroup{height:0;opacity:0;overflow:hidden;transform:translateY(calc(var(--base-size-16,1rem)*-1));visibility:hidden}.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]{background:var(--control-transparent-bgColor-selected,var(--color-action-list-item-default-selected-bg))}.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false] .ActionListItem-label{font-weight:var(--base-text-weight-semibold,600)}.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]+.ActionListItem:before,.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]:before{visibility:hidden}.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]:after{background:var(--borderColor-accent-emphasis,var(--color-accent-fg));border-radius:var(--borderRadius-medium,6px);content:"";height:var(--base-size-24,1.5rem);left:calc(var(--base-size-8,.5rem)*-1);position:absolute;top:calc(50% - 12px);width:var(--base-size-4,.25rem)}.ActionListContent[aria-checked=true] .ActionListItem-multiSelectCheckmark,.ActionListContent[aria-selected=true] .ActionListItem-multiSelectCheckmark{opacity:1;transition:visibility 0 linear 0,opacity 50ms;visibility:visible}.ActionListContent[aria-checked=true] .ActionListItem-singleSelectCheckmark,.ActionListContent[aria-selected=true] .ActionListItem-singleSelectCheckmark{visibility:visible}@media screen and (prefers-reduced-motion:no-preference){.ActionListContent[aria-checked=true] .ActionListItem-singleSelectCheckmark,.ActionListContent[aria-selected=true] .ActionListItem-singleSelectCheckmark{animation:checkmarkIn .2s cubic-bezier(.11,0,.5,0) forwards;@keyframes checkmarkIn{0%{clip-path:inset(16px 0 0 0)}to{clip-path:inset(0 0 0 0)}}}}.ActionListContent[aria-checked=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect,.ActionListContent[aria-selected=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect{fill:var(--control-checked-bgColor-rest,var(--color-switch-track-checked-bg));stroke:var(--control-checked-bgColor-rest,var(--color-switch-track-checked-bg));stroke-width:var(--borderWidth-thin,1px)}.ActionListContent[aria-checked=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark,.ActionListContent[aria-selected=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark{fill:var(--fgColor-onEmphasis,var(--color-fg-on-emphasis))}.ActionListContent[aria-checked=false] .ActionListItem-multiSelectCheckmark,.ActionListContent[aria-selected=false] .ActionListItem-multiSelectCheckmark{opacity:0;transition:visibility 0 linear 50ms,opacity 50ms;visibility:hidden}.ActionListContent[aria-checked=false] .ActionListItem-singleSelectCheckmark,.ActionListContent[aria-selected=false] .ActionListItem-singleSelectCheckmark{clip-path:inset(16px 0 0 0);transition:visibility 0s linear .2s;visibility:hidden}@media screen and (prefers-reduced-motion:no-preference){.ActionListContent[aria-checked=false] .ActionListItem-singleSelectCheckmark,.ActionListContent[aria-selected=false] .ActionListItem-singleSelectCheckmark{animation:checkmarkOut .2s cubic-bezier(.11,0,.5,0) forwards;@keyframes checkmarkOut{0%{clip-path:inset(0 0 0 0)}to{clip-path:inset(16px 0 0 0)}}}}.ActionListContent[aria-checked=false] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect,.ActionListContent[aria-selected=false] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect{fill:var(--bgColor-default,var(--color-canvas-default));stroke:var(--control-borderColor-rest,var(--color-btn-border));stroke-width:var(--borderWidth-thin,1px)}.ActionListContent[aria-checked=false] .ActionListItem-multiSelectIconRect,.ActionListContent[aria-selected=false] .ActionListItem-multiSelectIconRect{fill:var(--bgColor-default,var(--color-canvas-default));border:var(--borderWidth-thin,1px) solid var(--control-borderColor-rest,var(--color-btn-border))}.ActionListContent.ActionListContent--sizeLarge{--actionListContent-paddingBlock:var(--control-large-paddingBlock,0.625rem)}.ActionListContent.ActionListContent--sizeXLarge{--actionListContent-paddingBlock:var(--control-xlarge-paddingBlock,0.875rem)}@media (pointer:coarse){.ActionListContent{--actionListContent-paddingBlock:var(--control-large-paddingBlock,0.625rem)}}.ActionListContent.ActionListContent--blockDescription .ActionListItem-visual{place-self:start}.ActionListItem-action--leading{grid-area:leadingAction}.ActionListItem-visual--leading{grid-area:leadingVisual}.ActionListItem-visual--trailing{grid-area:trailingVisual}.ActionListItem-action--trailing{grid-area:trailingAction}.ActionListItem-descriptionWrap{display:flex;flex-direction:column;gap:var(--base-size-4,.25rem);grid-area:label}.ActionListItem-descriptionWrap .ActionListItem-label{font-weight:var(--base-text-weight-semibold,600)}.ActionListItem-descriptionWrap--inline{align-items:baseline;flex-direction:row;gap:var(--base-size-8,.5rem);position:relative}.ActionListItem-description{color:var(--fgColor-muted,var(--color-fg-muted));font-size:var(--text-body-size-small,.75rem);font-weight:var(--base-text-weight-normal,400);line-height:var(--text-body-lineHeight-small,1.66667)}.ActionListItem-action,.ActionListItem-visual{fill:var(--fgColor-muted,var(--color-fg-muted));align-items:center;color:var(--fgColor-muted,var(--color-fg-muted));display:flex;min-height:var(--control-medium-lineBoxHeight,1.25rem);pointer-events:none}.ActionListItem-label{color:var(--fgColor-default,var(--color-fg-default));font-size:var(--text-body-size-medium,.875rem);font-weight:var(--base-text-weight-normal,400);grid-area:label;line-height:var(--text-body-lineHeight-medium,1.42857);position:relative}.ActionListItem-label--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ActionListItem--subItem>.ActionListContent>.ActionListItem-label{font-size:var(--text-body-size-small,.75rem);line-height:var(--text-body-lineHeight-small,1.66667)}.ActionListItem--withActions{align-items:center;display:flex;flex-wrap:nowrap}.ActionListItem-trailingAction{border-bottom-left-radius:0;border-top-left-radius:0}.ActionListItem--trailingActionHover .ActionListItem-trailingAction{visibility:hidden}.ActionListItem--trailingActionHover:focus-within .ActionListItem-trailingAction,.ActionListItem--trailingActionHover:hover .ActionListItem-trailingAction{visibility:visible}.ActionList-sectionDivider:not(:empty){color:var(--fgColor-muted,var(--color-fg-muted));display:flex;flex-direction:column;font-size:var(--text-body-size-small,.75rem);font-weight:var(--base-text-weight-semibold,600);line-height:var(--text-body-lineHeight-small,1.66667);padding-block:var(--base-size-8,.5rem);padding-inline:var(--actionListContent-paddingBlock)}.ActionList-sectionDivider:empty{background:var(--borderColor-muted,var(--color-neutral-muted));border:0;display:block;height:var(--borderWidth-thin,max(1px,.0625rem));list-style:none;margin-block-end:var(--base-size-8,.5rem);margin-block-start:calc(var(--base-size-8,.5rem) - var(--borderWidth-thin,max(1px, .0625rem)));margin-inline:calc(var(--base-size-8,.5rem)*-1);padding:0}.ActionList-sectionDivider .ActionList-sectionDivider-title{color:var(--fgColor-muted,var(--color-fg-muted));font-size:var(--text-body-size-small,.75rem);font-weight:var(--base-text-weight-semibold,600)}.ActionList-sectionDivider--filled{background:var(--bgColor-muted,var(--color-canvas-inset));border-bottom:solid var(--borderWidth-thin,max(1px,.0625rem)) var(--borderColor-muted,var(--color-neutral-muted));border-top:solid var(--borderWidth-thin,max(1px,.0625rem)) var(--borderColor-muted,var(--color-neutral-muted));margin-block-end:var(--base-size-8,.5rem);margin-block-start:calc(var(--base-size-8,.5rem) - var(--borderWidth-thin,max(1px, .0625rem)));margin-inline:calc(var(--base-size-8,.5rem)*-1)}.ActionList-sectionDivider--filled:empty{box-sizing:border-box;height:var(--base-size-8,.5rem)}.ActionList-sectionDivider--filled:first-child{margin-block-start:0}
|
|
1
|
+
:root {
|
|
2
|
+
--actionListContent-paddingBlock: var(--control-medium-paddingBlock,calc((2rem - 1.25rem) / 2));
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/* ActionList */
|
|
6
|
+
|
|
7
|
+
.ActionListHeader {
|
|
8
|
+
margin-left: var(--base-size-8,0.5rem);
|
|
9
|
+
margin-bottom: var(--base-size-16,1rem);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* <ul> */
|
|
13
|
+
|
|
14
|
+
.ActionListWrap {
|
|
15
|
+
list-style: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ActionListWrap--inset {
|
|
19
|
+
padding: var(--base-size-8,0.5rem);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* list dividers */
|
|
23
|
+
|
|
24
|
+
.ActionListWrap--divided .ActionListItem-label::before {
|
|
25
|
+
position: absolute;
|
|
26
|
+
top: calc(-1 * var(--actionListContent-paddingBlock));
|
|
27
|
+
display: block;
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 1px;
|
|
30
|
+
content: '';
|
|
31
|
+
background: var(--borderColor-muted,var(--color-neutral-muted));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* if descriptionWrap--inline exists, move pseudo divider to wrapper */
|
|
35
|
+
|
|
36
|
+
.ActionListWrap--divided .ActionListItem-descriptionWrap--inline::before {
|
|
37
|
+
position: absolute;
|
|
38
|
+
top: calc(-1 * var(--actionListContent-paddingBlock));
|
|
39
|
+
display: block;
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: var(--borderWidth-thin,max(1px, 0.0625rem));
|
|
42
|
+
content: '';
|
|
43
|
+
background: var(--borderColor-muted,var(--color-neutral-muted));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* unset the default label pseudo */
|
|
47
|
+
|
|
48
|
+
.ActionListWrap--divided .ActionListItem-descriptionWrap--inline .ActionListItem-label::before {
|
|
49
|
+
content: unset;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* hide divider if item is active */
|
|
53
|
+
|
|
54
|
+
.ActionListWrap--divided .ActionListItem--navActive .ActionListItem-label::before,
|
|
55
|
+
.ActionListWrap--divided .ActionListItem--navActive + .ActionListItem .ActionListItem-label::before {
|
|
56
|
+
visibility: hidden;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* hide if item is first of type with label::before, or is the first item after a sectionDivider */
|
|
60
|
+
|
|
61
|
+
.ActionListItem:first-of-type .ActionListItem-label::before,
|
|
62
|
+
.ActionList-sectionDivider + .ActionListItem .ActionListItem-label::before {
|
|
63
|
+
visibility: hidden;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* hide if item is first of type with label::before, or is the first item after a sectionDivider */
|
|
67
|
+
|
|
68
|
+
.ActionListItem:first-of-type .ActionListItem-descriptionWrap--inline::before,
|
|
69
|
+
.ActionList-sectionDivider + .ActionListItem .ActionListItem-descriptionWrap--inline::before {
|
|
70
|
+
visibility: hidden;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* ActionList::Item */
|
|
74
|
+
|
|
75
|
+
.ActionListItem {
|
|
76
|
+
position: relative;
|
|
77
|
+
list-style: none;
|
|
78
|
+
background-color: var(--control-transparent-bgColor-rest,transparent);
|
|
79
|
+
border-radius: var(--borderRadius-medium,6px);
|
|
80
|
+
|
|
81
|
+
/* state */
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.ActionListItem:hover,
|
|
85
|
+
.ActionListItem:active {
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* hide dividers */
|
|
90
|
+
|
|
91
|
+
@media (hover: hover) {
|
|
92
|
+
.ActionListItem:hover .ActionListItem-label::before,
|
|
93
|
+
.ActionListItem:hover + .ActionListItem .ActionListItem-label::before {
|
|
94
|
+
visibility: hidden;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.ActionListItem:hover .ActionListItem-descriptionWrap--inline::before,
|
|
98
|
+
.ActionListItem:hover + .ActionListItem .ActionListItem-descriptionWrap--inline::before {
|
|
99
|
+
visibility: hidden;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Make sure that the first visible item isn't a divider */
|
|
104
|
+
|
|
105
|
+
.ActionListItem[hidden] + .ActionList-sectionDivider {
|
|
106
|
+
display: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* collapse styles here */
|
|
110
|
+
|
|
111
|
+
/* first child */
|
|
112
|
+
|
|
113
|
+
.ActionListItem.ActionListItem--hasSubItem > .ActionListContent {
|
|
114
|
+
z-index: 1;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@media (hover: hover) {
|
|
118
|
+
.ActionListItem.ActionListItem--hasSubItem > .ActionListContent:hover {
|
|
119
|
+
background-color: var(--control-transparent-bgColor-hover,var(--color-action-list-item-default-hover-bg));
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.ActionListItem.ActionListItem--hasSubItem > .ActionListContent:active {
|
|
124
|
+
background-color: var(--control-transparent-bgColor-active,var(--color-action-list-item-default-active-bg));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* only hover li without list as children */
|
|
128
|
+
|
|
129
|
+
@media (hover: hover) {
|
|
130
|
+
.ActionListItem:not(.ActionListItem--hasSubItem):hover, .ActionListItem.ActionListItem--hasSubItem > .ActionListContent:hover {
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
background-color: var(--control-transparent-bgColor-hover,var(--color-action-list-item-default-hover-bg));
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.ActionListItem:not(.ActionListItem--hasSubItem):hover:not(.ActionListItem--navActive, :focus-visible), .ActionListItem.ActionListItem--hasSubItem > .ActionListContent:hover:not(.ActionListItem--navActive, :focus-visible) {
|
|
136
|
+
/* Support for "Windows high contrast mode" */
|
|
137
|
+
outline: solid var(--borderWidth-thin,max(1px, 0.0625rem)) transparent;
|
|
138
|
+
outline-offset: calc(-1 * var(--borderWidth-thin,max(1px, 0.0625rem)));
|
|
139
|
+
box-shadow: var(--boxShadow-thin,inset 0 0 0 max(1px, 0.0625rem)) var(--control-transparent-borderColor-active,var(--color-action-list-item-default-active-border));
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.ActionListItem:not(.ActionListItem--hasSubItem):active, .ActionListItem.ActionListItem--hasSubItem > .ActionListContent:active {
|
|
144
|
+
background: var(--control-transparent-bgColor-active,var(--color-action-list-item-default-active-bg));
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.ActionListItem:not(.ActionListItem--hasSubItem):active:not(.ActionListItem--navActive), .ActionListItem.ActionListItem--hasSubItem > .ActionListContent:active:not(.ActionListItem--navActive) {
|
|
148
|
+
/* Support for "Windows high contrast mode" https:sarahmhigley.com/writing/whcm-quick-tips/ */
|
|
149
|
+
outline: solid var(--borderWidth-thin,max(1px, 0.0625rem)) transparent;
|
|
150
|
+
outline-offset: calc(-1 * var(--borderWidth-thin,max(1px, 0.0625rem)));
|
|
151
|
+
box-shadow: var(--boxShadow-thin,inset 0 0 0 max(1px, 0.0625rem)) var(--control-transparent-borderColor-active,var(--color-action-list-item-default-active-border));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.ActionListItem:not(.ActionListItem--hasSubItem):active .ActionListItem-label::before,
|
|
155
|
+
.ActionListItem.ActionListItem--hasSubItem > .ActionListContent:active .ActionListItem-label::before,
|
|
156
|
+
.ActionListItem:not(.ActionListItem--hasSubItem):active + .ActionListItem .ActionListItem-label::before,
|
|
157
|
+
.ActionListItem.ActionListItem--hasSubItem > .ActionListContent:active + .ActionListItem .ActionListItem-label::before {
|
|
158
|
+
visibility: hidden;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Autocomplete [aria-selected] items */
|
|
162
|
+
|
|
163
|
+
.ActionListItem[aria-selected='true'] {
|
|
164
|
+
font-weight: var(--base-text-weight-normal,400);
|
|
165
|
+
background: var(--control-transparent-bgColor-selected,var(--color-action-list-item-default-selected-bg));
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@media (hover: hover) {
|
|
169
|
+
.ActionListItem[aria-selected='true']:hover {
|
|
170
|
+
background-color: var(--control-transparent-bgColor-hover,var(--color-action-list-item-default-hover-bg));
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.ActionListItem[aria-selected='true']::before,
|
|
175
|
+
.ActionListItem[aria-selected='true'] + .ActionListItem::before {
|
|
176
|
+
visibility: hidden;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* blue accent line */
|
|
180
|
+
|
|
181
|
+
.ActionListItem[aria-selected='true']::after {
|
|
182
|
+
position: absolute;
|
|
183
|
+
top: calc(50% - 12px);
|
|
184
|
+
left: calc(-1 * var(--base-size-4,0.25rem));
|
|
185
|
+
width: var(--base-size-4,0.25rem);
|
|
186
|
+
height: var(--base-size-24,1.5rem);
|
|
187
|
+
content: '';
|
|
188
|
+
background: var(--borderColor-accent-emphasis,var(--color-accent-fg));
|
|
189
|
+
border-radius: var(--borderRadius-medium,6px);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* active state [aria-current] */
|
|
193
|
+
|
|
194
|
+
.ActionListItem.ActionListItem--navActive {
|
|
195
|
+
/* provides a visual indication of the current item for Windows high-contrast mode */
|
|
196
|
+
outline: 2px solid transparent;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.ActionListItem.ActionListItem--navActive:not(.ActionListItem--subItem) .ActionListItem-label {
|
|
200
|
+
font-weight: var(--base-text-weight-semibold,600);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger) {
|
|
204
|
+
background: var(--control-transparent-bgColor-selected,var(--color-action-list-item-default-selected-bg));
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
@media (hover: hover) {
|
|
208
|
+
.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):hover {
|
|
209
|
+
background-color: var(--control-transparent-bgColor-hover,var(--color-action-list-item-default-hover-bg));
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)::before,
|
|
214
|
+
.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger) + .ActionListItem::before {
|
|
215
|
+
visibility: hidden;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/* blue accent line */
|
|
219
|
+
|
|
220
|
+
.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)::after {
|
|
221
|
+
position: absolute;
|
|
222
|
+
top: calc(50% - 12px);
|
|
223
|
+
left: calc(-1 * var(--base-size-8,0.5rem));
|
|
224
|
+
width: var(--base-size-4,0.25rem);
|
|
225
|
+
height: var(--base-size-24,1.5rem);
|
|
226
|
+
content: '';
|
|
227
|
+
background: var(--borderColor-accent-emphasis,var(--color-accent-fg));
|
|
228
|
+
border-radius: var(--borderRadius-medium,6px);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* disabled */
|
|
232
|
+
|
|
233
|
+
.ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-label,
|
|
234
|
+
.ActionListItem[aria-disabled='true'] .ActionListContent .ActionListItem-label,
|
|
235
|
+
.ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-description,
|
|
236
|
+
.ActionListItem[aria-disabled='true'] .ActionListContent .ActionListItem-description {
|
|
237
|
+
color: var(--control-fgColor-disabled,var(--color-primer-fg-disabled));
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-visual, .ActionListItem[aria-disabled='true'] .ActionListContent .ActionListItem-visual {
|
|
241
|
+
fill: var(--control-fgColor-disabled,var(--color-primer-fg-disabled));
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
@media (hover: hover) {
|
|
245
|
+
.ActionListItem.ActionListItem--disabled:hover, .ActionListItem[aria-disabled='true']:hover {
|
|
246
|
+
cursor: not-allowed;
|
|
247
|
+
background-color: transparent;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* variants */
|
|
252
|
+
|
|
253
|
+
/* danger */
|
|
254
|
+
|
|
255
|
+
.ActionListItem.ActionListItem--danger .ActionListItem-label {
|
|
256
|
+
color: var(--control-danger-fgColor-rest,var(--color-danger-fg));
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.ActionListItem.ActionListItem--danger .ActionListItem-visual {
|
|
260
|
+
color: var(--control-danger-fgColor-rest,var(--color-danger-fg));
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
@media (hover: hover) {
|
|
264
|
+
.ActionListItem.ActionListItem--danger:hover {
|
|
265
|
+
background: var(--control-danger-bgColor-hover,var(--color-action-list-item-danger-hover-bg));
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.ActionListItem.ActionListItem--danger:hover .ActionListItem-label,
|
|
269
|
+
.ActionListItem.ActionListItem--danger:hover .ActionListItem-visual {
|
|
270
|
+
color: var(--control-danger-fgColor-hover,var(--color-action-list-item-danger-hover-text));
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.ActionListItem.ActionListItem--danger .ActionListContent:active {
|
|
275
|
+
background: var(--control-danger-bgColor-active,var(--color-action-list-item-danger-active-bg));
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.ActionListItem.ActionListItem--danger .ActionListContent:active .ActionListItem-label,
|
|
279
|
+
.ActionListItem.ActionListItem--danger .ActionListContent:active .ActionListItem-visual {
|
|
280
|
+
color: var(--control-danger-fgColor-hover,var(--color-action-list-item-danger-hover-text));
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* button or a href */
|
|
284
|
+
|
|
285
|
+
.ActionListContent {
|
|
286
|
+
position: relative;
|
|
287
|
+
display: grid;
|
|
288
|
+
width: 100%;
|
|
289
|
+
padding-block: var(--actionListContent-paddingBlock);
|
|
290
|
+
padding-inline: var(--control-medium-paddingInline-condensed,0.5rem);
|
|
291
|
+
color: var(--control-fgColor-rest,var(--color-fg-default));
|
|
292
|
+
text-align: left;
|
|
293
|
+
-webkit-user-select: none;
|
|
294
|
+
user-select: none;
|
|
295
|
+
background-color: transparent;
|
|
296
|
+
border: none;
|
|
297
|
+
border-radius: var(--borderRadius-medium,6px);
|
|
298
|
+
transition: background 33.333ms linear;
|
|
299
|
+
touch-action: manipulation;
|
|
300
|
+
-webkit-tap-highlight-color: transparent;
|
|
301
|
+
grid-template-rows: min-content;
|
|
302
|
+
grid-template-areas: 'leadingAction leadingVisual label trailingVisual trailingAction';
|
|
303
|
+
grid-template-columns: min-content min-content minmax(0, auto) min-content min-content;
|
|
304
|
+
align-items: start;
|
|
305
|
+
|
|
306
|
+
/* column-gap persists with empty grid-areas, margin applies only when children exist */
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.ActionListContent > :not(:last-child) {
|
|
310
|
+
margin-right: var(--control-medium-gap,0.5rem);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/* state */
|
|
314
|
+
|
|
315
|
+
.ActionListContent:hover {
|
|
316
|
+
text-decoration: none;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* disabled */
|
|
320
|
+
|
|
321
|
+
.ActionListContent[aria-disabled='true'] .ActionListItem-label,
|
|
322
|
+
.ActionListContent[aria-disabled='true'] .ActionListItem-description {
|
|
323
|
+
color: var(--control-fgColor-disabled,var(--color-primer-fg-disabled));
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.ActionListContent[aria-disabled='true'] .ActionListItem-visual {
|
|
327
|
+
fill: var(--control-fgColor-disabled,var(--color-primer-fg-disabled));
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
@media (hover: hover) {
|
|
331
|
+
.ActionListContent[aria-disabled='true']:hover {
|
|
332
|
+
cursor: not-allowed;
|
|
333
|
+
background-color: transparent;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/* collapsible item [aria-expanded] */
|
|
338
|
+
|
|
339
|
+
/* nesting (single level)
|
|
340
|
+
target items inside expanded subgroups */
|
|
341
|
+
|
|
342
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
343
|
+
|
|
344
|
+
.ActionListContent[aria-expanded] + .ActionList--subGroup {
|
|
345
|
+
transition: opacity 160ms cubic-bezier(0.25, 1, 0.5, 1), transform 160ms cubic-bezier(0.25, 1, 0.5, 1);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.ActionListContent[aria-expanded] + .ActionList--subGroup .ActionListContent {
|
|
350
|
+
padding-left: var(--base-size-24,1.5rem);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/* has 16px leading visual */
|
|
354
|
+
|
|
355
|
+
.ActionListContent.ActionListContent--visual16[aria-expanded] + .ActionList--subGroup .ActionListContent {
|
|
356
|
+
padding-left: var(--base-size-32,2rem);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/* has 20px leading visual */
|
|
360
|
+
|
|
361
|
+
.ActionListContent.ActionListContent--visual20[aria-expanded] + .ActionList--subGroup .ActionListContent {
|
|
362
|
+
padding-left: var(--base-size-36,2.25rem);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/* has 24px leading visual */
|
|
366
|
+
|
|
367
|
+
.ActionListContent.ActionListContent--visual24[aria-expanded] + .ActionList--subGroup .ActionListContent {
|
|
368
|
+
padding-left: var(--base-size-40,2.5rem);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.ActionListContent[aria-expanded='true'] .ActionListItem-collapseIcon {
|
|
372
|
+
transition: transform 120ms linear;
|
|
373
|
+
transform: scaleY(-1);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.ActionListContent[aria-expanded='true'] + .ActionList--subGroup {
|
|
377
|
+
height: auto;
|
|
378
|
+
overflow: visible;
|
|
379
|
+
visibility: visible;
|
|
380
|
+
opacity: 1;
|
|
381
|
+
transform: translateY(0);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='true'] > .ActionListItem-label {
|
|
385
|
+
font-weight: var(--base-text-weight-semibold,600);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.ActionListContent[aria-expanded='false'] .ActionListItem-collapseIcon {
|
|
389
|
+
transition: transform 120ms linear;
|
|
390
|
+
transform: scaleY(1);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.ActionListContent[aria-expanded='false'] + .ActionList--subGroup {
|
|
394
|
+
height: 0;
|
|
395
|
+
overflow: hidden;
|
|
396
|
+
visibility: hidden;
|
|
397
|
+
opacity: 0;
|
|
398
|
+
transform: translateY(calc(-1 * var(--base-size-16,1rem)));
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/* show active indicator on parent collapse if child is active */
|
|
402
|
+
|
|
403
|
+
.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false'] {
|
|
404
|
+
background: var(--control-transparent-bgColor-selected,var(--color-action-list-item-default-selected-bg));
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false'] .ActionListItem-label {
|
|
408
|
+
font-weight: var(--base-text-weight-semibold,600);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false']::before,
|
|
412
|
+
.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false'] + .ActionListItem::before {
|
|
413
|
+
visibility: hidden;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/* blue accent line */
|
|
417
|
+
|
|
418
|
+
.ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false']::after {
|
|
419
|
+
position: absolute;
|
|
420
|
+
top: calc(50% - 12px);
|
|
421
|
+
left: calc(-1 * var(--base-size-8,0.5rem));
|
|
422
|
+
width: var(--base-size-4,0.25rem);
|
|
423
|
+
height: var(--base-size-24,1.5rem);
|
|
424
|
+
content: '';
|
|
425
|
+
background: var(--borderColor-accent-emphasis,var(--color-accent-fg));
|
|
426
|
+
border-radius: var(--borderRadius-medium,6px);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/*
|
|
430
|
+
* checkbox item [aria-checked]
|
|
431
|
+
* listbox [aria-selected]
|
|
432
|
+
*/
|
|
433
|
+
|
|
434
|
+
/* multiselect checkmark */
|
|
435
|
+
|
|
436
|
+
.ActionListContent[aria-checked='true'] .ActionListItem-multiSelectCheckmark, .ActionListContent[aria-selected='true'] .ActionListItem-multiSelectCheckmark {
|
|
437
|
+
visibility: visible;
|
|
438
|
+
opacity: 1;
|
|
439
|
+
transition: visibility 0 linear 0, opacity 50ms;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/* singleselect checkmark */
|
|
443
|
+
|
|
444
|
+
.ActionListContent[aria-checked='true'] .ActionListItem-singleSelectCheckmark, .ActionListContent[aria-selected='true'] .ActionListItem-singleSelectCheckmark {
|
|
445
|
+
visibility: visible;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
449
|
+
|
|
450
|
+
.ActionListContent[aria-checked='true'] .ActionListItem-singleSelectCheckmark, .ActionListContent[aria-selected='true'] .ActionListItem-singleSelectCheckmark {
|
|
451
|
+
animation: checkmarkIn 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards;
|
|
452
|
+
@keyframes checkmarkIn {
|
|
453
|
+
from {
|
|
454
|
+
clip-path: inset(16px 0 0 0);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
to {
|
|
458
|
+
clip-path: inset(0 0 0 0);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/* checkbox */
|
|
465
|
+
|
|
466
|
+
.ActionListContent[aria-checked='true'] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect, .ActionListContent[aria-selected='true'] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect {
|
|
467
|
+
fill: var(--control-checked-bgColor-rest,var(--color-switch-track-checked-bg));
|
|
468
|
+
stroke: var(--control-checked-bgColor-rest,var(--color-switch-track-checked-bg));
|
|
469
|
+
stroke-width: var(--borderWidth-thin, 1px);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.ActionListContent[aria-checked='true'] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark, .ActionListContent[aria-selected='true'] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark {
|
|
473
|
+
fill: var(--fgColor-onEmphasis,var(--color-fg-on-emphasis));
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/* multiselect checkmark */
|
|
477
|
+
|
|
478
|
+
.ActionListContent[aria-checked='false'] .ActionListItem-multiSelectCheckmark, .ActionListContent[aria-selected='false'] .ActionListItem-multiSelectCheckmark {
|
|
479
|
+
visibility: hidden;
|
|
480
|
+
opacity: 0;
|
|
481
|
+
transition: visibility 0 linear 50ms, opacity 50ms;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/* singleselect checkmark */
|
|
485
|
+
|
|
486
|
+
.ActionListContent[aria-checked='false'] .ActionListItem-singleSelectCheckmark, .ActionListContent[aria-selected='false'] .ActionListItem-singleSelectCheckmark {
|
|
487
|
+
visibility: hidden;
|
|
488
|
+
transition: visibility 0s linear 200ms;
|
|
489
|
+
clip-path: inset(16px 0 0 0);
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
493
|
+
|
|
494
|
+
.ActionListContent[aria-checked='false'] .ActionListItem-singleSelectCheckmark, .ActionListContent[aria-selected='false'] .ActionListItem-singleSelectCheckmark {
|
|
495
|
+
animation: checkmarkOut 200ms cubic-bezier(0.11, 0, 0.5, 0) forwards;
|
|
496
|
+
@keyframes checkmarkOut {
|
|
497
|
+
from {
|
|
498
|
+
clip-path: inset(0 0 0 0);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
to {
|
|
502
|
+
clip-path: inset(16px 0 0 0);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/* checkbox */
|
|
509
|
+
|
|
510
|
+
.ActionListContent[aria-checked='false'] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect, .ActionListContent[aria-selected='false'] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect {
|
|
511
|
+
fill: var(--bgColor-default,var(--color-canvas-default));
|
|
512
|
+
stroke: var(--control-borderColor-rest,var(--color-btn-border));
|
|
513
|
+
stroke-width: var(--borderWidth-thin, 1px);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.ActionListContent[aria-checked='false'] .ActionListItem-multiSelectIconRect, .ActionListContent[aria-selected='false'] .ActionListItem-multiSelectIconRect {
|
|
517
|
+
fill: var(--bgColor-default,var(--color-canvas-default));
|
|
518
|
+
border: var(--borderWidth-thin, 1px) solid var(--control-borderColor-rest,var(--color-btn-border));
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/* sizes */
|
|
522
|
+
|
|
523
|
+
.ActionListContent.ActionListContent--sizeLarge {
|
|
524
|
+
--actionListContent-paddingBlock: var(--control-large-paddingBlock,calc((2.5rem - 1.25rem) / 2));
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.ActionListContent.ActionListContent--sizeXLarge {
|
|
528
|
+
--actionListContent-paddingBlock: var(--control-xlarge-paddingBlock,calc((3rem - 1.25rem) / 2));
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
/* On pointer:coarse (mobile), all list items are large */
|
|
532
|
+
|
|
533
|
+
@media (pointer: coarse) {
|
|
534
|
+
|
|
535
|
+
.ActionListContent {
|
|
536
|
+
--actionListContent-paddingBlock: var(--control-large-paddingBlock,calc((2.5rem - 1.25rem) / 2));
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
/* if leading/trailing visual, align with first line of content */
|
|
541
|
+
|
|
542
|
+
.ActionListContent.ActionListContent--blockDescription .ActionListItem-visual {
|
|
543
|
+
place-self: start;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/* place children on grid */
|
|
547
|
+
|
|
548
|
+
.ActionListItem-action--leading {
|
|
549
|
+
grid-area: leadingAction;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.ActionListItem-visual--leading {
|
|
553
|
+
grid-area: leadingVisual;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.ActionListItem-visual--trailing {
|
|
557
|
+
grid-area: trailingVisual;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.ActionListItem-action--trailing {
|
|
561
|
+
grid-area: trailingAction;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/* wrapper span
|
|
565
|
+
default block */
|
|
566
|
+
|
|
567
|
+
.ActionListItem-descriptionWrap {
|
|
568
|
+
grid-area: label;
|
|
569
|
+
display: flex;
|
|
570
|
+
flex-direction: column;
|
|
571
|
+
gap: var(--base-size-4,0.25rem);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.ActionListItem-descriptionWrap .ActionListItem-label {
|
|
575
|
+
font-weight: var(--base-text-weight-semibold,600);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/* inline */
|
|
579
|
+
|
|
580
|
+
.ActionListItem-descriptionWrap--inline {
|
|
581
|
+
position: relative;
|
|
582
|
+
flex-direction: row;
|
|
583
|
+
align-items: baseline;
|
|
584
|
+
gap: var(--base-size-8,0.5rem);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/* description */
|
|
588
|
+
|
|
589
|
+
.ActionListItem-description {
|
|
590
|
+
font-size: var(--text-body-size-small,0.75rem);
|
|
591
|
+
font-weight: var(--base-text-weight-normal,400);
|
|
592
|
+
line-height: var(--text-body-lineHeight-small,calc(20/12));
|
|
593
|
+
color: var(--fgColor-muted,var(--color-fg-muted));
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/* helper for grid alignment with multi-line content
|
|
597
|
+
span wrapping svg or text */
|
|
598
|
+
|
|
599
|
+
.ActionListItem-visual,
|
|
600
|
+
.ActionListItem-action {
|
|
601
|
+
display: flex;
|
|
602
|
+
min-height: var(--control-medium-lineBoxHeight,1.25rem);
|
|
603
|
+
color: var(--fgColor-muted,var(--color-fg-muted));
|
|
604
|
+
pointer-events: none;
|
|
605
|
+
fill: var(--fgColor-muted,var(--color-fg-muted));
|
|
606
|
+
align-items: center;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/* text */
|
|
610
|
+
|
|
611
|
+
.ActionListItem-label {
|
|
612
|
+
position: relative;
|
|
613
|
+
font-size: var(--text-body-size-medium,0.875rem);
|
|
614
|
+
font-weight: var(--base-text-weight-normal,400);
|
|
615
|
+
line-height: var(--text-body-lineHeight-medium,calc(20/14));
|
|
616
|
+
color: var(--fgColor-default,var(--color-fg-default));
|
|
617
|
+
grid-area: label;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.ActionListItem-label--truncate {
|
|
621
|
+
overflow: hidden;
|
|
622
|
+
text-overflow: ellipsis;
|
|
623
|
+
white-space: nowrap;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
/* nested lists (only supports 1 level currently)
|
|
627
|
+
target ActionListItem--subItem for padding-left to maintain :active :after state */
|
|
628
|
+
|
|
629
|
+
.ActionListItem--subItem > .ActionListContent > .ActionListItem-label {
|
|
630
|
+
font-size: var(--text-body-size-small,0.75rem);
|
|
631
|
+
line-height: var(--text-body-lineHeight-small,calc(20/12));
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/* trailing action icon button */
|
|
635
|
+
|
|
636
|
+
.ActionListItem--withActions {
|
|
637
|
+
display: flex;
|
|
638
|
+
flex-wrap: nowrap;
|
|
639
|
+
align-items: center;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.ActionListItem-trailingAction {
|
|
643
|
+
border-top-left-radius: 0;
|
|
644
|
+
border-bottom-left-radius: 0;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
/* show trailing action button on hover */
|
|
648
|
+
|
|
649
|
+
.ActionListItem--trailingActionHover .ActionListItem-trailingAction {
|
|
650
|
+
visibility: hidden;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.ActionListItem--trailingActionHover:hover .ActionListItem-trailingAction, .ActionListItem--trailingActionHover:focus-within .ActionListItem-trailingAction {
|
|
654
|
+
visibility: visible;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
/* ActionList::Divider */
|
|
658
|
+
|
|
659
|
+
/* with children */
|
|
660
|
+
|
|
661
|
+
.ActionList-sectionDivider:not(:empty) {
|
|
662
|
+
display: flex;
|
|
663
|
+
padding-inline: var(--actionListContent-paddingBlock);
|
|
664
|
+
padding-block: var(--base-size-8,0.5rem);
|
|
665
|
+
font-size: var(--text-body-size-small,0.75rem);
|
|
666
|
+
line-height: var(--text-body-lineHeight-small,calc(20/12));
|
|
667
|
+
font-weight: var(--base-text-weight-semibold,600);
|
|
668
|
+
color: var(--fgColor-muted,var(--color-fg-muted));
|
|
669
|
+
flex-direction: column;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/* no children */
|
|
673
|
+
|
|
674
|
+
.ActionList-sectionDivider:empty {
|
|
675
|
+
display: block;
|
|
676
|
+
height: var(--borderWidth-thin,max(1px, 0.0625rem));
|
|
677
|
+
padding: 0;
|
|
678
|
+
margin-block-start: calc(var(--base-size-8,0.5rem) - var(--borderWidth-thin,max(1px, 0.0625rem)));
|
|
679
|
+
margin-block-end: var(--base-size-8,0.5rem);
|
|
680
|
+
margin-inline: calc(-1 * var(--base-size-8,0.5rem));
|
|
681
|
+
list-style: none;
|
|
682
|
+
background: var(--borderColor-muted,var(--color-neutral-muted));
|
|
683
|
+
border: 0;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.ActionList-sectionDivider .ActionList-sectionDivider-title {
|
|
687
|
+
font-size: var(--text-body-size-small,0.75rem);
|
|
688
|
+
font-weight: var(--base-text-weight-semibold,600);
|
|
689
|
+
color: var(--fgColor-muted,var(--color-fg-muted));
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.ActionList-sectionDivider--filled {
|
|
693
|
+
margin-block-start: calc(var(--base-size-8,0.5rem) - var(--borderWidth-thin,max(1px, 0.0625rem)));
|
|
694
|
+
margin-block-end: var(--base-size-8,0.5rem);
|
|
695
|
+
margin-inline: calc(-1 * var(--base-size-8,0.5rem));
|
|
696
|
+
background: var(--bgColor-muted,var(--color-canvas-inset));
|
|
697
|
+
border-top: solid var(--borderWidth-thin,max(1px, 0.0625rem)) var(--borderColor-muted,var(--color-neutral-muted));
|
|
698
|
+
border-bottom: solid var(--borderWidth-thin,max(1px, 0.0625rem)) var(--borderColor-muted,var(--color-neutral-muted));
|
|
699
|
+
|
|
700
|
+
/* if no children, treat as divider */
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.ActionList-sectionDivider--filled:empty {
|
|
704
|
+
height: var(--base-size-8,0.5rem);
|
|
705
|
+
box-sizing: border-box;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
.ActionList-sectionDivider--filled:first-child {
|
|
709
|
+
margin-block-start: 0;
|
|
710
|
+
}
|