Files
pipelines/web/shell.css
T
alan d130615fae web: put the work first and the audit evidence behind a door
- Turn files (input/memory/output/session) are system artifacts now: they are
  never tiles in the run or stage galleries. Shared public files are attributed
  to the visit that first recorded them, so a run counts 3 stage artifacts, not
  one copy of each per later stage.
- Audit & debug opens a dialog with vertical Input / Output / Memory / Session /
  Definition tabs, for a visit from the stage pane or the run Summary.
- Run tabs are Summary / Graph / Timeline; Input and Output are Summary sections
  with Artifacts, Files changed and Audit. Each stage pane gains Files changed.
- Artifacts gain a gallery/list switch (remembered) and full-name wrapping; the
  copy/share actions are hover-or-focus icon buttons.
- Status badge above the run title; no live badges on the run surfaces. The runs
  list leads with the pipeline name and the stored task title beneath it.
- Chat rows: title + coloured status word only, then directory, then model; no
  operator or closed chips, no dot. The more/star cluster is a hover/focus
  overlay so the title uses the row's width, and an open menu stacks above rows.
  Closed chats collapse behind a chevron. Sessions can be starred locally and
  sort in a Starred group. The chat header no longer repeats status/dir/model.
- A visible rail divider separates Search from the destinations; the page has a
  real favicon/apple-touch icon and the rail brand wears it.
- Smoke updated: no live badges, 3 detail tabs, field hits open Summary sections,
  closed chats expand for checks, the fixture viewer uses shot.png/missing.txt
  and the audit for markdown.
2026-10-20 01:00:01 +01:00

582 lines
15 KiB
CSS

/* ===========================================================================
The persistent app shell (L2/L3/L4): 200px destination rail + workspace on
wide; workspace + bottom destination bar on narrow. The document never
scrolls: every pane owns its one scroller.
=========================================================================== */
html,
body {
height: 100%;
overflow: hidden;
}
body {
height: 100vh;
height: 100dvh;
}
.icon-sprite {
position: absolute;
width: 0;
height: 0;
overflow: hidden;
}
.icon {
width: var(--icon-rail);
height: var(--icon-rail);
flex: none;
fill: none;
}
/* The first focusable on every route: invisible until focused. */
.skip-link {
position: fixed;
z-index: calc(var(--layer-toast) + 1);
top: 8px;
left: 8px;
padding: 8px 12px;
border-radius: var(--radius-control);
background: var(--color-elevated);
color: var(--color-text);
border: 1px solid var(--color-border);
transform: translateY(-160%);
}
.skip-link:focus {
transform: none;
}
.app-root {
display: flex;
flex-direction: column;
height: 100vh;
height: 100dvh;
min-height: 0;
overflow: hidden;
background: var(--color-bg);
}
/* ---- Workspace ---------------------------------------------------------- */
.workspace {
flex: 1 1 auto;
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
outline: none;
}
/* The destination tabpanel inside the main landmark: it takes the workspace's
height and never scrolls itself (its panes own their scrollers). */
.pane-main {
flex: 1 1 auto;
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
outline: none;
}
.content {
flex: 1 1 auto;
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.pane-layout {
flex: 1 1 auto;
min-width: 0;
min-height: 0;
display: grid;
grid-template-columns: minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr);
overflow: hidden;
}
.list-pane,
.detail-pane {
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.list-pane { background: var(--color-surface); }
.detail-pane { background: var(--color-bg); }
/* One scroller per pane. */
.list-scroll,
.pane-scroll,
.settings-pane {
flex: 1 1 auto;
min-height: 0;
min-width: 0;
overflow-y: auto;
overflow-x: hidden;
overscroll-behavior: contain;
scrollbar-gutter: stable;
}
.list-pane > .list,
.list-pane > .gallery {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
background: var(--color-surface);
}
/* A detail body that scrolls inside the pane; the section rail/strip stays
outside it. */
.detail-pane > .pane-scroll > .detail,
.detail-pane > .pane-scroll > .detail.run-detail {
min-height: 100%;
padding: var(--space-s);
background: transparent;
border: 0;
border-radius: 0;
}
.detail-pane > .pane-scroll > .detail > h1,
.detail-pane > .pane-scroll > .detail > .run-tab-body > h1 {
margin-top: 0;
}
/* Narrow Back-to-list controls. */
.pane-back {
display: none;
flex: 0 0 auto;
padding: var(--space-xs) var(--space-m) 0;
background: var(--color-bg);
}
.pane-back button {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: var(--density-control-height-small);
font-size: 13px;
color: var(--color-muted);
background: transparent;
border-color: transparent;
}
.pane-back button:hover { color: var(--color-text); background: var(--tint-hover); }
/* ---- Destination rail (wide) ------------------------------------------- */
.app-rail { display: none; }
.rail-brand {
display: flex;
align-items: center;
gap: var(--space-xs);
min-height: 48px;
padding: 0 var(--space-s);
margin-bottom: var(--space-xs);
color: var(--color-text);
font: var(--type-title-small);
letter-spacing: var(--tracking-tight);
}
.rail-brand-icon { width: 26px; height: 26px; flex: none; border-radius: 7px; display: block; }
.rail-brand-mark {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border-radius: var(--radius-control);
background: var(--tint-selected-strong);
color: var(--color-accent);
font-size: 13px;
font-weight: var(--weight-semibold);
}
.rail-destinations,
.rail-tablist {
display: flex;
flex-direction: column;
gap: var(--space-3xs);
min-width: 0;
}
.rail-item,
.rail-search {
display: flex;
align-items: center;
gap: var(--space-s);
width: 100%;
min-height: var(--density-touch-target);
padding: 0 var(--space-s);
border: 0;
border-radius: var(--radius-control);
background: transparent;
color: var(--color-muted);
text-align: left;
text-decoration: none;
font-size: 14px;
font-weight: var(--weight-medium);
}
.rail-item:hover,
.rail-search:hover {
background: var(--tint-hover);
color: var(--color-text);
}
.rail-item[aria-selected="true"] {
position: relative;
background: var(--tint-selected);
color: var(--color-text);
font-weight: var(--weight-semibold);
}
.rail-item[aria-selected="true"]::before {
content: "";
position: absolute;
left: 0;
top: 10px;
bottom: 10px;
width: 3px;
border-radius: 3px;
background: var(--color-accent);
}
.rail-item .icon,
.rail-search .icon { color: currentColor; }
/* Search opens a modal, so it leads the rail rather than squatting at the
bottom next to the status; Settings is the last destination. */
.rail-search { margin: var(--space-xs) 0 var(--space-s); }
.rail-search[aria-expanded="true"] { background: var(--tint-selected); color: var(--color-text); }
.rail-badge {
margin-left: auto;
min-width: 18px;
height: 18px;
padding: 0 5px;
border-radius: 9px;
background: var(--color-accent);
color: var(--color-bg);
font-size: 11px;
font-weight: var(--weight-semibold);
font-variant-numeric: tabular-nums;
line-height: 18px;
text-align: center;
}
.rail-badge[hidden] { display: none; }
.rail-divider {
height: 1px;
flex: none;
margin: var(--space-s) var(--space-xs);
background: var(--color-divider);
}
/* The Search / destinations boundary needs to read as a separator, not vanish. */
.rail-divider-visible { background: var(--color-border); margin: var(--space-xs) var(--space-s); }
.rail-sections { display: none; min-height: 0; }
.rail-sections.has-sections { display: block; }
.rail-heading {
margin: 0 0 var(--space-2xs);
padding: 0 var(--space-s);
color: var(--color-faint);
font: var(--type-label);
letter-spacing: var(--tracking-eyebrow);
text-transform: uppercase;
}
.rail-tab {
display: flex;
align-items: center;
gap: var(--space-xs);
width: 100%;
min-height: var(--density-control-height);
padding: 0 var(--space-s);
border: 0;
border-radius: var(--radius-control);
background: transparent;
color: var(--color-muted);
text-align: left;
font-size: 13px;
}
.rail-tab:hover { background: var(--tint-hover); color: var(--color-text); }
.rail-tab[aria-selected="true"] {
background: var(--tint-selected);
color: var(--color-text);
font-weight: var(--weight-semibold);
box-shadow: inset 2px 0 0 var(--color-accent);
}
.rail-footer {
margin-top: auto;
padding-top: var(--space-s);
border-top: 1px solid var(--color-divider);
}
/* The compact dot+word status control; always a Settings shortcut. */
.shell-status {
display: flex;
align-items: center;
gap: var(--space-xs);
width: 100%;
min-height: var(--density-control-height);
padding: 0 var(--space-s);
border: 0;
border-radius: var(--radius-control);
background: transparent;
color: var(--color-muted);
font-size: 12px;
text-align: left;
}
.shell-status:hover { background: var(--tint-hover); color: var(--color-text); }
.shell-status-dot {
width: 8px;
height: 8px;
flex: none;
border-radius: 50%;
background: currentColor;
}
.shell-status[data-state="connected"] { color: var(--color-ok); }
.shell-status[data-state="connecting"] { color: var(--color-warn); }
.shell-status[data-state="disconnected"] { color: var(--color-bad); }
.shell-status[data-state="idle"],
.shell-status[data-state="unconfigured"] { color: var(--color-muted); }
.shell-status-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---- Section strip (narrow) -------------------------------------------- */
.section-strip {
display: flex;
flex: 0 0 auto;
align-items: stretch;
gap: 0;
min-width: 0;
padding: 0 var(--space-xs);
background: var(--color-surface);
border-top: 1px solid var(--color-divider);
overflow-x: auto;
overflow-y: hidden;
overscroll-behavior-x: contain;
scrollbar-width: none;
}
.section-strip::-webkit-scrollbar { display: none; }
.section-strip:empty { display: none; }
/* Real tabs, not chips: flush cells on a bar, the selected one underlined and
filled with the panel's own surface so it reads as connected to the content. */
.strip-tab {
position: relative;
flex: 0 0 auto;
min-height: var(--density-touch-target);
display: inline-flex;
align-items: center;
padding: 0 var(--space-s);
border: 0;
border-radius: 0;
background: transparent;
color: var(--color-muted);
font-size: 12.5px;
font-weight: var(--weight-medium);
white-space: nowrap;
}
.strip-tab:hover { background: var(--tint-hover); color: var(--color-text); }
.strip-tab[aria-selected="true"] {
color: var(--color-text);
font-weight: var(--weight-semibold);
background: var(--color-bg);
box-shadow: inset 0 -2px 0 var(--color-accent);
}
.strip-tab:focus-visible { outline-offset: -3px; }
/* ---- Bottom destination bar (narrow) ----------------------------------- */
.destination-dock {
flex: 0 0 auto;
display: flex;
flex-direction: column;
gap: 2px;
padding: 2px var(--space-xs) calc(4px + env(safe-area-inset-bottom, 0px));
background: var(--color-surface);
border-top: 1px solid var(--color-divider);
}
.dock-status {
align-self: flex-start;
width: auto;
min-height: 26px;
padding: 0 var(--space-xs);
font-size: 11px;
}
.dock-row { display: flex; align-items: stretch; gap: 2px; min-width: 0; }
.dock-tabs { display: flex; flex: 1 1 auto; min-width: 0; gap: 2px; }
.dock-item {
position: relative;
flex: 1 1 0;
min-width: 0;
min-height: 48px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
padding: 4px 2px;
border: 0;
border-radius: var(--radius-control);
background: transparent;
color: var(--color-muted);
text-decoration: none;
font-size: 11px;
line-height: 14px;
}
.dock-item .icon { width: var(--icon-list); height: var(--icon-list); }
.dock-item-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-item:hover { background: var(--tint-hover); color: var(--color-text); }
.dock-item[aria-selected="true"] {
background: var(--tint-selected);
color: var(--color-accent);
font-weight: var(--weight-semibold);
}
.dock-badge {
position: absolute;
top: 3px;
right: 6px;
min-width: 16px;
height: 16px;
padding: 0 4px;
border-radius: var(--radius-control);
background: var(--color-accent);
color: var(--color-bg);
font-size: 10px;
font-weight: var(--weight-semibold);
font-variant-numeric: tabular-nums;
line-height: 16px;
text-align: center;
}
.dock-badge[hidden] { display: none; }
.dock-search {
flex: 0 0 56px;
min-height: 48px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
border: 0;
border-radius: var(--radius-control);
background: transparent;
color: var(--color-muted);
font-size: 11px;
}
.dock-search .icon { width: var(--icon-list); height: var(--icon-list); }
.dock-search[aria-expanded="true"] { background: var(--tint-selected); color: var(--color-text); }
/* ---- Shared pane text --------------------------------------------------- */
.detail-title {
margin: 0 0 var(--space-xs);
font: var(--type-title);
letter-spacing: var(--tracking-tight);
overflow-wrap: anywhere;
}
.pane-head-actions { display: flex; gap: var(--space-2xs); align-items: center; flex: none; }
.pane-head-text { min-width: 0; }
.search-field-row { display: flex; gap: var(--space-xs); align-items: center; min-width: 0; }
.search-field-row .search-input { flex: 1 1 auto; }
.run-row-meta,
.metric-value,
.timeline-duration,
.artifact-size { font-variant-numeric: tabular-nums; }
.search-host {
flex: 0 0 auto;
min-width: 0;
background: var(--color-surface);
border-bottom: 1px solid var(--color-divider);
}
.search-host:empty { display: none; }
.search-host .search-panel { padding: var(--space-xs) var(--space-s); }
.search-input { flex: 1 1 240px; min-width: 0; }
/* ---- Wide layout (one breakpoint, 600px) -------------------------------- */
@media (min-width: 600px) {
.app-root { flex-direction: row; }
.app-rail {
display: flex;
flex-direction: column;
flex: 0 0 var(--layout-rail);
width: var(--layout-rail);
min-height: 0;
padding: var(--space-s) var(--space-xs);
background: var(--color-surface);
border-right: 1px solid var(--color-divider);
}
.workspace {
padding-top: env(safe-area-inset-top, 0px);
}
.app-rail {
/* Below 900px the rail gives up width it does not need so the detail pane
keeps a readable measure at the 600px switch. */
flex-basis: 168px;
width: 168px;
}
.pane-layout {
/* A grid track is sized from its MAX before the free track is resolved, so
minmax(200px, 360px) beside 1fr took 360px and clipped the detail to 40px
at 600px. Cap the list where the workspace is narrow; widen it only when
there is room for both. */
grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
}
.list-pane { border-right: 1px solid var(--color-divider); }
.pane-back { display: none; }
/* The detail's sections belong with the detail, not with the destinations:
on a wide screen they are a tab row above the detail body. The rail keeps
only the destinations. (Narrow keeps the thumb-zone strip at the bottom.) */
.rail-sections,
.rail-sections.has-sections { display: none; }
.section-strip {
order: -1;
border-top: 0;
border-bottom: 1px solid var(--color-divider);
background: var(--color-surface);
padding: 0 var(--space-s);
}
.destination-dock { display: none; }
}
@media (min-width: 900px) {
.app-rail { flex-basis: var(--layout-rail); width: var(--layout-rail); }
.pane-layout {
grid-template-columns: minmax(220px, var(--layout-list-max)) minmax(0, 1fr);
}
}
/* ---- Narrow layout ------------------------------------------------------ */
@media (max-width: 599px) {
.pane-layout { position: relative; }
.pane-layout > .list-pane,
.pane-layout > .detail-pane {
grid-area: 1 / 1;
display: none;
}
.pane-layout[data-active-pane="list"] > .list-pane,
.pane-layout[data-active-pane="detail"] > .detail-pane {
display: flex;
}
.pane-back { display: block; }
.pane-head { padding: var(--space-xs) var(--space-s); }
.detail-pane > .pane-scroll > .detail { padding: var(--space-s); }
.settings-pane > .settings { padding: var(--space-s) var(--space-s) var(--space-l); }
}