宿主半: - /sidebar/file 与 /sidebar/html 改为 createReadStream + pipeline(新增 file-stream.ts),删除 mediaLimit;流开始后失败由 writeJson 的 headersSent 守卫降级为 destroy,不再抛 ERR_HTTP_HEADERS_SENT - 上传本就是流式的,只删掉客户端 MAX_UPLOAD_BYTES 预检与宿主 limit 逐块检查 - 删除 readLimit / mediaLimit / uploadLimit 三个配置键,新增共享常量模块 editor-limits.ts(MAX_EDITABLE_BYTES = 5 MiB、PAGE_BYTES、写入体护栏) - fs.read 重塑为 text | binary | too-large 三态,不再有「截断文本」这个 既不可信又不可保存的中间态;新增 fs.readPage 字节窗口分页(按行对齐、 按 path+size+mtime 缓存首次探测到的编码) - 删除 JSON 版 fs.write,改为 /sidebar/write raw 路由(文档即请求体), 拆掉 MAX_BODY_BYTES=1MiB 这道保存墙;编码与行尾还原逻辑原样搬到 fs-operations.writeWorkspaceText - 打包改原生命令:新增 archive-tools.ts(zip → tar 探测、公共祖先定位、 argv 规划、stdio 重定向),archive-route 改为后台写临时文件 + 流式下发, 删除手写 ZIP writer src/zip.ts;新增 unavailable 错误码 客户端半: - 新增 text-pages.ts(字节偏移分页游标,显式翻页)、jsonl.ts(逐行记录 解析与摘要)、lang-jsonl.ts(每行独立的 JSON tokenizer,替代会为每条记录 产生错误节点的 json() 语法)、LargeFileView.tsx(记录卡片 / 日志行两种 只读分页视图) - 新增 jsonl viewer 描述符(预览 = 记录列表,编辑 = 可保存的 CodeMirror) - FileViewerProps 用 size/largeFile 取代 truncated;超限文件改为只读分页 预览并可下载,不再提供编辑器 - tags.invalid 由纯白改为红色波浪线(浅色主题下原本白底白字不可见) - zip 下载改回普通 <a download> 直链,不再把整包放进浏览器内存
2651 lines
73 KiB
CSS
2651 lines
73 KiB
CSS
/**
|
|
* Sidebar styles. Per the DSH web-styling rules every visual value rides the
|
|
* theme: --dsw-alias-* semantic tokens for colors, --dsw-font-* typography
|
|
* roles (size paired with line-height), and --ds-* for motion. The chrome
|
|
* mirrors the native DSH sidebar: flat (NO box-shadows anywhere), the
|
|
* sidebar fill surface, hairline borders, and the 28/36px circular icon
|
|
* controls with hover fills. No static palette values, no color literals, no
|
|
* theme selectors — light/dark adaptation is the theme package's job.
|
|
*/
|
|
|
|
/* ── Shell ─────────────────────────────────────────────────────────────── */
|
|
|
|
/* Skinning contract (token-driven): every surface here consumes DSH's
|
|
generic tokens (`--dsw-alias-*`), NEVER `--dsw-specific-sidebar-fill` —
|
|
skin systems override that token to restyle the APP's own left-nav column
|
|
(dsh-web-ui skins make it translucent glass or theme colors, Aqua makes it
|
|
transparent), and a panel consuming it would lose its fill or clash with
|
|
the label tokens. The panels use the generic card surface
|
|
`--dsw-alias-bg-layer-1`, which every dsh-web-ui skin overrides — so
|
|
switching skins in the dsh-web-ui skin center re-skins the sidebar panels
|
|
automatically (see AGENTS.md §8). */
|
|
|
|
/* The unified panel host: a fixed, viewport-sized, click-transparent
|
|
containing block for every panel element. Panels are ABSOLUTE within it
|
|
(not fixed), so a desktop shell's intermediate wrapper transform can
|
|
never hijack their containing block — the host itself is the only fixed
|
|
element, appended directly to document.body. The layer sits at z-index 25:
|
|
above the app's shell overlay (AppFrame overlayLayer, 20) and in-flow
|
|
content, below DSH's ui-cordis dynamic-plugin panel (fixed, 30 — the
|
|
inventory/surfacing surface must never be hidden behind the workbench),
|
|
and below the app's overlay stack at 100+; each panel re-enables pointer
|
|
events on itself. Degraded mode ([data-dsh-panel-host-degraded]) covers
|
|
the rare shell that transforms <html>/<body> itself: the host becomes
|
|
absolute and the mount self-check pins it to the viewport every frame. */
|
|
:global([data-dsh-panel-host]) {
|
|
position: fixed;
|
|
inset: 0;
|
|
/* Explicit viewport height — NOT a containing-block derivation (issue
|
|
#616). `inset: 0` alone sizes a fixed box from its containing block, and
|
|
a page-level `filter` / `backdrop-filter` / `transform` — exactly what a
|
|
glass skin puts on the shell wrapper or on <body> itself — REPLACES that
|
|
containing block with the ancestor's own padding box. The shell's content
|
|
is itself fixed/viewport-sized, so that box is zero-height: the host
|
|
collapses to 0px and the whole native right sidebar goes invisible while
|
|
its DOM (and every panel in it) is fully present. `vh` is measured
|
|
against the viewport instead, so the height survives any ancestor's
|
|
containing-block games; the over-constrained triple (top: 0 + height +
|
|
bottom: 0) resolves by ignoring `bottom`, keeping this a top-anchored
|
|
viewport-height layer. */
|
|
height: 100vh;
|
|
z-index: 25;
|
|
pointer-events: none;
|
|
/* Clip at the viewport edge: collapsed panels slide off-screen with
|
|
`transform: translate(102%)`, and a transformed element still
|
|
contributes to its ancestors' scrollable overflow — without this the
|
|
hidden panels extended the document's scrollable area, making the whole
|
|
page draggable left-right and up-down while any panel was collapsed.
|
|
The host is exactly viewport-sized (inset: 0 + the explicit 100vh
|
|
height above), so the clip is invisible
|
|
until a panel slides in from the edge; internal scroll containers and
|
|
the app's fixed overlay stack are unaffected. `clip`, not `hidden`: a
|
|
hidden box stays a PROGRAMMATICALLY scrollable container, and a
|
|
scrollIntoView fired from panel content (the file tree's "Show in
|
|
folder" reveal) scrolled the host itself — shifting the whole panel,
|
|
tab bar included, out of the viewport with no way to scroll back.
|
|
The same class covers any scroll-into-view fixup — focus moving into
|
|
an off-viewport region, a nested iframe/workbench claiming focus
|
|
while it loads — so the guard belongs on the layer itself, not per
|
|
call site. The `hidden` declaration BEFORE `clip` is an old-engine
|
|
fallback, not dead style: engines without `clip` support (Safari < 16)
|
|
drop the `clip` line, which would leave this box `overflow: visible`
|
|
— no clipping at all, and the page-draggable regression above
|
|
returns. With `hidden` first those engines keep the clipping (plus
|
|
its pre-clip scrollability) while every clip-aware engine applies
|
|
the later `clip`. */
|
|
overflow: hidden;
|
|
overflow: clip;
|
|
}
|
|
|
|
/* Desktop drag regions ignore pointer-events: the shell's base stylesheet
|
|
makes every direct body child `no-drag`, and the plugin HOST is one — in
|
|
Electron that value also reaches the viewport-sized panel layer inside it
|
|
(#772's CDP reading; the browser engine used by the mount lane does not
|
|
propagate it, so the layer's own rule below is belt-and-braces), which is
|
|
what cancelled every window-drag strip beneath it once the shell
|
|
recomputed regions (window drags worked once, then stopped). Take the host
|
|
and layer out of the app-region computation; `!important` because the
|
|
shell's `body > :not(#root)` selector outranks ours. The panels themselves
|
|
stay no-drag so their controls keep receiving clicks.
|
|
The plugin's OTHER persistent viewport-sized body child — the mermaid zoom
|
|
modal — carries the same reset on its own rule further down, or opening a
|
|
diagram would blank window drag (and the macOS double-click-title zoom)
|
|
while it is up. It is a modal SCRIM, so it does get the reset even though
|
|
it is interactive: only its widgets (`<button>` …) need to stay no-drag,
|
|
and the residual is that its backdrop inside the shell's top drag band
|
|
starts a window drag instead of closing the modal — the deliberate trade
|
|
for keeping the window draggable while a diagram is enlarged.
|
|
Deliberately NOT applied to the other interactive popups (`.selectionPopup`
|
|
is a `<button>`; FloatingWindow / AnchoredPopover own pointer drags and are
|
|
not scrims): the shell's `:is(button, a, input, …)` rule already keeps those
|
|
no-drag, and `initial !important` would outrank it and start a window drag on
|
|
press instead — the click-swallow regression of issues #103/#111. */
|
|
:global(html[data-platform] body > [data-dsh-better-sidebar]),
|
|
:global([data-dsh-panel-host]) {
|
|
-webkit-app-region: initial !important;
|
|
}
|
|
|
|
:global([data-dsh-panel-host]) > * {
|
|
-webkit-app-region: no-drag;
|
|
}
|
|
|
|
:global([data-dsh-panel-host][data-dsh-panel-host-degraded]) {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
/* The closed-state affordance is the native rail icon control: a plain
|
|
28px circle (the app's icon-button size — the cluster must stay inside
|
|
the 34px tab-strip band so it never covers the pane headers below),
|
|
transparent fill, secondary ink; hover raises the fill. No border, no
|
|
shadow — the icon alone is the affordance. */
|
|
/* 空白会话(宿主不渲染会话头)时的底部工作台入口(sidebar/dock-fallback.tsx):
|
|
fixed 定位到宿主「Open right sidebar」按钮左侧紧邻,top/left 由 JS 按 rect 对齐。 */
|
|
.dockFallback {
|
|
position: fixed;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
z-index: 40;
|
|
}
|
|
|
|
.toggleButton {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border: none;
|
|
border-radius: 50%;
|
|
background: transparent;
|
|
color: var(--dsw-alias-label-secondary);
|
|
cursor: pointer;
|
|
transition:
|
|
background var(--ds-transition-duration-slow) var(--ds-ease-in-out),
|
|
color var(--ds-transition-duration-slow) var(--ds-ease-in-out);
|
|
}
|
|
|
|
.toggleButton:hover:not(:disabled):not([aria-disabled='true']) {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
.toggleButton:disabled,
|
|
.toggleButton[aria-disabled='true'] {
|
|
opacity: 0.4;
|
|
cursor: default;
|
|
}
|
|
|
|
.panelBody {
|
|
flex: 1;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
}
|
|
|
|
/* ── Bottom panel ──────────────────────────────────────────────────────── */
|
|
|
|
/* The bottom panel: an independent workbench at the bottom of the CENTER
|
|
column only (the Sidebar shell writes left/right inline: from the app's
|
|
own left sidebar to the right panel's left edge) — the sidebars never
|
|
give up any position. Same surface as the right panel, with a top
|
|
hairline instead of the left one. Host-internal z-index 40 mirrors the
|
|
right panel; the absolute global layer comes from the host (25), below
|
|
DSH's ui-cordis dynamic-plugin panel (30) so the cordis inventory
|
|
surface floats above the workbench, and below the app's overlay stack
|
|
(100+) so popups win over the workbench (issue #52). */
|
|
.bottomPanel {
|
|
position: absolute;
|
|
bottom: 0;
|
|
z-index: 40;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
border-top: 1px solid var(--dsw-alias-border-l2);
|
|
/* Re-enable interaction inside the click-transparent panel host. */
|
|
pointer-events: auto;
|
|
/* Bottom safe-area (notched phones); 0 on desktops. */
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
/* Expand/collapse slides the panel; height drags animate the height. */
|
|
transition:
|
|
transform var(--ds-transition-duration-slow) var(--ds-ease-in-out),
|
|
height var(--ds-transition-duration-slow) var(--ds-ease-in-out);
|
|
}
|
|
|
|
/* Collapsed: slid off-screen, interactive nothing, hidden after the slide. */
|
|
.bottomPanelHidden {
|
|
transform: translateY(102%);
|
|
pointer-events: none;
|
|
visibility: hidden;
|
|
transition:
|
|
transform var(--ds-transition-duration-slow) var(--ds-ease-in-out),
|
|
height var(--ds-transition-duration-slow) var(--ds-ease-in-out),
|
|
visibility 0s linear var(--ds-transition-duration-slow);
|
|
}
|
|
|
|
/* Height drags write at pointer cadence; easing would detach the edge. */
|
|
.bottomPanel[data-dragging] {
|
|
transition: none;
|
|
}
|
|
|
|
/* Layout isolation: panel-internal reflows (tabs, editors, terminals) never
|
|
leak into the app shell's layout, and the app shell's layout changes
|
|
never cascade through the panel subtree — the drag stays confined.
|
|
will-change: transform is only live while a drag is (the body attribute
|
|
toggles with the drag state), promoting the panels to their own layer
|
|
without paying the compositing cost at rest. */
|
|
.bottomPanel {
|
|
contain: layout style;
|
|
}
|
|
|
|
body[data-dsh-sidebar-dragging] .panel,
|
|
body[data-dsh-sidebar-dragging] .bottomPanel {
|
|
will-change: transform;
|
|
}
|
|
|
|
/* The bottom panel's height drag: the top edge strip (mirror of the right
|
|
panel's width strip), centered on the border like the width strip. */
|
|
.bottomResize {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: -4px;
|
|
height: 8px;
|
|
cursor: row-resize;
|
|
z-index: 2;
|
|
touch-action: none;
|
|
}
|
|
|
|
.bottomResizeActive {
|
|
background: var(--dsw-alias-interactive-bg-hover-accent);
|
|
}
|
|
|
|
/* The bottom panel's close control: the app's icon-button pattern (28px
|
|
circle), pinned to the tab strip's right end — one tap collapses the
|
|
panel. The tab strips below reserve its width so the + menu never hides
|
|
under it. */
|
|
.bottomClose {
|
|
position: absolute;
|
|
top: 3px;
|
|
right: 6px;
|
|
z-index: 4;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 50%;
|
|
background: transparent;
|
|
color: var(--dsw-alias-label-secondary);
|
|
cursor: pointer;
|
|
flex: none;
|
|
}
|
|
|
|
.bottomClose:hover:not(:disabled) {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
/* The bottom panel's tab strips reserve the close control's width at their
|
|
right end, so the + menu never hides under it. */
|
|
.bottomPanel .tabBar {
|
|
padding-right: 40px;
|
|
}
|
|
|
|
/* ── Desktop drag-region opt-out ──────────────────────────────────────── */
|
|
|
|
/* Frameless desktop shells make the top strip of the web content draggable
|
|
(Electron `-webkit-app-region: drag`); pointer events over that strip are
|
|
swallowed as window drags unless the interactive element opts out
|
|
(issues #103/#111). The plugin's viewport-corner chrome must declare
|
|
`no-drag` itself — some shells (Tauri, older desktop builds, third-party
|
|
wrappers) have no blanket button rule. The property is a no-op in plain
|
|
browsers and in shells without drag regions — safe everywhere. */
|
|
.toggleButton,
|
|
.tabBar {
|
|
-webkit-app-region: no-drag;
|
|
}
|
|
|
|
/* Icon button: the app's own icon-button pattern (ui-workspace) — a 28px
|
|
circle, secondary label, hover fill; no border so the icon alone is the
|
|
affordance. */
|
|
.iconButton {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 50%;
|
|
background: transparent;
|
|
color: var(--dsw-alias-label-secondary);
|
|
cursor: pointer;
|
|
flex: none;
|
|
}
|
|
|
|
.iconButton:hover:not(:disabled) {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
.iconButton:disabled {
|
|
opacity: 0.4;
|
|
cursor: default;
|
|
}
|
|
|
|
/* ── Workbench / split panes ───────────────────────────────────────────── */
|
|
|
|
.workbench {
|
|
flex: 1;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
display: flex;
|
|
}
|
|
|
|
.split {
|
|
flex: 1;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
display: flex;
|
|
}
|
|
|
|
.splitRow {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.splitCol {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.splitChild {
|
|
position: relative;
|
|
display: flex;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.divider {
|
|
position: relative;
|
|
flex: none;
|
|
z-index: 3;
|
|
touch-action: none;
|
|
}
|
|
|
|
/* The hit area stays 7px wide enough to grab, but the visual is a 1px
|
|
hairline centered in it — a divider line, not a thick band. */
|
|
.dividerRow::after,
|
|
.dividerCol::after {
|
|
content: '';
|
|
position: absolute;
|
|
background: var(--dsw-alias-border-l2);
|
|
transition: background var(--ds-transition-duration-slow) var(--ds-ease-in-out);
|
|
}
|
|
|
|
.dividerRow {
|
|
width: 7px;
|
|
margin: 0 -2px;
|
|
cursor: col-resize;
|
|
}
|
|
|
|
.dividerRow::after {
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 50%;
|
|
width: 1px;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.dividerCol {
|
|
height: 7px;
|
|
margin: -2px 0;
|
|
cursor: row-resize;
|
|
}
|
|
|
|
.dividerCol::after {
|
|
left: 0;
|
|
right: 0;
|
|
top: 50%;
|
|
height: 1px;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.divider:hover::after,
|
|
.dividerActive::after {
|
|
background: var(--dsw-alias-interactive-bg-hover-accent);
|
|
}
|
|
|
|
.pane {
|
|
position: relative;
|
|
flex: 1;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--dsw-alias-bg-base);
|
|
}
|
|
|
|
.paneDrop {
|
|
outline: 1px solid var(--dsw-alias-interactive-bg-hover-accent);
|
|
outline-offset: -1px;
|
|
}
|
|
|
|
/* VSCode-style drag-to-edge drop zones (25% edges, 50% center). */
|
|
.dropOverlay {
|
|
position: absolute;
|
|
z-index: 6;
|
|
pointer-events: none;
|
|
background: var(--dsw-alias-interactive-bg-hover-accent);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.dropLeft {
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 25%;
|
|
}
|
|
|
|
.dropRight {
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 25%;
|
|
}
|
|
|
|
.dropUp {
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 25%;
|
|
}
|
|
|
|
.dropDown {
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 25%;
|
|
}
|
|
|
|
.dropCenter {
|
|
left: 25%;
|
|
right: 25%;
|
|
top: 25%;
|
|
bottom: 25%;
|
|
background: transparent;
|
|
outline: 2px dashed var(--dsw-alias-interactive-bg-hover-accent);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.paneContent {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* The native tab chip's glyph (drawn by the plugin inside the host's
|
|
`sidebar.right.pane.tab.title` slot, which is the chip's content): sized to
|
|
the text, aligned on its baseline box, and separated from the title the way
|
|
the workbench strip separates its own glyph from its label. */
|
|
.chipIcon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
margin-right: 6px;
|
|
flex: none;
|
|
}
|
|
|
|
/* "This page has something you have not looked at": a small solid dot on the
|
|
tab, drawn on the native chip and on the bottom workbench strip alike. Static
|
|
by design — a pulsing marker on every new subagent is noise, and the two
|
|
carriers must read as the same thing. The chip is inline text (its content
|
|
IS the host's tab label), so the mark is an inline-block sitting on the text
|
|
baseline; the strip's own mark centres in its flex row instead. */
|
|
.chipUnread {
|
|
display: inline-block;
|
|
width: 6px;
|
|
height: 6px;
|
|
margin-left: 6px;
|
|
border-radius: 50%;
|
|
background: var(--dsw-alias-danger);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.tabUnreadDot {
|
|
flex: none;
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
background: var(--dsw-alias-danger);
|
|
}
|
|
|
|
/* One tab's mounted content; inactive tabs stay mounted but hidden so
|
|
switching never tears down terminals/editors (state survives). */
|
|
.paneTab {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.paneTabHidden {
|
|
display: none;
|
|
}
|
|
|
|
/* An empty pane's welcome cards: a responsive grid of openable types — as
|
|
many per row as the pane width allows; rows that cannot fit the pane
|
|
height are clipped (never scrolled or squeezed smaller).
|
|
|
|
The card itself mirrors DSH's OWN guide capsule (the built-in tab types'
|
|
entry box, `ui-sidebar-right`'s GuideBody / `ui-sidebar-terminal`'s
|
|
TerminalGuide): one hairline in the l4 weight, a 24px radius, the layer-1
|
|
fill and the 56px floor. The two surfaces are the same thing — "pick what
|
|
opens here" — so they must not read as two different design systems.
|
|
The column floor is wider than before because a 24px radius needs the
|
|
room; the vertical gap keeps the capsule proportions. */
|
|
.paneEmptyCards {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
align-content: start;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.paneCard {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 14px;
|
|
min-width: 0;
|
|
min-height: 56px;
|
|
box-sizing: border-box;
|
|
padding: 14px 20px;
|
|
border: 0.5px solid var(--dsw-alias-border-l4);
|
|
border-radius: 24px;
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
color: var(--dsw-alias-label-primary);
|
|
/* The host capsule sets a raw `font-size: 15px` with no token behind it;
|
|
the ladder's nearest step is the 14px medium row, so the label reads at
|
|
the same weight as DSH's own entry without inventing a literal. */
|
|
font: var(--dsw-font-s-strong-14);
|
|
cursor: pointer;
|
|
text-align: left;
|
|
}
|
|
|
|
/* The glyph takes the host capsule's secondary ink; the label carries the
|
|
primary ink (same split as the host's guide entry). */
|
|
.paneCard > svg {
|
|
flex: none;
|
|
color: var(--dsw-alias-label-secondary);
|
|
}
|
|
|
|
.paneCard:hover:not(:disabled) {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
border-color: var(--dsw-alias-border-l4);
|
|
}
|
|
|
|
.paneCard:disabled {
|
|
opacity: 0.45;
|
|
cursor: default;
|
|
}
|
|
|
|
/* ── Tab strip ─────────────────────────────────────────────────────────── */
|
|
|
|
.tabBar {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: stretch;
|
|
height: 34px;
|
|
border-bottom: 1px solid var(--dsw-alias-border-l1);
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
}
|
|
|
|
.tabBarDrop {
|
|
outline: 1px dashed var(--dsw-alias-interactive-bg-hover-accent);
|
|
outline-offset: -1px;
|
|
}
|
|
|
|
.tabList {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.tabList::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.tab {
|
|
flex: none;
|
|
max-width: 160px;
|
|
min-width: 64px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 0 4px 0 10px;
|
|
font: var(--dsw-font-xxs-12);
|
|
color: var(--dsw-alias-label-secondary);
|
|
border-right: 1px solid var(--dsw-alias-border-l1);
|
|
background: transparent;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.tab:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
}
|
|
|
|
.tabActive {
|
|
color: var(--dsw-alias-label-primary);
|
|
/* Native selected fill (Rows .sessionRow.selected) — no underline, no shadow. */
|
|
background: var(--dsw-alias-interactive-bg-active);
|
|
}
|
|
|
|
.tabTitle {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* One tab's descriptor badge (a count capped at 99+, or a short text). */
|
|
.tabBadge {
|
|
flex: none;
|
|
min-width: 16px;
|
|
height: 15px;
|
|
padding: 0 4px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 8px;
|
|
font: var(--dsw-font-xxxs-strong-11);
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
color: var(--dsw-alias-brand-primary);
|
|
}
|
|
|
|
.tabClose {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 18px;
|
|
height: 18px;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
cursor: pointer;
|
|
flex: none;
|
|
}
|
|
|
|
.tabClose:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
.tabBarPlus {
|
|
flex: none;
|
|
align-self: center;
|
|
/* Adjacent to the rightmost tab; sticky so overflowing tab rows keep it
|
|
visible at the right edge of the scrollport. */
|
|
position: sticky;
|
|
right: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 22px;
|
|
height: 22px;
|
|
margin: 0 6px;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 5px;
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tabBarPlus:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
/* The active tab's right-aligned action area: sits at the tab strip's right
|
|
end (after the + button, before the panel's close control). Content-sized
|
|
(`0 1 auto`): it takes only the width its buttons need and may shrink
|
|
(clipped) if the strip runs out of room, while .tabList (flex: 1) keeps
|
|
absorbing the free space — an equal flex:1 split here would halve the tab
|
|
scrollport for even a tiny toolbar. Content is opaque to the tab strip's
|
|
own layout (the strip reserves the close control's width via
|
|
.bottomPanel .tabBar's padding-right, so this area never underlaps it). */
|
|
.tabBarRightActions {
|
|
flex: 0 1 auto;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 2px;
|
|
padding-right: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ── Explorer ──────────────────────────────────────────────────────────── */
|
|
|
|
.explorer {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.explorerHeader {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
height: 36px;
|
|
padding: 0 8px 0 12px;
|
|
}
|
|
|
|
.explorerRoot {
|
|
font: var(--dsw-font-s-14);
|
|
color: var(--dsw-alias-label-secondary);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.explorerBody {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
/* Deep trees truncate their labels instead of scrolling horizontally. */
|
|
overflow-x: hidden;
|
|
padding: 4px 8px 8px;
|
|
}
|
|
|
|
/* One tree row: the plugin's native list rhythm (28px, radius 4, inset,
|
|
hover fill, 22px indent step, 12px ink) with a mount fade so expanding a
|
|
directory reveals its children gently (stable keys keep existing rows from
|
|
replaying it). */
|
|
.explorerRow {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
/* border-box keeps the inline indent padding (depth * 22 + 6) INSIDE the
|
|
row's 100% width — without it deep rows overflow and force a horizontal
|
|
scrollbar on the tree body. */
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
height: 28px;
|
|
padding: 0 8px;
|
|
border: none;
|
|
background: transparent;
|
|
font: var(--dsw-font-xxs-12);
|
|
color: var(--dsw-alias-label-primary);
|
|
text-align: left;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
border-radius: 4px;
|
|
animation: dsh-row-in 150ms var(--ds-ease-in-out);
|
|
}
|
|
|
|
.explorerRow:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
}
|
|
|
|
/* A multi-selected row: the native selected fill plus the design's 2px
|
|
inset accent bar (a pseudo element, so metrics never shift between rows).
|
|
Distinct from the reveal tint below — a reveal is "here it is", a
|
|
selection is "this is the batch's member". */
|
|
.explorerRowSelected {
|
|
background: var(--dsw-alias-interactive-bg-active);
|
|
}
|
|
|
|
.explorerRowSelected::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 4px;
|
|
bottom: 4px;
|
|
width: 2px;
|
|
border-radius: 1px;
|
|
background: var(--dsw-alias-state-business-primary);
|
|
}
|
|
|
|
/* Git-changed file names (VS Code's ink): the row keeps one class and the
|
|
tone arrives as a data attribute, so the mapping lives in one place. */
|
|
.explorerGitName[data-git-tone='modified'] { color: var(--dsw-alias-state-warn-primary); }
|
|
.explorerGitName[data-git-tone='added'] { color: var(--dsw-alias-state-success-primary); }
|
|
.explorerGitName[data-git-tone='untracked'] { color: var(--dsw-alias-state-success-primary); }
|
|
.explorerGitName[data-git-tone='deleted'] { color: var(--dsw-alias-state-error-primary); }
|
|
.explorerGitName[data-git-tone='renamed'] { color: var(--dsw-alias-state-business-primary); }
|
|
.explorerGitName[data-git-tone='copied'] { color: var(--dsw-alias-state-success-primary); }
|
|
.explorerGitName[data-git-tone='conflict'] { color: var(--dsw-alias-state-error-primary); }
|
|
|
|
/* A directory with a change anywhere below it: tinted, but never lettered
|
|
(the letter belongs to the file that actually changed). */
|
|
.explorerDirChanged {
|
|
color: var(--dsw-alias-state-business-primary);
|
|
}
|
|
|
|
/* A "Show in folder" reveal highlight: the target row stays tinted until
|
|
the transient reveal set is cleared (a reload starts unhighlighted).
|
|
The DSH business-blue surface (the same source the host's nav items use
|
|
for their active accent) — a flat tint, deliberately no left bar. */
|
|
.explorerRowRevealed {
|
|
background: var(--dsw-alias-state-business-tertiary);
|
|
}
|
|
|
|
/* Reveal sets usually list sibling files — consecutive tinted rows merge
|
|
into ONE rounded block: the touching edges square off, so a multi-file
|
|
highlight has no per-row radius notches. A solo revealed row (or the
|
|
first/last of a run) keeps its full radius. Rows are flat siblings in
|
|
the tree body (depth is inline padding), so the sibling combinator sees
|
|
every adjacency. */
|
|
.explorerRowRevealed + .explorerRowRevealed {
|
|
border-top-left-radius: 0;
|
|
border-top-right-radius: 0;
|
|
}
|
|
|
|
.explorerRowRevealed:has(+ .explorerRowRevealed) {
|
|
border-bottom-left-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
}
|
|
|
|
.explorerDir {
|
|
font: var(--dsw-font-xxs-strong-12);
|
|
}
|
|
|
|
.explorerHidden {
|
|
opacity: 0.45;
|
|
}
|
|
|
|
/* The link badge on symlink rows (folder and file rows alike). */
|
|
.explorerSymlink {
|
|
flex: none;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
/* A symlink whose target is missing: error ink on the name (the row stays
|
|
clickable — the editor surfaces the read failure). */
|
|
.explorerBroken .explorerName {
|
|
color: var(--dsw-alias-state-error-primary);
|
|
}
|
|
|
|
.explorerName {
|
|
/* min-width: 0 lets the flex item shrink below its content so the label
|
|
truncates with an ellipsis instead of widening the row. */
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ── Inline rename / new-folder editor ───────────────────────────────────
|
|
The level's top (or a row) swaps in a plain input (same row metrics: 28px
|
|
height, 6px gap, 12px type); only tokens, no hardcoded colors. */
|
|
.explorerRenaming {
|
|
cursor: text;
|
|
}
|
|
|
|
.explorerRenameInput {
|
|
box-sizing: border-box;
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
height: 22px;
|
|
padding: 0 6px;
|
|
border: 1px solid var(--dsw-alias-state-business-primary);
|
|
border-radius: 3px;
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
color: var(--dsw-alias-label-primary);
|
|
font: var(--dsw-font-xxs-12);
|
|
}
|
|
|
|
.explorerRenameInput:focus {
|
|
outline: none;
|
|
border-color: var(--dsw-alias-state-business-primary);
|
|
}
|
|
|
|
/* The dismissable mutation-failure strip above the root row (rename/delete
|
|
refusals — raw server text, same policy as the fence notice). */
|
|
.explorerActionError {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 6px;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
margin-bottom: 4px;
|
|
padding: 6px 8px;
|
|
border: 1px solid var(--dsw-alias-state-error-primary);
|
|
border-radius: 8px;
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
}
|
|
|
|
.explorerActionErrorText {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
font: var(--dsw-font-xxs-12);
|
|
color: var(--dsw-alias-state-error-primary);
|
|
}
|
|
|
|
/* The multi-selection bar: the LAST child of the tree's scroll container, so
|
|
it docks at the panel's bottom edge (sticky) and its appearance never
|
|
pushes the rows around the way a top bar did. Sticky (not absolute) keeps
|
|
it in flow: scrolled to the bottom it sits below the last row and covers
|
|
nothing, while mid-scroll it stays reachable. It WRAPS instead of
|
|
overflowing, so a narrow panel gets a second line of chips rather than a
|
|
clipped control or a horizontal scrollbar. 28px rhythm, token-only (§1). */
|
|
.explorerSelectionBar {
|
|
position: sticky;
|
|
bottom: 0;
|
|
z-index: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
min-height: 28px;
|
|
margin-top: 4px;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
background: var(--dsw-alias-bg-layer-2);
|
|
}
|
|
|
|
.explorerSelectionText {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font: var(--dsw-font-xxs-strong-12);
|
|
color: var(--dsw-alias-label-secondary);
|
|
}
|
|
|
|
.explorerSelectionActions {
|
|
flex: none;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
gap: 4px;
|
|
max-width: 72%;
|
|
}
|
|
|
|
/* The leading glyph of one "open in app" menu entry (the host's icon route
|
|
or a data URL). Fixed box: the menu's own icon slot sizing. */
|
|
.explorerAppIcon {
|
|
display: block;
|
|
width: 14px;
|
|
height: 14px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
/* The tree parked while the search results panel owns the surface (the tree
|
|
must stay MOUNTED: its level cache is the whole point). */
|
|
.explorerHiddenPane {
|
|
display: none;
|
|
}
|
|
|
|
/* The hover-revealed @-reference button at the row's far right (and the
|
|
transient "copied" label that replaces it after a copy). The only auto
|
|
margin in the row absorbs the filename's spare width, so a short name
|
|
cannot leave either affordance stranded in the middle. */
|
|
.explorerRef,
|
|
.explorerCopied {
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* Hidden rows keep the name at full width; hovering or focusing the row
|
|
reveals the reference button. */
|
|
.explorerRef {
|
|
flex: none;
|
|
display: none;
|
|
align-items: center;
|
|
height: 20px;
|
|
padding: 0 8px;
|
|
border: 1px solid var(--dsw-alias-border-l1);
|
|
border-radius: 999px;
|
|
background: var(--dsw-alias-bg-layer-2);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
font: var(--dsw-font-xxxs-strong-11);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.explorerRef:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
.explorerRow:hover .explorerRef,
|
|
.explorerRow:focus-within .explorerRef {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.explorerCopied {
|
|
flex: none;
|
|
font: var(--dsw-font-xxxs-11);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
.explorerError {
|
|
font: var(--dsw-font-xxs-12);
|
|
color: var(--dsw-alias-state-error-primary);
|
|
cursor: default;
|
|
}
|
|
|
|
/* Mount fade for tree rows (the app's session-row reveal). */
|
|
@keyframes dsh-row-in {
|
|
from { opacity: 0; }
|
|
}
|
|
|
|
.explorerEmpty {
|
|
padding: 16px;
|
|
font: var(--dsw-font-xxs-12);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
text-align: center;
|
|
}
|
|
|
|
/* Drag a file/folder over a tree row: the target directory row takes the
|
|
accent-tinted fill and a dashed business edge (drops land inside it; file
|
|
rows target their parent directory). The zone frame around the whole tree
|
|
is the portaled .uploadDropZone. */
|
|
.explorerRowDropTarget {
|
|
background: var(--dsw-alias-interactive-bg-hover-accent);
|
|
outline: 1px dashed var(--dsw-alias-state-business-primary);
|
|
outline-offset: -1px;
|
|
}
|
|
|
|
/* The drop mask: one pointer-inert scrim over the whole viewport, portaled
|
|
to document.body BELOW the zone frame — the panel-host float layer is
|
|
z-1000 (DSH's own page mask sits there too), so 1001/1002 keep this
|
|
transient surface on top. The mask is deliberately light: the conversation
|
|
column beneath it still takes drops into the chat natively, and the user
|
|
never loses sight of the tree. */
|
|
.uploadDropMask {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1001;
|
|
pointer-events: none;
|
|
background: color-mix(in srgb, var(--dsw-alias-bg-base) 62%, transparent);
|
|
animation: dsh-row-in 150ms var(--ds-ease-in-out);
|
|
}
|
|
|
|
/* The sidebar's drop surface: a pointer-inert frame portaled to
|
|
document.body, fixed over the explorer body's viewport rect. The hint pill
|
|
docks at the TOP edge of the zone (right under the search row, the first
|
|
thing the eye meets), leaving the rows — the actual drop targets —
|
|
aimable. */
|
|
.uploadDropZone {
|
|
position: fixed;
|
|
z-index: 1002;
|
|
pointer-events: none;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
padding: 12px;
|
|
border: 2px dashed var(--dsw-alias-border-l2);
|
|
border-radius: 8px;
|
|
background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 4%, transparent);
|
|
animation: dsh-row-in 150ms var(--ds-ease-in-out);
|
|
}
|
|
|
|
/* The zone's drop hero, docked at the TOP edge (right under the search
|
|
row, the first thing the eye meets): the tray illustration over the hint
|
|
pill — stacked so the rows below stay aimable. */
|
|
.uploadDropHero {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
max-width: 100%;
|
|
padding-top: 8px;
|
|
}
|
|
|
|
/* The drop art's two inks (the SVG strokes/fills take them via
|
|
currentColor): the accent for the rising arrow and the front card, a quiet
|
|
tint for the tray body and the back card, and the surface ink for the
|
|
motifs cut out of the cards. */
|
|
.uploadDropArtPrimary {
|
|
color: var(--dsw-alias-state-business-primary);
|
|
}
|
|
|
|
.uploadDropArtAccent {
|
|
color: var(--dsw-alias-state-business-tertiary);
|
|
}
|
|
|
|
.uploadDropArtCut {
|
|
color: var(--dsw-alias-bg-layer-1);
|
|
}
|
|
|
|
.uploadDropZonePill {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
box-sizing: border-box;
|
|
height: 28px;
|
|
max-width: 100%;
|
|
padding: 0 12px;
|
|
border: 1px solid var(--dsw-alias-border-l2);
|
|
border-radius: 999px;
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
box-shadow: var(--dsw-shadow-lv2);
|
|
color: var(--dsw-alias-label-primary);
|
|
font: var(--dsw-font-xxxs-11);
|
|
}
|
|
|
|
.uploadDropZoneText {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* The left zone's invitation: centered in the viewport space beside the
|
|
tree (inline width = the zone's left edge), telling the user the dimmed
|
|
conversation column still accepts drops — into the chat, natively. */
|
|
.uploadDropChatHint {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
z-index: 1003;
|
|
pointer-events: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
animation: dsh-row-in 150ms var(--ds-ease-in-out);
|
|
}
|
|
|
|
/* The invitation's content: the photo-cards illustration over the label. */
|
|
.uploadDropChatCard {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 10px;
|
|
max-width: 100%;
|
|
text-align: center;
|
|
color: var(--dsw-alias-label-primary);
|
|
font: var(--dsw-font-xxs-strong-12);
|
|
}
|
|
|
|
/* Full-window upload progress: blurred scrim + card (same mask/backdrop
|
|
tokens as the repo's Modal primitive; absolute within the tree panel so it
|
|
never covers the conversation column). */
|
|
.uploadOverlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 30;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--dsw-alias-bg-mask-1);
|
|
backdrop-filter: var(--dsw-mask-blur);
|
|
animation: dsh-row-in 150ms var(--ds-ease-in-out);
|
|
}
|
|
|
|
.uploadOverlayCard {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
min-width: 240px;
|
|
max-width: min(420px, calc(100% - 48px));
|
|
padding: 16px;
|
|
border: 1px solid var(--dsw-alias-border-l2);
|
|
border-radius: 8px;
|
|
background: var(--dsw-alias-bg-layer-2);
|
|
box-shadow: var(--dsw-shadow-lv3);
|
|
}
|
|
|
|
.uploadOverlayTitle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font: var(--dsw-font-xxs-strong-12);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
.uploadOverlayTitle > svg {
|
|
flex: none;
|
|
}
|
|
|
|
.uploadOverlayTitle > span {
|
|
min-width: 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.uploadOverlayProgress {
|
|
height: 6px;
|
|
border-radius: 3px;
|
|
background: var(--dsw-alias-border-l2);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.uploadOverlayProgressFill {
|
|
height: 100%;
|
|
border-radius: 3px;
|
|
background: var(--dsw-alias-interactive-bg-hover-accent);
|
|
transition: width 150ms var(--ds-ease-in-out);
|
|
}
|
|
|
|
.uploadOverlayStatus {
|
|
min-height: 1em;
|
|
font: var(--dsw-font-xxxs-11);
|
|
font-variant-numeric: tabular-nums;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.uploadOverlayCancel {
|
|
align-self: flex-end;
|
|
height: 28px;
|
|
padding: 0 12px;
|
|
border: 1px solid var(--dsw-alias-border-l2);
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
color: var(--dsw-alias-label-primary);
|
|
font: var(--dsw-font-xxs-strong-12);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.uploadOverlayCancel:hover:not(:disabled) {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
border-color: var(--dsw-alias-border-l2);
|
|
}
|
|
|
|
.uploadOverlayCancel:disabled {
|
|
opacity: 0.4;
|
|
cursor: default;
|
|
}
|
|
|
|
/* ── Editor ────────────────────────────────────────────────────────────── */
|
|
|
|
.editor {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.editorHeader {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 8px;
|
|
border-bottom: 1px solid var(--dsw-alias-border-l1);
|
|
}
|
|
|
|
.editorTitle {
|
|
flex: 1;
|
|
min-width: 0;
|
|
font: var(--dsw-font-xxs-strong-12);
|
|
color: var(--dsw-alias-label-secondary);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Merged mode (the editorExplorer pref): the header's path input replaces
|
|
the plain title, and a toggleable file tree docks at the tab's right edge. */
|
|
.editorPathInput {
|
|
flex: 1;
|
|
min-width: 0;
|
|
box-sizing: border-box;
|
|
height: 28px;
|
|
padding: 0 10px;
|
|
border: 1px solid var(--dsw-alias-border-l1);
|
|
border-radius: 6px;
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
color: var(--dsw-alias-label-primary);
|
|
font: var(--dsw-font-xxs-12);
|
|
}
|
|
|
|
.editorPathInput:focus {
|
|
outline: none;
|
|
border-color: var(--dsw-alias-border-l2);
|
|
}
|
|
|
|
/* The tree-panel toggle in the header: active = panel open (the selected
|
|
fill of the tab strip). */
|
|
.editorTreeToggleActive {
|
|
color: var(--dsw-alias-label-primary);
|
|
background: var(--dsw-alias-interactive-bg-active);
|
|
}
|
|
|
|
.editorBody {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
}
|
|
|
|
.editorMain {
|
|
flex: 1;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* The docked file tree: the wrapper owns the (drag-adjustable) width and
|
|
the hairline separation; the resize handle is a wider invisible strip on
|
|
its left edge with a hover affordance. */
|
|
.editorTreeDock {
|
|
position: relative;
|
|
flex: none;
|
|
min-height: 0;
|
|
display: flex;
|
|
border-left: 1px solid var(--dsw-alias-border-l1);
|
|
}
|
|
|
|
.editorTreeResize {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
/* Inside the dock (left edge): pointer capture on the handle keeps the
|
|
drag alive even when the pointer leaves the strip. */
|
|
left: 0;
|
|
width: 6px;
|
|
cursor: col-resize;
|
|
touch-action: none;
|
|
z-index: 3;
|
|
}
|
|
|
|
.editorTreeResize:hover {
|
|
background: var(--dsw-alias-border-l2);
|
|
}
|
|
|
|
.editorTreePanel {
|
|
/* Relative so the upload overlay and drop pill can cover the tree exactly. */
|
|
position: relative;
|
|
flex: 1;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* The tree panel's full-window form (the `full` prop): fill the tab body. */
|
|
.editorTreePanelFull {
|
|
flex: 1;
|
|
}
|
|
|
|
.editorTreeSearch {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 8px;
|
|
border-bottom: 1px solid var(--dsw-alias-border-l1);
|
|
}
|
|
|
|
.editorSearchInput {
|
|
flex: 1;
|
|
min-width: 0;
|
|
height: 26px;
|
|
padding: 0 10px;
|
|
border: 1px solid var(--dsw-alias-border-l1);
|
|
border-radius: 6px;
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
color: var(--dsw-alias-label-primary);
|
|
font: var(--dsw-font-xxs-12);
|
|
}
|
|
|
|
.editorSearchInput:focus {
|
|
outline: none;
|
|
border-color: var(--dsw-alias-border-l2);
|
|
}
|
|
|
|
.editorSearchHint {
|
|
padding: 8px 12px;
|
|
font: var(--dsw-font-xxs-12);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
.editorSearchResult {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
height: 28px;
|
|
padding: 0 8px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
color: var(--dsw-alias-label-primary);
|
|
font: var(--dsw-font-xxs-12);
|
|
line-height: 28px;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* A directory hit is a navigation target, not an openable file: the folder
|
|
glyph and the dimmer label say so before the click. */
|
|
.editorSearchResultDir {
|
|
color: var(--dsw-alias-label-secondary);
|
|
}
|
|
|
|
.editorSearchResultLabel {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.editorSearchResult:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
}
|
|
|
|
.editorStatus {
|
|
font: var(--dsw-font-xxxs-11);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
.editorStatusError {
|
|
color: var(--dsw-alias-state-error-primary);
|
|
}
|
|
|
|
.dirtyDot {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
background: var(--dsw-alias-state-warn-primary);
|
|
flex: none;
|
|
}
|
|
|
|
.editorPlaceholder {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font: var(--dsw-font-xxs-12);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
padding: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* The unregistered tab type shown by the orphaned-tab placeholder. */
|
|
.orphanedType {
|
|
display: block;
|
|
margin-top: 8px;
|
|
font-size: 12px;
|
|
opacity: 0.7;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
/* Binary / download-only files (legacy OLE .doc/.xls/.ppt, unknown binaries):
|
|
a centered notice plus a download link — the user always gets the file. */
|
|
.editorBinary {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
padding: 24px 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
.editorBinaryNotice {
|
|
font: var(--dsw-font-xxs-12);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
.editorDownloadLink {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 14px;
|
|
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-strong-12);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition:
|
|
background var(--ds-transition-duration-slow) var(--ds-ease-in-out),
|
|
border-color var(--ds-transition-duration-slow) var(--ds-ease-in-out);
|
|
}
|
|
|
|
.editorDownloadLink:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
border-color: var(--dsw-alias-border-l2);
|
|
}
|
|
|
|
.editorError {
|
|
padding: 12px 16px;
|
|
font: var(--dsw-font-xxs-12);
|
|
color: var(--dsw-alias-state-error-primary);
|
|
}
|
|
|
|
.editorBanner {
|
|
flex: none;
|
|
padding: 4px 8px;
|
|
font: var(--dsw-font-xxxs-11);
|
|
color: var(--dsw-alias-state-warn-label);
|
|
background: var(--dsw-alias-state-warn-tertiary);
|
|
}
|
|
|
|
/* Inline action of a banner (the save-conflict "reload" link). */
|
|
.editorBannerAction {
|
|
margin-left: 8px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: none;
|
|
font: inherit;
|
|
color: inherit;
|
|
text-decoration: underline;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* ── Uncommitted-change gutter (issue #212) ─────────────────────────────────
|
|
VS Code's restraint: the line NUMBER takes the tone of its change, and a
|
|
2px bar sits at the far left of the numbers. The classes are handed to
|
|
CodeMirror as gutter-marker class names (see editor-git-gutter.ts), which
|
|
is why they are referenced from TS as well as styled here. The tones are
|
|
the file tree's own mapping (added/untracked green, modified amber,
|
|
deleted red). Deliberately nothing else: no end-of-line widget, no badge,
|
|
no animation, no gradient. */
|
|
.editorGitAdd { color: var(--dsw-alias-state-success-primary); }
|
|
.editorGitMod { color: var(--dsw-alias-state-warn-primary); }
|
|
.editorGitDel { color: var(--dsw-alias-state-error-primary); }
|
|
|
|
/* The bar column: 2px of ink, plus the hidden spacer that keeps the width
|
|
reserved while the file is clean (the numbers never shift sideways). */
|
|
.editorGitBarGutter {
|
|
width: 2px;
|
|
min-width: 2px;
|
|
}
|
|
|
|
.editorGitBar,
|
|
.editorGitBarSpacer {
|
|
width: 2px;
|
|
height: 100%;
|
|
}
|
|
|
|
.editorGitBarAdd { background: var(--dsw-alias-state-success-primary); }
|
|
.editorGitBarMod { background: var(--dsw-alias-state-warn-primary); }
|
|
.editorGitBarDel { background: var(--dsw-alias-state-error-primary); }
|
|
|
|
/* Hover blame: plain text, two rows (author · when, then the summary). */
|
|
.editorBlame {
|
|
max-width: 420px;
|
|
padding: 4px 8px;
|
|
font: var(--dsw-font-xxxs-11);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
.editorBlameHead {
|
|
color: var(--dsw-alias-label-secondary);
|
|
}
|
|
|
|
.editorBlameSummary {
|
|
margin-top: 2px;
|
|
color: var(--dsw-alias-label-primary);
|
|
white-space: pre-wrap;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
/* Live sandbox status row (HTML preview / browser tab): GREEN while the
|
|
sandbox is on (with the one-tap temporary unlock), RED while it is off
|
|
(global setting or temporary unlock) — the red state is the persistent
|
|
warning that the page runs on the GUI's own origin. */
|
|
.sandboxStatus {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 4px 10px;
|
|
font: var(--dsw-font-xxxs-11);
|
|
}
|
|
|
|
.sandboxStatusOn {
|
|
color: var(--dsw-alias-label-secondary);
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
border-bottom: 1px solid var(--dsw-alias-border-l1);
|
|
}
|
|
|
|
.sandboxStatusOff {
|
|
color: var(--dsw-alias-state-error-primary);
|
|
background: color-mix(in srgb, var(--dsw-alias-state-error-primary) 10%, transparent);
|
|
border-bottom: 1px solid color-mix(in srgb, var(--dsw-alias-state-error-primary) 45%, transparent);
|
|
}
|
|
|
|
.sandboxDot {
|
|
flex: none;
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--dsw-alias-state-success-primary);
|
|
}
|
|
|
|
.sandboxStatusOff .sandboxDot {
|
|
background: var(--dsw-alias-state-error-primary);
|
|
}
|
|
|
|
.sandboxStatusText {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.sandboxAction {
|
|
flex: none;
|
|
padding: 2px 8px;
|
|
border: 1px solid var(--dsw-alias-border-l2);
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
font: inherit;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.sandboxAction:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
}
|
|
|
|
/* The HTML preview iframe: fills the editor body. Route-src (never srcdoc)
|
|
so the frame is cross-origin by construction even if the sandbox
|
|
attribute is ever dropped; sandboxed by default (see TextEditor). */
|
|
.editorHtml {
|
|
flex: 1;
|
|
min-height: 0;
|
|
width: 100%;
|
|
border: none;
|
|
background: var(--dsw-alias-bg-base);
|
|
}
|
|
|
|
/* ── Browser tab ──────────────────────────────────────────────────────── */
|
|
|
|
.browser {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.browserBar {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 6px 8px;
|
|
border-bottom: 1px solid var(--dsw-alias-border-l1);
|
|
}
|
|
|
|
.browserInput {
|
|
flex: 1;
|
|
min-width: 0;
|
|
height: 28px;
|
|
padding: 0 10px;
|
|
border: 1px solid var(--dsw-alias-border-l1);
|
|
border-radius: 6px;
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
color: var(--dsw-alias-label-primary);
|
|
font: var(--dsw-font-xxs-12);
|
|
}
|
|
|
|
.browserInput:focus {
|
|
outline: none;
|
|
border-color: var(--dsw-alias-border-l2);
|
|
}
|
|
|
|
.browserMessage {
|
|
flex: none;
|
|
padding: 4px 12px;
|
|
font: var(--dsw-font-xxxs-11);
|
|
color: var(--dsw-alias-state-warn-label);
|
|
background: var(--dsw-alias-state-warn-tertiary);
|
|
}
|
|
|
|
.browserFrame {
|
|
flex: 1;
|
|
min-height: 0;
|
|
width: 100%;
|
|
border: none;
|
|
background: var(--dsw-alias-bg-base);
|
|
}
|
|
|
|
.browserStart {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
text-align: center;
|
|
font: var(--dsw-font-xs-13);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
/* Embed-refusal panel (X-Frame-Options / frame-ancestors): replaces the
|
|
blank refused iframe with the reason + open-in-browser actions. */
|
|
.browserBlocked {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
padding: 24px;
|
|
text-align: center;
|
|
color: var(--dsw-alias-state-warn-primary);
|
|
}
|
|
|
|
.browserBlockedTitle {
|
|
font: var(--dsw-font-xxs-strong-12);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
.browserBlockedDesc {
|
|
max-width: 280px;
|
|
font: var(--dsw-font-xxxs-11);
|
|
color: var(--dsw-alias-label-secondary);
|
|
}
|
|
|
|
.browserBlockedActions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.browserBlockedButton {
|
|
padding: 4px 12px;
|
|
border: 1px solid var(--dsw-alias-border-l2);
|
|
border-radius: 6px;
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
color: var(--dsw-alias-label-primary);
|
|
font: var(--dsw-font-xxxs-11);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.browserBlockedButton:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
}
|
|
|
|
.editorCm {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
background: transparent;
|
|
}
|
|
|
|
.editorCmHidden {
|
|
display: none;
|
|
}
|
|
|
|
/* CodeMirror fills the pane; the theme supplies its own token palette
|
|
(a designed dark theme, same policy as the xterm palette). */
|
|
.editorCm :global(.cm-editor) {
|
|
height: 100%;
|
|
}
|
|
|
|
/* Code lines get the same 12/16 inset as the markdown preview, so toggling
|
|
preview/edit never jumps the text's resting position. */
|
|
.editorCm :global(.cm-scroller) {
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.editorCm :global(.cm-editor.cm-focused) {
|
|
outline: none;
|
|
}
|
|
|
|
/* Preview / edit segmented toggle (markdown and other previewable files). */
|
|
.editorModeToggle {
|
|
flex: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: 2px;
|
|
border: 1px solid var(--dsw-alias-border-l1);
|
|
border-radius: 6px;
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
}
|
|
|
|
.editorModeButton {
|
|
padding: 2px 8px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
font: var(--dsw-font-xxxs-11);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.editorModeButton:hover {
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
.editorModeActive {
|
|
background: var(--dsw-alias-bg-base);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
.editorMd {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
padding: 12px 16px;
|
|
font: var(--dsw-font-xs-13);
|
|
}
|
|
|
|
/* The DSH CodeBlock banner is position:sticky (top:0, z-index:6) so a block
|
|
keeps its copy action reachable inside a per-message scroll container —
|
|
the right call in chat, where each block owns its scroll box. In the file
|
|
preview every fence shares one `.editorMd` scroll container, so that sticky
|
|
banner pins to the top of the viewport until the *whole block* scrolls
|
|
past, which reads as a floating header over the document. Neutralize the
|
|
stickiness here (bannerWrap is the first element child of `.md-code-block`;
|
|
mermaid mounts are excluded since their own chrome replaces the banner). */
|
|
.editorMd :global(.md-code-block:not([data-mermaid-processed])) > :global(div):first-child {
|
|
position: static;
|
|
z-index: auto;
|
|
}
|
|
|
|
/* ── Mermaid diagram block (markdown preview, mermaid lazy chunk) ────────
|
|
Mirrors the md-code-block chrome the DSH CodeBlock renders, so a diagram
|
|
reads as a peer of the surrounding fences: hairline border, layer-2
|
|
header with the info string + copy action, layer-1 body. The SVG body is
|
|
static (no bindFunctions) and sanitized (no foreignObject/script/@attrs/
|
|
hrefs), so it carries no event surface beyond the copy button; the body
|
|
click opens the zoom modal on a sanitized clone. */
|
|
|
|
.mermaidWrap {
|
|
margin: 6px 0;
|
|
border: 1px solid var(--dsw-alias-border-l1);
|
|
border-radius: 6px;
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.mermaidHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 6px;
|
|
padding: 4px 8px;
|
|
border-bottom: 1px solid var(--dsw-alias-border-l1);
|
|
background: var(--dsw-alias-bg-layer-2);
|
|
}
|
|
|
|
.mermaidInfo {
|
|
font: var(--dsw-font-xxxs-strong-11);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
.mermaidCopy {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 0 6px;
|
|
height: 20px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
color: var(--dsw-alias-label-secondary);
|
|
font: var(--dsw-font-xxxs-11);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.mermaidCopy:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
.mermaidBody {
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 10px;
|
|
overflow: auto;
|
|
cursor: zoom-in;
|
|
}
|
|
|
|
.mermaidBody :global(svg) {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.mermaidError {
|
|
padding: 6px 10px;
|
|
border-bottom: 1px solid var(--dsw-alias-border-l1);
|
|
color: var(--dsw-alias-state-error-primary);
|
|
font: var(--dsw-font-xxxs-11);
|
|
}
|
|
|
|
/* The diagram source shown under a render error (helps fixing the fence). */
|
|
.mermaidCode {
|
|
margin: 0;
|
|
padding: 8px 10px;
|
|
overflow: auto;
|
|
font: var(--dsw-font-xxxs-11);
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
}
|
|
|
|
/* The mermaid markdown container (single MarkdownText pass): a swapped
|
|
code block keeps its React-managed .md-code-block wrapper in the tree
|
|
(reconciliation safety), but the wrapper's own box is suppressed so only
|
|
the diagram chrome renders; the swapped-in host div flows as a block. */
|
|
.mermaidMarkdown :global(.md-code-block[data-mermaid-processed]) {
|
|
display: contents;
|
|
}
|
|
|
|
/* ── Mermaid zoom modal (click-to-enlarge; portalled to document.body) ──
|
|
Fixed overlay above the DSH overlay stack (1000+), token-driven surface.
|
|
The stage centers the (sanitized, cloned) svg and the modal owns the
|
|
transform; the drag/zoom listeners live in the component, nothing here
|
|
targets global class names. */
|
|
|
|
.mermaidModal {
|
|
position: fixed;
|
|
inset: 0;
|
|
/* Viewport-sized body child: the shell makes every direct body child
|
|
`no-drag` (`html[data-platform=darwin] body > :not(#root)`, an
|
|
id-bearing selector, hence `!important`), and app-region ignores
|
|
pointer-events — without this reset the open modal cancels every
|
|
window-drag strip under it plus the macOS double-click-title zoom.
|
|
Same contract as the panel host rule above; `initial` computes to the
|
|
neutral `none`, and the toolbar's buttons keep their own no-drag from
|
|
the shell's `:is(button, …)` rule. */
|
|
-webkit-app-region: initial !important;
|
|
z-index: 1000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--dsw-alias-bg-mask-1);
|
|
backdrop-filter: blur(2px);
|
|
}
|
|
|
|
.mermaidModalToolbar {
|
|
position: absolute;
|
|
top: 16px;
|
|
right: 16px;
|
|
display: flex;
|
|
gap: 8px;
|
|
z-index: 10;
|
|
}
|
|
|
|
.mermaidModalButton {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--dsw-alias-border-l1);
|
|
background: var(--dsw-alias-bg-layer-2);
|
|
color: var(--dsw-alias-label-primary);
|
|
font: var(--dsw-font-xs-strong-13);
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.mermaidModalButton:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
}
|
|
|
|
.mermaidModalStage {
|
|
width: 90vw;
|
|
height: 80vh;
|
|
overflow: hidden;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.mermaidModalStage :global(svg) {
|
|
max-width: none;
|
|
max-height: none;
|
|
cursor: grab;
|
|
transform-origin: center center;
|
|
user-select: none;
|
|
-webkit-user-drag: none;
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
padding: 16px;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.mermaidModalStage :global(svg):active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.mermaidModalHint {
|
|
position: absolute;
|
|
bottom: 16px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
font: var(--dsw-font-xxxs-11);
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* The floating "add to conversation" button anchored above a text
|
|
selection in the preview/code viewers. Portalled to document.body and
|
|
position:fixed, so the editor's overflow clips cannot crop it; flat
|
|
chrome like the rest of the sidebar (hairline border, no shadow).
|
|
Fills come from the menu/overlay pair, not the layer/hover pair: this
|
|
button floats over text with no panel behind it, while skins make the
|
|
layer tokens translucent (~0.45) and interactive-bg-hover a bare
|
|
0.06-0.08 tint, neither of which is readable over the text beneath. */
|
|
.selectionPopup {
|
|
position: fixed;
|
|
z-index: 60;
|
|
transform: translate(-50%, calc(-100% - 8px));
|
|
display: inline-flex;
|
|
align-items: center;
|
|
height: 28px;
|
|
padding: 0 10px;
|
|
border: 1px solid var(--dsw-alias-border-l1);
|
|
border-radius: 6px;
|
|
background: var(--dsw-specific-menu);
|
|
color: var(--dsw-alias-label-primary);
|
|
font: var(--dsw-font-xxxs-strong-11);
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.selectionPopup:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover-solid);
|
|
}
|
|
|
|
.editorPdf {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--dsw-alias-bg-base);
|
|
}
|
|
|
|
.editorPdfToolbar {
|
|
flex: none;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
padding: 6px 8px;
|
|
border-bottom: 1px solid var(--dsw-alias-border-l1);
|
|
}
|
|
|
|
.editorPdfStage {
|
|
position: relative;
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
}
|
|
|
|
.editorPdfFrame {
|
|
flex: 1;
|
|
min-height: 0;
|
|
width: 100%;
|
|
border: none;
|
|
background: var(--dsw-alias-bg-base);
|
|
}
|
|
|
|
.editorPdfFrameBlocked {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.editorPdfDragShield {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 4;
|
|
pointer-events: none;
|
|
background: transparent;
|
|
}
|
|
|
|
.editorPdfDragShieldActive {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
/* Tab drag must switch iframe hit-testing before the pointer can enter the
|
|
Chromium PDF browsing context. The body flag is set synchronously by the
|
|
drag source, avoiding React render timing entirely. */
|
|
:global(body[data-dsh-tab-dragging]) .editorPdfFrame {
|
|
pointer-events: none !important;
|
|
}
|
|
|
|
:global(body[data-dsh-tab-dragging]) .editorPdfDragShield {
|
|
pointer-events: auto !important;
|
|
}
|
|
|
|
/* ── Crash containment ─────────────────────────────────────────────────── */
|
|
|
|
.boundaryError {
|
|
position: fixed;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
z-index: 50;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
align-items: flex-start;
|
|
padding: 16px;
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
border-left: 1px solid var(--dsw-alias-border-l2);
|
|
font: var(--dsw-font-xxs-12);
|
|
color: var(--dsw-alias-state-error-primary);
|
|
overflow: auto;
|
|
}
|
|
|
|
/* The retry pill of the crash UI: the per-tab RenderBoundary block and the
|
|
lazy-chunk load failure both render it, so the terminal-era name stays. */
|
|
.terminalRetry {
|
|
flex: none;
|
|
padding: 1px 8px;
|
|
border: 1px solid var(--dsw-alias-border-l2);
|
|
border-radius: 999px;
|
|
background: var(--dsw-alias-bg-layer-2);
|
|
color: var(--dsw-alias-label-secondary);
|
|
font: var(--dsw-font-xxxs-strong-11);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.terminalRetry:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
/* The PER-TAB error strip: fills one tab's content area (unlike
|
|
.boundaryError, the full-height fixed rail for shell-level crashes), so a
|
|
crashing viewer/editor never hides the toggle cluster or the other tabs. */
|
|
.tabBoundaryError {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
align-items: flex-start;
|
|
padding: 12px 16px;
|
|
overflow: auto;
|
|
font: var(--dsw-font-xxs-12);
|
|
color: var(--dsw-alias-state-error-primary);
|
|
}
|
|
|
|
/* ── Native right-Sidebar tab-body host ──────────────────────────────────
|
|
DSH's native tab body host (`.paneBody` in dsh-client-ui-dockkit) is a
|
|
BLOCK scroller with a definite height, not a flex container — the host's
|
|
own tab bodies (TextPreview, FilesBody) declare `height: 100%` on their
|
|
root for exactly this reason. Our tab roots declare `flex: 1; min-height:
|
|
0`, which collapses to content height in that block host (the side-chat
|
|
composer would float mid-pane). A column flex host of `height: 100%`
|
|
restores the `flex: 1` semantics our tab roots rely on, and gives
|
|
third-party descriptors' components the same box inside the native pane.
|
|
The wrapper div carries `data-dsh-native-tab-host` so the e2e lane can
|
|
assert the fill (mirroring `data-dsh-better-sidebar`). */
|
|
.nativeTabHost {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* ── Diff tab (generic states + shell; the changes tab owns the rest in
|
|
changes.module.css, and the diff rows themselves live in
|
|
diff/diff.module.css) ────────────────────────────────────────────────── */
|
|
|
|
.gitEmpty {
|
|
padding: 4px 12px 8px;
|
|
font: var(--dsw-font-xxs-12);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
.gitPlaceholder {
|
|
padding: 16px;
|
|
font: var(--dsw-font-xxs-12);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
text-align: center;
|
|
}
|
|
|
|
.gitError {
|
|
padding: 8px 12px;
|
|
font: var(--dsw-font-xxs-12);
|
|
color: var(--dsw-alias-state-error-primary);
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
/* The diff tab (a change expanded from the changes tab's preview, like
|
|
VSCode's diff editor): header + scrollable diff body, no horizontal
|
|
panning; rows render through the shared diff module. */
|
|
.gitDiffTab {
|
|
flex: 1;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.gitDiffTabHeader {
|
|
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);
|
|
}
|
|
|
|
.gitDiffTabTitle {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font: var(--dsw-font-xxs-strong-12);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
/* One aligned diff line: old gutter / new gutter / code. Lines WRAP instead
|
|
of scrolling horizontally (the tab-page rule: fill the width adaptively),
|
|
with the long-token fallback breaking anywhere a space never comes. */
|
|
|
|
/* A history row: line 1 = hash + subject, line 2 = ref badges + author/date
|
|
(badges live on the second line so they never crowd the subject). */
|
|
|
|
/* ── Shared interaction rules ──────────────────────────────────────────── */
|
|
|
|
/* Keyboard focus stays visible on every interactive control (the styling
|
|
policy requires focus visibility; the accent token doubles as the ring). */
|
|
.toggleButton:focus-visible,
|
|
.bottomClose:focus-visible,
|
|
.iconButton:focus-visible,
|
|
.tab:focus-visible,
|
|
.tabClose:focus-visible,
|
|
.tabBarPlus:focus-visible,
|
|
.paneCard:focus-visible,
|
|
.explorerRow:focus-visible,
|
|
.explorerRef:focus-visible,
|
|
.terminalRetry:focus-visible,
|
|
.editorModeButton:focus-visible,
|
|
.editorDownloadLink:focus-visible,
|
|
.editorPptxButton:focus-visible,
|
|
.editorDocxZoomRange:focus-visible {
|
|
outline: 2px solid var(--dsw-alias-interactive-bg-hover-accent);
|
|
outline-offset: -1px;
|
|
}
|
|
|
|
/* Reduced motion: no slides, fades or color transitions. */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.bottomPanel,
|
|
.bottomPanelHidden,
|
|
.toggleButton,
|
|
.tab,
|
|
.tabBarPlus,
|
|
.paneCard,
|
|
.explorerRow,
|
|
.divider,
|
|
.dividerRow::after,
|
|
.dividerCol::after {
|
|
transition: none;
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
/* ── Narrow (mobile) viewport ──────────────────────────────────────────── */
|
|
|
|
/* Pairs with NARROW_MAX_WIDTH = 768 in src/client/breakpoints.ts: widths
|
|
strictly below 768px (i.e. max-width: 767px) get the phone-width tab
|
|
rhythm; the bottom workbench keeps its own geometry (it spans the center
|
|
column at every width). */
|
|
@media (max-width: 767px) {
|
|
/* Narrower tabs: a phone-width drawer fits more open tabs before the
|
|
strip scrolls. */
|
|
.tab {
|
|
min-width: 48px;
|
|
max-width: 128px;
|
|
}
|
|
}
|
|
|
|
/* The file tree's plugin "open with" menu rows: the label area is a
|
|
BLOCK-level flex row that fills the primitives `.itemLabel` span (which is
|
|
itself `flex: 1` inside the row), so the trailing control — the pushpin on
|
|
submenu rows, the chevron on the submenu parent — docks at the row's far
|
|
right, exactly like the trailing check on selected rows of every other
|
|
menu. */
|
|
.openWithLabel {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
.openWithName {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* The trailing "expands into a submenu" chevron on the open-with parent row
|
|
(the primitives Menu renders no arrow for submenu parents). */
|
|
.openWithChevron {
|
|
flex: none;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
/* The pushpin toggle on an "open with" submenu row: brand ink once the
|
|
target is pinned to the menu's top level. Sized for the compact menu's
|
|
26px rows (16px box, 12px glyph) — proportionate without overflowing. */
|
|
.openWithPin {
|
|
flex: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 5px;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.openWithPin:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
.openWithPinActive {
|
|
color: var(--dsw-alias-state-business-primary);
|
|
}
|
|
|
|
/* ── Markdown preview: raw-HTML runs + table of contents ─────────────────
|
|
The HTML runs lifted out of the markdown source (MarkdownHtml.tsx) render
|
|
as sanitized block leaves; the TOC is a zero-height sticky bar keeping the
|
|
outline button pinned at the preview's top-right without consuming layout.
|
|
All visuals ride the alias tokens (skin system follows automatically). */
|
|
|
|
/* A sanitized HTML run leaf (block-level box; content is DOMPurify output). */
|
|
.editorHtmlBlock {
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.editorHtmlBlock img,
|
|
.editorHtmlBlock video {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.editorHtmlBlock details {
|
|
margin: 4px 0;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
/* A `<summary>` the renderer hoisted out of a leaf is a direct child of its
|
|
`<details>` (see MarkdownHtml.tsx), so it no longer sits inside
|
|
`.editorHtmlBlock` — match it against the preview container too. */
|
|
.editorHtmlBlock summary,
|
|
.editorMd details > summary {
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* The zero-height sticky bar: occupies no layout, keeps the button visible
|
|
while the preview scrolls, and lets pointer events pass through the bar
|
|
itself (only the interactive children re-enable them). The bar's stacking
|
|
context also frames the outline panel, so its z-index must clear the DSH
|
|
CodeBlock banner (z-index:6) or the popover paints beneath a sticky fence
|
|
header. 7 sits just above that banner and below the portalled selection
|
|
popup (60) / mermaid modal (1000). */
|
|
.tocBar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 7;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
height: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.tocButton {
|
|
pointer-events: auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 26px;
|
|
height: 26px;
|
|
margin: 4px 2px 0 0;
|
|
padding: 0;
|
|
border: 1px solid var(--dsw-alias-border-l1);
|
|
border-radius: 6px;
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
color: var(--dsw-alias-label-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tocButton:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
/* The outline popover, anchored under the button (the bar is the containing
|
|
block; its height is 0, so the panel drops below the pinned button row). */
|
|
.tocPanel {
|
|
position: absolute;
|
|
top: 32px;
|
|
right: 2px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: min(300px, 82%);
|
|
max-height: 60vh;
|
|
overflow-y: auto;
|
|
padding: 4px;
|
|
border: 1px solid var(--dsw-alias-border-l1);
|
|
border-radius: 8px;
|
|
background: var(--dsw-alias-bg-layer-2);
|
|
box-shadow: var(--dsw-shadow-lv2);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.tocItem {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
padding: 4px 8px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
color: var(--dsw-alias-label-secondary);
|
|
font: var(--dsw-font-xxs-12);
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tocItem:hover {
|
|
background: var(--dsw-alias-interactive-bg-hover);
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
/* Indent by heading level (h2 = one step, h3 = two steps…). */
|
|
.tocItem[data-level='2'] { padding-left: 18px; }
|
|
.tocItem[data-level='3'] { padding-left: 28px; }
|
|
.tocItem[data-level='4'] { padding-left: 38px; }
|
|
.tocItem[data-level='5'] { padding-left: 48px; }
|
|
.tocItem[data-level='6'] { padding-left: 58px; }
|
|
|
|
/* The tiny level number keeps deep outlines scannable. */
|
|
.tocItemLevel {
|
|
flex: none;
|
|
font: var(--dsw-font-xxxs-11);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
}
|
|
|
|
.tocItemText {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* The jumped-to heading flashes once (the class is added to the host-rendered
|
|
heading element by md-toc.tsx; @keyframes rides the CSS module). */
|
|
@keyframes dsh-toc-flash {
|
|
0%, 60% { background: var(--dsw-alias-interactive-bg-hover); }
|
|
100% { background: transparent; }
|
|
}
|
|
|
|
.tocFlash {
|
|
animation: dsh-toc-flash 1.2s ease-out;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* ── Read-only paged preview (files above the editable threshold) ────────
|
|
The editor answers "too big to edit" with a windowed reader rather than a
|
|
refusal. Two row shapes share the chrome: the JSONL record list (one
|
|
expandable record per row) and the log-style line list (monospace, no
|
|
wrapping, horizontal scroll). Every ink is a theme token. */
|
|
.largeFile {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.largeFileNotice {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
padding: 4px 8px;
|
|
font: var(--dsw-font-xxxs-11);
|
|
color: var(--dsw-alias-state-warn-label);
|
|
background: var(--dsw-alias-state-warn-tertiary);
|
|
}
|
|
|
|
.largeFileDownload {
|
|
margin-left: auto;
|
|
color: inherit;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.largeFileBody {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
}
|
|
|
|
.largeFileRecords {
|
|
padding: 4px 0;
|
|
}
|
|
|
|
/* The record list is an <ol> whose `start` attribute is the first record's
|
|
absolute number: the marker itself is suppressed, since the number column
|
|
is rendered explicitly and must stay aligned with the summary row. */
|
|
.largeFileList {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.largeFileRecord {
|
|
display: flex;
|
|
gap: 8px;
|
|
padding: 2px 8px;
|
|
}
|
|
|
|
.largeFileRecordExpanded {
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
}
|
|
|
|
.largeFileRecordInvalid {
|
|
color: var(--dsw-alias-state-error-primary);
|
|
}
|
|
|
|
.largeFileRecordNo {
|
|
flex: none;
|
|
min-width: 4ch;
|
|
text-align: right;
|
|
font: var(--dsw-font-xxxs-11);
|
|
color: var(--dsw-alias-label-tertiary);
|
|
user-select: none;
|
|
}
|
|
|
|
.largeFileRecordBody {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.largeFileRecordSummary {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 0;
|
|
border: 0;
|
|
background: none;
|
|
text-align: left;
|
|
font: var(--ds-font-family-code);
|
|
font-size: 12px;
|
|
color: var(--dsw-alias-label-primary);
|
|
white-space: pre;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.largeFileRecordSummary:disabled {
|
|
cursor: default;
|
|
}
|
|
|
|
.largeFileRecordRaw {
|
|
margin: 2px 0 0;
|
|
font: var(--ds-font-family-code);
|
|
font-size: 12px;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.largeFileRecordTree {
|
|
margin-top: 2px;
|
|
font: var(--ds-font-family-code);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.largeFileLines {
|
|
padding: 4px 0;
|
|
font: var(--ds-font-family-code);
|
|
font-size: 12px;
|
|
white-space: pre;
|
|
}
|
|
|
|
.largeFileLine {
|
|
display: flex;
|
|
gap: 8px;
|
|
padding: 0 8px;
|
|
}
|
|
|
|
.largeFileLineNo {
|
|
flex: none;
|
|
min-width: 5ch;
|
|
text-align: right;
|
|
color: var(--dsw-alias-label-tertiary);
|
|
user-select: none;
|
|
}
|
|
|
|
.largeFileLineText {
|
|
flex: none;
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
.largeFilePager {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 8px;
|
|
border-top: 1px solid var(--dsw-alias-border-l2);
|
|
background: var(--dsw-alias-bg-layer-2);
|
|
}
|
|
|
|
.largeFilePageLabel {
|
|
flex: 1;
|
|
min-width: 0;
|
|
text-align: center;
|
|
font: var(--dsw-font-xxxs-11);
|
|
color: var(--dsw-alias-label-secondary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|