store-picker-control.class { position: relative; max-inline-size: min(40cqi, 200px); margin-inline-end: var(--toolbar-gap); > button[data-store-trigger] { display: flex; align-items: center; justify-content: center; gap: 10px; height: var(--window-control-size); min-width: var(--window-control-size); max-width: 100%; padding-inline: 9px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--ink-muted); &:hover, &[aria-expanded="true"] { color: var(--ink-strong); } &[aria-expanded="true"] { background: var(--bg-hard-1); border-color: color-mix(in srgb, var(--line) 70%, transparent); } } > button > span[data-store-name] { line-height: 1.3; translate: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } > button > span[data-store-caret] { flex: none; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); } > button[data-store-trigger][aria-expanded="true"] > span[data-store-caret] { transform: translateY(2px) rotate(225deg); } @container atom-io-devtools (width < 390px) { > button > span[data-store-name] { display: none; } > button[data-store-trigger] { padding-inline: 0; } } > section[data-store-menu] { position: absolute; z-index: 3; inset-block-start: calc(100% + 9px); inset-inline-end: 0; width: min( 256px, calc( 100cqi - 3 * var(--window-control-size) - 4 * var(--toolbar-gap) - 2 * var(--toolbar-gutter) ) ); max-height: min(19rem, calc(100cqh - 56px)); display: flex; flex-direction: column; overflow: clip; border: var(--window-border); border-radius: 0; background: var(--window-content-fill); backdrop-filter: blur(4px); box-shadow: var(--window-shadow); &::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 10; opacity: var(--window-noise-opacity); mix-blend-mode: var(--window-noise-blend); background: var(--window-noise-background); } > store-menu-options { min-height: 0; overscroll-behavior: contain; overflow: auto; padding: 8px; > section[data-store-group] { & + section[data-store-group] { margin-block-start: 6px; padding-block-start: 5px; border-block-start: 1px solid var(--line); } > p { padding: 4px 8px 6px; color: var(--ink-muted); font: 500 12px/1.25 "Atom IO Theia", monospace; } > button[data-store-option] { position: relative; display: block; width: 100%; height: auto; min-height: 32px; /* Center Theia's glyphs against the marker. */ padding-block: 9px 5px; padding-inline: 24px 8px; text-align: start; overflow-wrap: anywhere; line-height: 1.3; &::before { content: ""; position: absolute; inset-inline-start: 8px; inset-block-start: calc(50% - 4px); box-sizing: border-box; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; color: var(--ink-muted); } & + button[data-store-option] { margin-block-start: 2px; } &[aria-current="true"] { background: var(--ink); color: var(--bg-color); &::before { color: inherit; background: currentColor; } &:focus-visible { outline-color: currentColor; } } } } } } }