debugger-panel.class { /* The toolbar and content paint separately so their fills never compound. */ --window-fill-opacity: 92%; --window-shell-fill: color-mix( in srgb, var(--surface-shell) var(--window-fill-opacity), transparent ); --window-content-fill: color-mix( in srgb, var(--surface-content) var(--window-fill-opacity), transparent ); --window-border: 2px solid var(--ink); --window-shadow: 0 4px 16px rgb(0 0 0 / 20%); container: atom-io-devtools / size; position: fixed; z-index: 10000; left: max(0px, calc(100vw - 500px)); top: max(0px, calc(100dvh - 800px)); width: min(500px, 100vw); height: min(800px, 100dvh); display: flex; flex-direction: column; overflow: hidden; border: var(--window-border); box-shadow: var(--window-shadow); color: var(--ink); font: 400 14px/1 "Atom IO Theia", monospace; font-synthesis: none; text-align: left; &[hidden] { display: none; } &[data-open="false"] { width: 32px; height: 32px; border: 0; box-shadow: none; &::before, > [data-resize] { display: none; } > debugger-toolbar > :not([data-testid="open-close-devtools"]) { display: none; } > debugger-toolbar { display: flex; padding: 0; &::before { display: none; } } > debugger-toolbar > [data-testid="open-close-devtools"] { padding: 0; width: 32px; height: 32px; margin: 0; display: grid; place-items: center; touch-action: none; cursor: grab; &:active { cursor: grabbing; } } } > debugger-toolbar { --toolbar-gutter: 10px; --toolbar-gap: 4px; --window-control-size: 28px; position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) repeat(3, var(--window-control-size)); grid-template-rows: 36px auto; gap: var(--toolbar-gap); flex: 0 0 auto; min-width: 0; align-items: center; padding: 6px var(--toolbar-gutter) 0; isolation: isolate; &:has(> [data-store-picker]) { grid-template-columns: 36px minmax(0, 1fr) auto repeat(3, var(--window-control-size)); } &:has([data-store-trigger][aria-expanded="true"]) { z-index: 11; } &::before { content: ""; position: absolute; grid-area: 1 / 1 / 2 / -1; inset: -6px calc(-1 * var(--toolbar-gutter)) calc(-1 * var(--toolbar-gap)); background: var(--window-shell-fill); z-index: -1; pointer-events: none; } } > debugger-toolbar > h1 { display: flex; align-items: center; font-size: 18px; line-height: 32px; font-weight: 200; color: var(--brand-color); white-space: nowrap; overflow: hidden; } > debugger-toolbar > button { align-self: center; height: var(--window-control-size); padding-inline: 0; border-radius: 4px; font-size: 16px; } > debugger-toolbar > [data-store-picker] { position: relative; max-inline-size: min(40cqi, 200px); margin-inline-end: var(--toolbar-gap); } [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); } } [data-store-name] { line-height: 1.3; translate: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } [data-store-caret] { flex: none; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); } [data-store-trigger][aria-expanded="true"] [data-store-caret] { transform: translateY(2px) rotate(225deg); } @container atom-io-devtools (width < 390px) { [data-store-name] { display: none; } [data-store-trigger] { padding-inline: 0; } } [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); } [data-store-menu] > store-menu-options { min-height: 0; overscroll-behavior: contain; overflow: auto; padding: 8px; } [data-store-group] + [data-store-group] { margin-block-start: 6px; padding-block-start: 5px; border-block-start: 1px solid var(--line); } [data-store-group] > p { padding: 4px 8px 6px; color: var(--ink-muted); font: 500 12px/1.25 "Atom IO Theia", monospace; } [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); } } [data-store-option] + [data-store-option] { margin-block-start: 2px; } [data-store-option][aria-current="true"] { background: var(--ink); color: var(--bg-color); &::before { color: inherit; background: currentColor; } &:focus-visible { outline-color: currentColor; } } > debugger-toolbar > nav { grid-column: 1 / -1; grid-row: 2; display: flex; align-self: stretch; min-width: 0; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--toolbar-gutter)); } > debugger-toolbar > nav > span { --tab-gutter-start: 1.5px; --tab-gutter-end: 1.5px; position: relative; display: flex; flex: 1 0 auto; align-items: flex-end; padding-block-start: 4px; padding-inline: var(--tab-gutter-start) var(--tab-gutter-end); overflow: clip; &:first-child { --tab-gutter-start: 7px; } &:last-child { --tab-gutter-end: 7px; } &::before, &::after { position: absolute; inset-block-end: 0; height: 1px; background: var(--ink-muted); z-index: 2; pointer-events: none; } &::after { content: ""; inset-inline: 0; } /* The content edge covers inactive tabs and joins the active tab's side borders. */ &:has(> button[aria-selected="true"]) { &::before { content: ""; inset-inline-start: 0; width: calc(var(--tab-gutter-start) + 1px); } &::after { inset-inline-start: auto; width: calc(var(--tab-gutter-end) + 1px); } } } > debugger-toolbar > nav > span > button { position: relative; flex: 1 0 auto; white-space: nowrap; height: 24px; margin-top: 4px; padding: 0 7px; border: 1px solid var(--line); border-bottom-color: transparent; border-radius: 8px 8px 0 0; background: color-mix( in srgb, var(--surface-inactive) var(--window-fill-opacity), transparent ); color: var(--ink-muted); &::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; /* The slot clips this fill to the area surrounding the tab. */ box-shadow: 0 0 0 16px var(--window-shell-fill); pointer-events: none; } } > debugger-toolbar > nav > span > button[aria-selected="true"] { z-index: 1; height: 28px; margin-top: 0; color: var(--ink-strong); background: var(--window-content-fill); border-color: var(--ink-muted); border-bottom-color: transparent; font-weight: 500; } > debugger-content { background: var(--window-content-fill); display: flex; flex: 1; min-height: 0; flex-direction: column; overflow: hidden; } > debugger-content:focus-visible { outline: 2px solid var(--ink-muted); outline-offset: -2px; } > debugger-content:not([data-view="ecology"]) { padding-top: 4px; } > debugger-toolbar > [data-drag-handle] { appearance: none; background: transparent; display: grid; place-items: center; width: 36px; height: 32px; padding: 0; touch-action: none; cursor: move; } > [data-resize] { position: absolute; padding: 0; min-width: 0; background: transparent; touch-action: none; z-index: 2; } > [data-resize][data-resize="n"], > [data-resize][data-resize="s"] { left: 8px; right: 8px; height: 6px; cursor: ns-resize; } > [data-resize][data-resize="e"], > [data-resize][data-resize="w"] { top: 8px; bottom: 8px; width: 6px; height: auto; cursor: ew-resize; } > [data-resize][data-resize="n"] { top: 0; } > [data-resize][data-resize="s"] { bottom: 0; } > [data-resize][data-resize="e"] { right: 0; } > [data-resize][data-resize="w"] { left: 0; } > [data-resize][data-resize="ne"], [data-resize][data-resize="nw"], [data-resize][data-resize="se"], [data-resize][data-resize="sw"] { width: 9px; height: 9px; } > [data-resize][data-resize="ne"] { top: 0; right: 0; cursor: nesw-resize; } > [data-resize][data-resize="nw"] { top: 0; left: 0; cursor: nwse-resize; } > [data-resize][data-resize="se"] { bottom: 0; right: 0; cursor: nwse-resize; } > [data-resize][data-resize="sw"] { bottom: 0; left: 0; cursor: nesw-resize; } &[data-open="false"] [data-resize] { display: none; } @media (max-width: 650px) { > debugger-toolbar > nav > span > button { font-size: 12px; padding: 0 4px; } } [data-remote-access="inspect"] { background: var(--window-content-fill); color: var(--ink-muted); padding: 5px 8px; line-height: 18px; } &::before, [data-store-menu]::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 10; opacity: 0.35; mix-blend-mode: soft-light; background-repeat: repeat; background-size: 1024px; background-position: center; @media (prefers-color-scheme: light) { opacity: 0.12; mix-blend-mode: multiply; } background-image: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%202048%202048%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%20%0A%20%20%20%20%20%20%3Cfilter%20id%3D%27noiseFilter%27%3E%0A%20%20%20%20%20%20%20%20%3CfeTurbulence%20%0A%20%20%20%20%20%20%20%20%20%20type%3D%27fractalNoise%27%20%0A%20%20%20%20%20%20%20%20%20%20baseFrequency%3D%270.65%27%20%0A%20%20%20%20%20%20%20%20%20%20numOctaves%3D%273%27%20%0A%20%20%20%20%20%20%20%20%20%20stitchTiles%3D%27stitch%27%2F%3E%0A%20%20%20%20%20%20%3C%2Ffilter%3E%0A%20%20%20%20%20%20%0A%20%20%20%20%20%20%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23noiseFilter%29%27%2F%3E%0A%20%20%20%20%3C%2Fsvg%3E"); } }