- sidebar.module.css: 删掉 editorDownloadLink(含 :hover 与 focus-visible 组内一行)、mediaPreviewNotice、largeFileDownload 及其说明注释;largeFileNoticeAction 仍被 LargeFileView 使用,保留。 - terminal.module.css: 删掉 .notice / .error / .action / .action:hover,以及同组零引用的 .noticeBlock。
68 lines
2.0 KiB
CSS
68 lines
2.0 KiB
CSS
/*
|
|
* The bottom terminal's shell (src/client/TerminalView.tsx).
|
|
*
|
|
* Skin contract (guide §12): every declaration resolves to a `--dsw-*` /
|
|
* `--ds-*` token, and `color` never carries a literal — `tests/theme.spec.ts`
|
|
* enforces the second half mechanically. The screen element is also the token
|
|
* BRIDGE for xterm's own palette: the component reads its computed
|
|
* `background-color` / `color` / `font-family` back and hands those concrete
|
|
* values to the emulator, so a skin flip re-themes the terminal in place.
|
|
*/
|
|
|
|
.root {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
box-sizing: border-box;
|
|
height: 100%;
|
|
min-height: 0;
|
|
color: var(--dsw-alias-label-primary);
|
|
}
|
|
|
|
.screen {
|
|
flex: 1;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
padding: 8px;
|
|
overflow: hidden;
|
|
color: var(--dsw-alias-label-primary);
|
|
/* No fill of its own: the terminal sits inside the workbench and must read
|
|
as part of its surface. Painting a token here drew a second rectangle
|
|
inside the panel. */
|
|
background: transparent;
|
|
font-family: var(--ds-font-family-code, monospace);
|
|
}
|
|
|
|
.screen .xterm {
|
|
height: 100%;
|
|
}
|
|
|
|
/* xterm owns these classes, so they MUST be wrapped in `:global()`: CSS
|
|
Modules would otherwise hash them into `.o8IiwG_xterm-viewport` and match
|
|
nothing in the real DOM.
|
|
|
|
The extra `.xterm` in the selector is NOT redundant either. xterm.css ships
|
|
`.xterm .xterm-viewport { background-color: #000 }` at specificity 0,2,0
|
|
and injects that sheet when `open()` runs — after this module. Matching its
|
|
specificity would therefore lose on source order every time; reaching 0,3,0
|
|
is what wins. Measured in Chromium: 0,2,0 → `rgb(0, 0, 0)` (still black),
|
|
0,3,0 → `rgba(0, 0, 0, 0)` (transparent). */
|
|
.screen :global(.xterm .xterm-viewport) {
|
|
background: transparent;
|
|
}
|
|
|
|
.status {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 5px 12px;
|
|
color: var(--dsw-alias-label-secondary, var(--dsw-alias-label-primary));
|
|
background: var(--dsw-alias-bg-layer-2);
|
|
}
|
|
|
|
|
|
|
|
|
|
|