571 lines
22 KiB
CSS
571 lines
22 KiB
CSS
/* The unified changes tab: the 36px lens header + Git lens + session lens +
|
||
the shared preview pane. Token-only by contract (`tests/theme.spec.ts` scans
|
||
every module sheet) and cut to the plugin's native scale — 12px body, 11px
|
||
meta, 28px rows/controls, 2/3/4px radii (see
|
||
docs/plans/2026-09-27-files-changes-uiux.md §1).
|
||
|
||
The generic chrome — icon buttons, chips, section bands, badges, empty /
|
||
loading / error lines and the confirm dialog — now lives in
|
||
`src/client/ui/kit.module.css`; this sheet keeps only layout and the
|
||
surfaces unique to this tab. */
|
||
|
||
.root { display: flex; flex-direction: column; min-height: 0; height: 100%; background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); font: var(--dsw-font-xxs-12); }
|
||
|
||
/* ── Lens header ───────────────────────────────────────────────────────── */
|
||
|
||
.head { flex: none; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 12px; border-bottom: 1px solid var(--dsw-alias-border-l1); }
|
||
.headAction { margin-left: auto; }
|
||
|
||
/* ── Git lens (the former git panel) ───────────────────────────────────── */
|
||
|
||
/* Changes and Graph share one scroll body; branch/sync stays outside it. */
|
||
.git {
|
||
flex: 1;
|
||
min-height: 0;
|
||
min-width: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
padding-top: 6px;
|
||
}
|
||
|
||
/* The inner scroll body: the change groups + the history. It owns both scroll
|
||
axes' policy — vertical scrolling for the list, clipping for anything wider
|
||
than the panel (tab pages never scroll horizontally: content wraps or
|
||
truncates to the panel width instead of panning sideways). */
|
||
.gitScroll {
|
||
flex: 1;
|
||
min-height: 0;
|
||
min-width: 0;
|
||
overflow-y: auto;
|
||
overflow-x: hidden;
|
||
}
|
||
|
||
.scmHeader { display: flex; align-items: center; min-height: 28px; padding: 0 6px; }
|
||
.scmDisclosure { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; min-height: 28px; padding: 0; border: none; background: transparent; color: var(--dsw-alias-label-primary); font: var(--dsw-font-xxs-strong-12); text-align: left; cursor: pointer; }
|
||
.scmActions { display: flex; align-items: center; gap: 2px; opacity: 0; }
|
||
.scmHeader:hover .scmActions, .scmHeader:focus-within .scmActions { opacity: 1; }
|
||
@media (hover: none) { .scmActions { opacity: 1; } }
|
||
|
||
.gitFooter { flex: none; min-width: 0; border-top: 1px solid var(--dsw-alias-border-l1); background: var(--dsw-alias-bg-base); }
|
||
.footerRow { display: flex; align-items: center; min-width: 0; min-height: 28px; }
|
||
.branchMenu { display: flex; flex: 1; min-width: 0; }
|
||
.branchButton, .syncButton { display: flex; align-items: center; gap: 5px; min-width: 0; min-height: 28px; padding: 3px 8px; border: none; background: transparent; color: var(--dsw-alias-label-secondary); font: var(--dsw-font-xxxs-11); cursor: pointer; }
|
||
.branchButton { flex: 1; text-align: left; }
|
||
.syncButton { max-width: 55%; }
|
||
.branchButton svg, .syncButton svg { flex: none; }
|
||
.branchButton span, .syncButton span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.branchButton:hover:not(:disabled), .syncButton:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover); }
|
||
.branchButton:disabled, .syncButton:disabled { opacity: 0.45; cursor: default; }
|
||
|
||
/* ── Change groups (one directory tree each) ───────────────────────────── */
|
||
|
||
/* One group is its own block so its sticky header is released exactly when the
|
||
group scrolls past (two headers in one block would stack on top of each
|
||
other). */
|
||
.group { display: flex; flex-direction: column; padding-bottom: 2px; }
|
||
|
||
/* The header band stays readable while its group scrolls under it. The extra
|
||
class keeps the opaque fill above the kit's transparent band no matter which
|
||
sheet lands first in the bundle. */
|
||
.group .groupHeader {
|
||
gap: 4px;
|
||
position: sticky;
|
||
top: 0;
|
||
z-index: 2;
|
||
background: var(--dsw-alias-bg-base);
|
||
}
|
||
|
||
/* Group counts match the action height; directory rows need no badge. */
|
||
.countPill {
|
||
flex: none;
|
||
width: 20px;
|
||
height: 20px;
|
||
border-radius: 50%;
|
||
background: var(--dsw-alias-interactive-bg-hover);
|
||
color: var(--dsw-alias-label-secondary);
|
||
font: var(--dsw-font-xxxs-strong-11);
|
||
line-height: 20px;
|
||
text-align: center;
|
||
font-size: 10px;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
/* A band action (stage all / unstage all) stays out of the way until the band
|
||
is hovered or holds focus — a keyboard tab reveals it too. Touch devices
|
||
have no hover, so there it is always visible. */
|
||
.group .headerAction { opacity: 0; transition: opacity 120ms var(--ds-ease-in-out); }
|
||
.group .groupHeader:hover .headerAction,
|
||
.group .groupHeader:focus-within .headerAction { opacity: 1; }
|
||
@media (hover: none) {
|
||
.group .headerAction { opacity: 1; }
|
||
}
|
||
|
||
/* Indent row contents only; hover bands span the full panel. */
|
||
.tree { display: flex; flex-direction: column; }
|
||
|
||
/* A directory row's disclosure button. It shares the `.row` band with a file
|
||
row (the band owns the hover/selected fill and the trailing action), so this
|
||
button is only the row's main hit area. */
|
||
.dirRow {
|
||
flex: 1;
|
||
min-width: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
border: none;
|
||
background: transparent;
|
||
padding: 0;
|
||
color: var(--dsw-alias-label-secondary);
|
||
font: inherit;
|
||
cursor: pointer;
|
||
text-align: left;
|
||
}
|
||
.dirRow:focus-visible { outline: 2px solid var(--dsw-alias-interactive-bg-hover-accent); outline-offset: -1px; }
|
||
|
||
.chevron { flex: none; display: inline-flex; color: var(--dsw-alias-label-tertiary); transition: transform 140ms var(--ds-ease-in-out); }
|
||
.chevron[data-open='true'] { transform: rotate(90deg); }
|
||
|
||
.dirName { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--dsw-font-xxs-12); }
|
||
|
||
/* One changed file: file artwork + porcelain badge + name + the trailing
|
||
action (revealed on hover/focus). */
|
||
.row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
position: relative;
|
||
min-height: 28px;
|
||
padding: 0 6px;
|
||
animation: dsh-row-in 150ms var(--ds-ease-in-out);
|
||
}
|
||
.row:hover { background: var(--dsw-alias-interactive-bg-hover); }
|
||
/* Selected and hovered are different pictures: the selected row keeps the
|
||
active fill AND the design's 2px accent marker — a pseudo element inset 4px
|
||
(the tasks page's own recipe), so the row stays shadowless and no metric
|
||
shifts between rows. */
|
||
.row[data-selected='true'],
|
||
.opRow[data-selected='true'],
|
||
.logRow[data-selected='true'] {
|
||
background: var(--dsw-alias-interactive-bg-active);
|
||
}
|
||
|
||
.row[data-selected='true']::before,
|
||
.opRow[data-selected='true']::before,
|
||
.logRow[data-selected='true']::before {
|
||
content: '';
|
||
position: absolute;
|
||
left: 0;
|
||
top: 4px;
|
||
bottom: 4px;
|
||
width: 2px;
|
||
border-radius: 1px;
|
||
background: var(--dsw-alias-state-business-primary);
|
||
}
|
||
|
||
.rowMain {
|
||
flex: 1;
|
||
min-width: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
border: none;
|
||
background: transparent;
|
||
padding: 0;
|
||
cursor: pointer;
|
||
text-align: left;
|
||
}
|
||
.rowMain:focus-visible { outline: 2px solid var(--dsw-alias-interactive-bg-hover-accent); outline-offset: -1px; }
|
||
|
||
/* The row's icons are content at the plugin's own scale, not chrome. */
|
||
.rowIcon { flex: none; display: inline-flex; align-items: center; }
|
||
|
||
.rowName { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--dsw-font-xxs-12); color: var(--dsw-alias-label-primary); }
|
||
.rowPath { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--dsw-font-xxxs-11); color: var(--dsw-alias-label-tertiary); }
|
||
|
||
/* A row's / band's line counts (#131): `+N −M` in the diff pane's own ink (the
|
||
`.statAdd` / `.statDel` atoms of `diff.module.css`, reused rather than
|
||
re-coloured here). Tabular figures keep the column from shifting between
|
||
readings, and the code face matches every other number in the tab. Size and
|
||
line height come from the smallest host font token (11px/14px) — the family
|
||
is overridden back to the code stack right after the shorthand, which is the
|
||
order the shorthand requires. */
|
||
.lineCounts {
|
||
flex: none;
|
||
display: inline-flex;
|
||
gap: 5px;
|
||
font: var(--dsw-font-xxxs-11);
|
||
font-family: var(--ds-font-family-code, monospace);
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
/* The stand-ins for "no numbers exist": a binary change and an untracked (new)
|
||
file. Quiet tertiary ink — they are a state, not a measurement. */
|
||
.lineNote {
|
||
flex: none;
|
||
font: var(--dsw-font-xxxs-11);
|
||
color: var(--dsw-alias-label-tertiary);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
/* Match both glyphs and keep their hover boxes smaller than the 28px row. */
|
||
.row .rowAction, .group .headerAction { width: 20px; height: 20px; }
|
||
|
||
/* The row action is invisible until its row is hovered or holds focus (a
|
||
keyboard tab lands on it and reveals it). The three-class form outranks the
|
||
kit's own disabled rule, which would otherwise pin every button to a dim but
|
||
visible 0.4 whenever a git action is in flight. */
|
||
.row:not(:hover):not(:focus-within) .rowAction { opacity: 0; }
|
||
@media (hover: none) {
|
||
.row:not(:hover):not(:focus-within) .rowAction { opacity: 1; }
|
||
}
|
||
|
||
/* ── Message draft (inside Changes) ─────────────────────────────────────── */
|
||
|
||
.messageBox { display: flex; padding: 4px 8px 8px; }
|
||
|
||
/* Desktop's official Input frame, with a growing textarea instead of input. */
|
||
.commitInputWrap {
|
||
position: relative;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
flex: 1;
|
||
min-width: 0;
|
||
min-height: 32px;
|
||
box-sizing: border-box;
|
||
padding: 0 4px 0 8px;
|
||
border: 0.5px solid var(--dsw-alias-border-l4);
|
||
border-radius: var(--dsw-radius-md);
|
||
background: var(--dsw-alias-bg-layer-1);
|
||
}
|
||
.commitInputWrap:focus-within { border-color: var(--dsw-alias-state-business-primary); }
|
||
|
||
.commitInput {
|
||
flex: 1;
|
||
min-width: 0;
|
||
height: 22px;
|
||
min-height: 22px;
|
||
max-height: 132px;
|
||
padding: 0;
|
||
margin: 4px 0;
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--dsw-alias-label-primary);
|
||
font: var(--dsw-font-s-14);
|
||
line-height: 22px;
|
||
resize: none;
|
||
overflow-y: hidden;
|
||
outline: none;
|
||
}
|
||
|
||
.commitInput::placeholder {
|
||
color: var(--dsw-alias-label-dimmed);
|
||
}
|
||
|
||
.commitInput:disabled {
|
||
opacity: 0.5;
|
||
}
|
||
.commitInput[data-message-busy='true'] { color: transparent; caret-color: transparent; }
|
||
|
||
/* Busy text in the input's place: the running-status sweep used by the side
|
||
chat (gradient text scrolled by background-position). The real placeholder
|
||
is cleared while busy, so the two never overlap. */
|
||
.commitBusyText {
|
||
position: absolute;
|
||
inset: 0 38px 0 0;
|
||
display: flex;
|
||
align-items: center;
|
||
/* Match the frame's inset while keeping the generate button unobscured. */
|
||
padding: 0 8px;
|
||
pointer-events: none;
|
||
font: var(--dsw-font-s-14);
|
||
line-height: 22px;
|
||
background-image: linear-gradient(
|
||
90deg,
|
||
var(--dsw-alias-label-tertiary) 0%,
|
||
var(--dsw-alias-label-primary) 50%,
|
||
var(--dsw-alias-label-tertiary) 100%
|
||
);
|
||
background-size: 200% 100%;
|
||
-webkit-background-clip: text;
|
||
background-clip: text;
|
||
color: transparent;
|
||
animation: commitSweep 2.6s linear infinite;
|
||
}
|
||
|
||
@keyframes commitSweep {
|
||
from { background-position: 200% 0; }
|
||
to { background-position: -200% 0; }
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.commitBusyText { animation: none; }
|
||
}
|
||
|
||
/* Generate fills the draft only. Inline on the input's right edge. */
|
||
.suggestButton {
|
||
flex: none;
|
||
align-self: flex-start;
|
||
margin-top: 3px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 24px;
|
||
height: 24px;
|
||
padding: 0;
|
||
border: none;
|
||
border-radius: 8px;
|
||
background: transparent;
|
||
color: var(--dsw-alias-label-tertiary);
|
||
cursor: pointer;
|
||
}
|
||
|
||
.suggestButton:hover:not(:disabled) {
|
||
background: var(--dsw-alias-interactive-bg-hover);
|
||
color: var(--dsw-alias-label-primary);
|
||
}
|
||
|
||
.suggestButton:disabled {
|
||
opacity: 0.45;
|
||
cursor: default;
|
||
}
|
||
|
||
.suggestBusy {
|
||
color: var(--dsw-alias-interactive-bg-hover-accent);
|
||
animation: commitSuggestPulse 1.2s ease-in-out infinite;
|
||
}
|
||
|
||
@keyframes commitSuggestPulse {
|
||
50% { opacity: 0.45; }
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.suggestBusy { animation: none; }
|
||
}
|
||
|
||
/* The Git card's pinned-model setting (rendered through settings.render). */
|
||
.commitModel {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
padding: 8px 12px;
|
||
}
|
||
|
||
.commitModelTitle {
|
||
font: var(--dsw-font-xxs-strong-12);
|
||
color: var(--dsw-alias-label-primary);
|
||
}
|
||
|
||
.commitModelDesc {
|
||
font: var(--dsw-font-xxs-12);
|
||
color: var(--dsw-alias-label-tertiary);
|
||
}
|
||
|
||
/* Follow-the-conversation switch: a native checkbox (real semantics and
|
||
focus) beside its label, matching the side card's switch rows. */
|
||
.commitModelRow {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
}
|
||
|
||
.commitModelSwitch {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
font: var(--dsw-font-xxs-12);
|
||
color: var(--dsw-alias-label-primary);
|
||
cursor: pointer;
|
||
}
|
||
|
||
.commitModelSwitch input {
|
||
accent-color: var(--dsw-alias-interactive-bg-hover-accent);
|
||
}
|
||
|
||
/* The searchable route box: the wrapper span the Menu renders around the
|
||
input. Its default `.root` is `display: inline-flex`, which shrinks to the
|
||
input's intrinsic width — overridden here so the box fills the panel. The
|
||
candidate list itself is portalled to <body> (see the component), so its
|
||
width is pinned to the input at runtime. */
|
||
.commitModelMenuRoot {
|
||
display: block;
|
||
width: 100%;
|
||
}
|
||
|
||
.commitModelBox {
|
||
display: block;
|
||
}
|
||
|
||
/* The stored route, shown on its own line: the search box below stays an empty
|
||
filter, so reopening the picker lists every candidate instead of filtering
|
||
down to the model that is already selected. */
|
||
.commitModelCurrent {
|
||
margin-bottom: 4px;
|
||
font: var(--dsw-font-xxs-strong-12);
|
||
color: var(--dsw-alias-label-primary);
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
.commitModelInput {
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
height: 26px;
|
||
padding: 0 6px;
|
||
border: 1px solid var(--dsw-alias-border-l2);
|
||
border-radius: 6px;
|
||
background: var(--dsw-alias-bg-layer-2);
|
||
color: var(--dsw-alias-label-primary);
|
||
font: var(--dsw-font-xxs-12);
|
||
}
|
||
|
||
.commitModelInput:disabled {
|
||
opacity: 0.45;
|
||
cursor: default;
|
||
}
|
||
|
||
/* One candidate row inside the portalled Menu: the route text plus its source
|
||
badge. The menu shell (background, hover, radius) is the primitive's. */
|
||
.commitModelOption {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
/* border-box, or `width: 100%` plus the horizontal padding overflows its
|
||
label box by 12px — which the Menu's `.itemLabel{overflow:hidden}` then
|
||
slices off the trailing badge. */
|
||
box-sizing: border-box;
|
||
width: 100%;
|
||
padding: 4px 6px;
|
||
border: none;
|
||
border-radius: 4px;
|
||
background: transparent;
|
||
color: var(--dsw-alias-label-primary);
|
||
font: var(--dsw-font-xxs-12);
|
||
text-align: left;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.commitModelOption:hover {
|
||
background: var(--dsw-alias-interactive-bg-hover);
|
||
}
|
||
|
||
/* `flex-basis: auto` (NOT `1`, which is basis 0) matters here: the menu card
|
||
is sized shrink-to-fit, and a zero basis makes that intrinsic width ignore
|
||
the route text — the card then converges on the input's width alone and the
|
||
trailing badge is clipped by the Menu's own `.itemLabel{overflow:hidden}`.
|
||
With auto the text contributes its real width, and `min-width: 0` still lets
|
||
it ellipsize when the card hits the Menu's max-width. */
|
||
.commitModelOptionText {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
/* The badge keeps its full width under any shrink pressure. */
|
||
.commitModelOptionNote {
|
||
flex: 0 0 auto;
|
||
min-width: max-content;
|
||
white-space: nowrap;
|
||
color: var(--dsw-alias-label-tertiary);
|
||
}
|
||
|
||
.commitModelHint {
|
||
font: var(--dsw-font-xxs-12);
|
||
color: var(--dsw-alias-label-tertiary);
|
||
}
|
||
|
||
/* ── Commit graph ──────────────────────────────────────────────────────── */
|
||
|
||
.logRow { position: relative; display: flex; align-items: center; min-width: 0; height: 22px; margin: 0 6px; cursor: pointer; }
|
||
.logRow:hover { background: var(--dsw-alias-interactive-bg-hover); }
|
||
.graphSvg { flex: none; max-width: 40%; height: 22px; overflow: hidden; }
|
||
.graphContent { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; padding-right: 4px; }
|
||
.logRefs { display: inline-flex; gap: 3px; flex-shrink: 1; min-width: 0; max-width: 45%; overflow: hidden; }
|
||
.logRef { flex: none; padding: 0 4px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 3px; font: var(--dsw-font-xxxs-strong-11); color: var(--dsw-alias-brand-primary); white-space: nowrap; }
|
||
.logSubject { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--dsw-font-xxs-12); color: var(--dsw-alias-label-primary); }
|
||
.logMeta { max-width: 28%; overflow: hidden; text-overflow: ellipsis; font: var(--dsw-font-xxxs-11); color: var(--dsw-alias-label-tertiary); white-space: nowrap; }
|
||
|
||
.logMore {
|
||
display: block;
|
||
width: calc(100% - 24px);
|
||
margin: 4px 12px 8px;
|
||
height: 28px;
|
||
border: 1px solid var(--dsw-alias-border-l2);
|
||
border-radius: 3px;
|
||
background: transparent;
|
||
font: var(--dsw-font-xxs-12);
|
||
color: var(--dsw-alias-label-secondary);
|
||
cursor: pointer;
|
||
}
|
||
.logMore:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); }
|
||
.logMore:disabled { opacity: 0.5; cursor: default; }
|
||
|
||
/* ── Session lens (this round's files) ─────────────────────────────────── */
|
||
|
||
.session { flex: 1; min-height: 0; display: flex; flex-direction: column; }
|
||
.filterRow { flex: none; display: flex; gap: 4px; padding: 6px 12px; flex-wrap: wrap; }
|
||
.sessionList { flex: 1; min-height: 0; overflow-y: auto; padding: 0 6px 10px; }
|
||
|
||
.fileGroup { margin-bottom: 6px; }
|
||
/* The group label sits between op blocks: extra head padding separates it from
|
||
the previous file's rows, the first group starts flush. */
|
||
.filePath { display: block; color: var(--dsw-alias-label-tertiary); font-family: var(--ds-font-family-code, monospace); font-size: 11px; padding: 6px 4px 2px; word-break: break-all; }
|
||
.fileGroup:first-child .filePath { padding-top: 2px; }
|
||
|
||
.opRow { position: relative; display: flex; align-items: center; gap: 6px; width: 100%; min-height: 24px; border: 0; border-radius: 4px; background: transparent; color: var(--dsw-alias-label-primary); font: inherit; font-size: 11px; padding: 0 5px; cursor: pointer; text-align: left; }
|
||
.opRow:hover { background: var(--dsw-alias-interactive-bg-hover); }
|
||
/* A failed op carries a quiet error inset bar (the flag chip names it). */
|
||
.opRow[data-op-error='true'] { box-shadow: inset 2px 0 0 var(--dsw-alias-state-error-primary); }
|
||
/* Size + relative time ride as one right-aligned cluster so the kind badges
|
||
form a scannable left rail and the meta column stays flush right. */
|
||
.opMeta { margin-left: auto; display: inline-flex; align-items: baseline; gap: 8px; flex: none; min-width: 0; }
|
||
.opTime { color: var(--dsw-alias-label-tertiary); font-size: 10px; flex: none; }
|
||
.opFlag { color: var(--dsw-alias-state-business-primary); font-size: 10px; flex: none; }
|
||
.opFlagError { color: var(--dsw-alias-state-error-primary); font-size: 10px; flex: none; }
|
||
.opSize { color: var(--dsw-alias-label-tertiary); font-size: 10px; flex: none; font-family: var(--ds-font-family-code, monospace); }
|
||
|
||
/* ── Shared preview pane ───────────────────────────────────────────────── */
|
||
|
||
.redactBanner { flex: none; font: var(--dsw-font-xxxs-strong-11); padding: 2px 8px; border-radius: 2px; color: var(--dsw-alias-state-warn-primary); background: var(--dsw-alias-interactive-bg-hover); white-space: nowrap; }
|
||
.mdBody { padding: 12px 16px 20px; font: var(--dsw-font-xs-regular-13); line-height: 1.6; min-height: 0; overflow-y: auto; }
|
||
.htmlPane { flex: 1; min-height: 0; display: flex; }
|
||
.htmlFrame { flex: 1; width: 100%; border: none; background: var(--dsw-alias-bg-base); }
|
||
|
||
.diffPane { border-top: 1px solid var(--dsw-alias-border-l1); display: flex; flex-direction: column; flex: none; min-height: 0; }
|
||
.dragHandle { flex: none; height: 8px; cursor: ns-resize; position: relative; background: var(--dsw-alias-bg-base); }
|
||
.dragHandle::after { content: ''; position: absolute; left: calc(50% - 18px); top: 3px; width: 36px; height: 2px; border-radius: 1px; background: var(--dsw-alias-border-l2); }
|
||
.dragHandle:hover::after, .dragHandle:focus-visible::after { background: var(--dsw-alias-state-business-primary); }
|
||
.diffHead { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 10px; border-bottom: 1px solid var(--dsw-alias-border-l1); }
|
||
/* The path keeps its tail (the file name is the identity; directories are
|
||
context): an RTL paragraph renders an ASCII path in reading order while
|
||
clipping its HEAD under the ellipsis. */
|
||
.diffPath { flex: 1; direction: rtl; font-family: var(--ds-font-family-code, monospace); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dsw-alias-label-primary); min-width: 0; }
|
||
.diffStats { flex: none; display: inline-flex; gap: 5px; font-size: 10px; font-family: var(--ds-font-family-code, monospace); }
|
||
|
||
.paneBody { flex: 1; min-height: 0; overflow-y: auto; }
|
||
/* An op's error body: the kit's error ink with the row's inset bar. */
|
||
.readError { border-left: 3px solid var(--dsw-alias-state-error-primary); margin: 6px 8px; padding: 6px 10px; word-break: break-word; }
|
||
|
||
/* The op preview whose callId left the loaded event window. */
|
||
.paneGone { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--dsw-alias-border-l1); }
|
||
|
||
/* ── Shared bits ───────────────────────────────────────────────────────── */
|
||
|
||
/* Mount fade for rows (the app's session-row reveal). */
|
||
@keyframes dsh-row-in {
|
||
from { opacity: 0; }
|
||
}
|
||
|
||
/* Keyboard focus rings match the shared sidebar convention (the kit atoms and
|
||
the tree rows carry their own). */
|
||
.logRow:focus-visible, .logMore:focus-visible, .scmDisclosure:focus-visible, .branchButton:focus-visible, .syncButton:focus-visible, .suggestButton:focus-visible, .dragHandle:focus-visible {
|
||
outline: 2px solid var(--dsw-alias-interactive-bg-hover-accent);
|
||
outline-offset: -1px;
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.row { animation: none; }
|
||
}
|