refactor(ui): 删除组件替换后失效的样式规则(B3 收尾)
- sidebar.module.css: 删掉 editorDownloadLink(含 :hover 与 focus-visible 组内一行)、mediaPreviewNotice、largeFileDownload 及其说明注释;largeFileNoticeAction 仍被 LargeFileView 使用,保留。 - terminal.module.css: 删掉 .notice / .error / .action / .action:hover,以及同组零引用的 .noticeBlock。
This commit is contained in:
1 parent
5a8ab2f805
commit
0cd0765fad
2 files changed
-71
No files matched your search
@@ -1595,36 +1595,8 @@ body[data-dsh-sidebar-dragging] .bottomPanel {
|
||||
margin: auto 0;
|
||||
}
|
||||
|
||||
.mediaPreviewNotice {
|
||||
padding: 16px;
|
||||
text-align: center;
|
||||
font: var(--dsw-font-xxs-12);
|
||||
color: var(--dsw-alias-label-tertiary);
|
||||
}
|
||||
|
||||
/* Binary / download-only files (legacy OLE .doc/.xls/.ppt, unknown binaries):
|
||||
a centered notice plus a download link — the user always gets the file. */
|
||||
.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;
|
||||
@@ -2373,7 +2345,6 @@ body[data-dsh-sidebar-dragging] .bottomPanel {
|
||||
.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);
|
||||
@@ -2628,10 +2599,6 @@ body[data-dsh-sidebar-dragging] .bottomPanel {
|
||||
background: var(--dsw-alias-state-warn-tertiary);
|
||||
}
|
||||
|
||||
.largeFileDownload {
|
||||
color: inherit;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* The notice's own "load all" action. It rides the notice's warn ink (the bar
|
||||
is a warning surface, not a toolbar) and sits flush right, with the download
|
||||
|
||||
@@ -61,45 +61,7 @@
|
||||
background: var(--dsw-alias-bg-layer-2);
|
||||
}
|
||||
|
||||
.noticeBlock {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 16px;
|
||||
min-height: 0;
|
||||
padding: 24px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.notice {
|
||||
max-width: 32ch;
|
||||
margin: 0;
|
||||
line-height: 1.6;
|
||||
text-align: center;
|
||||
overflow-wrap: anywhere;
|
||||
color: var(--dsw-alias-label-primary);
|
||||
}
|
||||
|
||||
.error {
|
||||
margin: 0;
|
||||
padding: 10px 12px;
|
||||
overflow-wrap: anywhere;
|
||||
color: var(--dsw-alias-label-primary);
|
||||
background: var(--dsw-alias-bg-layer-2);
|
||||
}
|
||||
|
||||
.action {
|
||||
flex: none;
|
||||
padding: 3px 10px;
|
||||
border: 0.5px solid var(--dsw-alias-border-l4);
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
color: var(--dsw-alias-label-primary);
|
||||
background: var(--dsw-alias-bg-layer-1);
|
||||
}
|
||||
|
||||
.action:hover {
|
||||
background: var(--dsw-alias-bg-layer-2);
|
||||
}
|
||||
Reference in new issue
Block a user