Keep openFile path links (no tool-row sidebar handoff) while taking master's cwd-relative summaries, running sweep, and expandable chevron polish.
184 lines
4.0 KiB
CSS
184 lines
4.0 KiB
CSS
/* Tool summary row (figma 122:9479): 24px single line —
|
|
[16 leading] gap6 [title 14/24] gap8 [2x2 dot] gap8 [summary FILL truncate]. */
|
|
|
|
.root {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.row {
|
|
position: relative; /* sweep-glare overlay anchor */
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
height: 24px;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Running sweep (deepsuite ShimmerText pattern): a fixed-width glare band —
|
|
theme background at 60% — glides over the row content from off-left to
|
|
off-right, washing glyphs and icon toward the background as it passes.
|
|
ease-out with a 10% end hold gives each pass a beat before the next. */
|
|
.root[data-state='running'] .row::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 300px;
|
|
background: linear-gradient(
|
|
90deg,
|
|
transparent 0%,
|
|
color-mix(in srgb, var(--dsw-alias-bg-base) 60%, transparent) 55%,
|
|
transparent 100%
|
|
);
|
|
animation: dsh-tool-row-sweep 2.6s ease-out infinite;
|
|
pointer-events: none;
|
|
}
|
|
|
|
@keyframes dsh-tool-row-sweep {
|
|
0% { left: -300px; }
|
|
90%, 100% { left: 100%; }
|
|
}
|
|
|
|
/* Expand-on-row (Think / code): pointer only — no row fill hover. */
|
|
.row[data-expandable] {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.leading {
|
|
position: relative; /* .chevronHover overlay anchor */
|
|
flex: none;
|
|
width: 16px;
|
|
height: 16px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-right: 6px;
|
|
padding: 0;
|
|
border: none;
|
|
background: none;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
/* The others-variant sparkle glyph is one gray step darker than the icon
|
|
family in the source design. */
|
|
.root[data-variant='others'] .leading {
|
|
color: var(--dsw-alias-label-secondary);
|
|
}
|
|
|
|
/* Cordis lifecycle tools retain their generic row mechanics while carrying a
|
|
shared product accent and tool-owned action title. */
|
|
.root[data-tool^='cordis_'] .leading,
|
|
.root[data-tool^='cordis_'] .title {
|
|
color: var(--dsw-alias-state-business-primary);
|
|
}
|
|
|
|
.root[data-tool^='cordis_'] .title {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.root[data-tool^='cordis_'] .sep {
|
|
background: var(--dsw-alias-state-business-primary);
|
|
}
|
|
|
|
button.leading {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chevron {
|
|
color: var(--dsw-alias-label-secondary);
|
|
}
|
|
|
|
/* Hover preview on expandable rows: the idle tool icon crossfades (100ms)
|
|
into a down chevron before the row is opened. The chevron overlays the
|
|
icon cell absolutely so both can stay mounted for the opacity transition. */
|
|
.iconIdle {
|
|
display: inline-flex;
|
|
opacity: 1;
|
|
transition: opacity 100ms ease;
|
|
}
|
|
|
|
.chevronHover {
|
|
position: absolute;
|
|
inset: 0;
|
|
margin: auto;
|
|
opacity: 0;
|
|
transition: opacity 100ms ease;
|
|
}
|
|
|
|
.row:hover .iconIdle {
|
|
opacity: 0;
|
|
}
|
|
|
|
.row:hover .chevronHover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.title {
|
|
flex: none;
|
|
font-size: 14px;
|
|
line-height: 24px;
|
|
color: var(--dsw-alias-label-secondary);
|
|
}
|
|
|
|
.sep {
|
|
flex: none;
|
|
width: 2px;
|
|
height: 2px;
|
|
border-radius: 1px;
|
|
margin: 0 8px;
|
|
background: var(--dsw-alias-label-caption);
|
|
}
|
|
|
|
.summary {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-size: 14px;
|
|
line-height: 24px;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
/* File-tool path: same geometry as .summary; hover underline + pointer. */
|
|
.fileLink {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: none;
|
|
background: none;
|
|
font: inherit;
|
|
text-align: left;
|
|
font-size: 14px;
|
|
line-height: 24px;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.fileLink:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Expanded body: pad-left 22 indented gray text, no border, no fill. */
|
|
.body {
|
|
padding: 4px 0 4px 22px;
|
|
font-size: 14px;
|
|
line-height: 24px;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
/* The code variant's expanded body is the run_code program, rendered through
|
|
the shared CodeBlock (shiki-highlighted TypeScript); only indentation is
|
|
this row's concern. */
|
|
.codeBody {
|
|
margin: 4px 0 4px 22px;
|
|
}
|