mirror of
https://github.com/aitingtingya/mv-obcc.git
synced 2026-07-22 07:47:28 +00:00
976 lines
20 KiB
CSS
976 lines
20 KiB
CSS
.mv-senceai-diff-view {
|
||
display: flex;
|
||
flex-direction: column;
|
||
height: 100%;
|
||
min-height: 0;
|
||
}
|
||
|
||
.mv-senceai-diff-header {
|
||
align-items: center;
|
||
border-bottom: 1px solid var(--background-modifier-border);
|
||
display: flex;
|
||
gap: 12px;
|
||
justify-content: space-between;
|
||
padding: 10px 14px;
|
||
}
|
||
|
||
.mv-senceai-diff-title {
|
||
font-weight: var(--font-semibold);
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.mv-senceai-diff-actions {
|
||
display: flex;
|
||
flex-shrink: 0;
|
||
gap: 8px;
|
||
}
|
||
|
||
.mv-senceai-diff-conflict {
|
||
background: var(--background-modifier-error);
|
||
color: var(--text-error);
|
||
display: none;
|
||
padding: 8px 14px;
|
||
}
|
||
|
||
.mv-senceai-diff-conflict.is-visible {
|
||
display: block;
|
||
}
|
||
|
||
.mv-senceai-merge-host {
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow: auto;
|
||
}
|
||
|
||
.mv-senceai-merge-host .cm-mergeView {
|
||
height: 100%;
|
||
}
|
||
|
||
.mv-senceai-merge-host .cm-editor {
|
||
height: 100%;
|
||
}
|
||
|
||
.mv-senceai-persistent-selection {
|
||
background-color: var(--text-selection);
|
||
}
|
||
|
||
.mv-senceai-selection-color-probe {
|
||
background-color: var(--text-selection);
|
||
pointer-events: none;
|
||
position: fixed;
|
||
visibility: hidden;
|
||
}
|
||
|
||
.cm-editor:focus-within .mv-senceai-persistent-selection {
|
||
background-color: transparent;
|
||
}
|
||
|
||
::highlight(mv-senceai-persistent-selection) {
|
||
background-color: var(--text-selection);
|
||
}
|
||
|
||
.mv-senceai-ghost-text {
|
||
color: var(--text-faint);
|
||
font-style: italic;
|
||
opacity: 0.85;
|
||
white-space: pre-wrap;
|
||
}
|
||
|
||
.mv-senceai-inline-completion-ribbon.is-active {
|
||
color: var(--interactive-accent);
|
||
}
|
||
|
||
.cm-editor :where(.mv-senceai-source-token.token.comment) {
|
||
color: var(--code-comment, var(--text-faint));
|
||
font-style: italic;
|
||
}
|
||
|
||
.cm-editor :where(.mv-senceai-source-token.token.keyword),
|
||
.cm-editor :where(.mv-senceai-source-token.token.selector),
|
||
.cm-editor :where(.mv-senceai-source-token.token.important) {
|
||
color: var(--code-keyword, var(--color-accent));
|
||
}
|
||
|
||
.cm-editor :where(.mv-senceai-source-token.token.string),
|
||
.cm-editor :where(.mv-senceai-source-token.token.char),
|
||
.cm-editor :where(.mv-senceai-source-token.token.attr-value) {
|
||
color: var(--code-string, var(--text-success));
|
||
}
|
||
|
||
.cm-editor :where(.mv-senceai-source-token.token.number),
|
||
.cm-editor :where(.mv-senceai-source-token.token.boolean),
|
||
.cm-editor :where(.mv-senceai-source-token.token.constant) {
|
||
color: var(--code-value, var(--text-accent));
|
||
}
|
||
|
||
.cm-editor :where(.mv-senceai-source-token.token.function),
|
||
.cm-editor :where(.mv-senceai-source-token.token.class-name) {
|
||
color: var(--code-function, var(--text-warning));
|
||
}
|
||
|
||
.cm-editor :where(.mv-senceai-source-token.token.property),
|
||
.cm-editor :where(.mv-senceai-source-token.token.attr-name),
|
||
.cm-editor :where(.mv-senceai-source-token.token.variable) {
|
||
color: var(--code-property, var(--text-normal));
|
||
}
|
||
|
||
.cm-editor :where(.mv-senceai-source-token.token.operator),
|
||
.cm-editor :where(.mv-senceai-source-token.token.punctuation) {
|
||
color: var(--code-punctuation, var(--text-muted));
|
||
}
|
||
|
||
.cm-editor.mv-senceai-source-plain-markdown
|
||
:where(.cm-highlight, .cm-formatting-highlight, mark) {
|
||
background: transparent !important;
|
||
}
|
||
|
||
.cm-editor.mv-senceai-source-plain-markdown
|
||
:where(.cm-strong, .cm-formatting-strong, strong, b) {
|
||
font-weight: inherit !important;
|
||
}
|
||
|
||
.cm-editor.mv-senceai-source-plain-markdown
|
||
:where(.cm-em, .cm-formatting-em, em, i) {
|
||
font-style: inherit !important;
|
||
}
|
||
|
||
.cm-editor.mv-senceai-source-plain-markdown
|
||
:where(.cm-strikethrough, .cm-formatting-strikethrough, s, del) {
|
||
text-decoration: none !important;
|
||
}
|
||
|
||
.cm-editor.mv-senceai-source-plain-markdown
|
||
:where(.cm-inline-code, .cm-formatting-code, .cm-hmd-code, code) {
|
||
background: transparent !important;
|
||
border-color: transparent !important;
|
||
font-family: inherit !important;
|
||
}
|
||
|
||
.cm-editor.mv-senceai-source-plain-markdown
|
||
:where(
|
||
.cm-link,
|
||
.cm-url,
|
||
.cm-formatting-link,
|
||
.cm-hmd-internal-link,
|
||
.cm-hmd-external-link,
|
||
a
|
||
) {
|
||
text-decoration: none !important;
|
||
}
|
||
|
||
/* 选词调用 LLM 独立功能 */
|
||
|
||
.mv-senceai-llm-result {
|
||
width: 100%;
|
||
height: 100%;
|
||
min-height: 0;
|
||
resize: none;
|
||
border: 0;
|
||
border-radius: 0;
|
||
padding: 14px;
|
||
background: var(--background-primary);
|
||
color: var(--text-normal);
|
||
font-family: var(--font-monospace);
|
||
font-size: var(--font-ui-small);
|
||
white-space: pre-wrap;
|
||
outline: none;
|
||
}
|
||
|
||
.mv-senceai-llm-status {
|
||
margin-left: 8px;
|
||
color: var(--text-muted);
|
||
font-size: var(--font-ui-smaller);
|
||
font-weight: normal;
|
||
}
|
||
|
||
.mv-senceai-llm-status-error {
|
||
color: var(--text-error);
|
||
}
|
||
|
||
.mv-senceai-llm-status-done {
|
||
color: var(--text-success, var(--text-muted));
|
||
}
|
||
|
||
.popover.hover-popover.mv-senceai-llm-popover {
|
||
--popover-width: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
min-width: 420px;
|
||
min-height: 280px;
|
||
max-width: none;
|
||
max-height: none;
|
||
padding: 0;
|
||
overflow: visible;
|
||
position: fixed;
|
||
touch-action: none;
|
||
background: var(--background-primary);
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 8px;
|
||
box-shadow: var(--shadow-l);
|
||
-webkit-app-region: no-drag;
|
||
}
|
||
|
||
.mv-senceai-llm-titlebar,
|
||
.mv-senceai-llm-host,
|
||
.mv-senceai-llm-error,
|
||
.mv-senceai-llm-toolbar {
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.mv-senceai-llm-popover.is-dragging,
|
||
.mv-senceai-llm-popover.is-resizing {
|
||
opacity: 0.92;
|
||
}
|
||
|
||
.mv-senceai-llm-titlebar {
|
||
flex: 0 0 36px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 0 8px 0 12px;
|
||
cursor: move;
|
||
user-select: none;
|
||
color: var(--text-normal);
|
||
background: var(--background-secondary);
|
||
border-bottom: 1px solid var(--background-modifier-border);
|
||
border-radius: 8px 8px 0 0;
|
||
}
|
||
|
||
.mv-senceai-llm-title {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
font-size: var(--font-ui-small);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.mv-senceai-llm-title-action {
|
||
width: 28px;
|
||
height: 28px;
|
||
padding: 0;
|
||
border: 0;
|
||
box-shadow: none;
|
||
background: transparent;
|
||
color: var(--text-muted);
|
||
font-size: 22px;
|
||
line-height: 1;
|
||
}
|
||
|
||
.mv-senceai-llm-title-action:hover {
|
||
color: var(--text-normal);
|
||
background: var(--background-modifier-hover);
|
||
}
|
||
|
||
/* 左上角钉子按钮:固定/取消固定悬浮窗 */
|
||
.mv-senceai-llm-pin {
|
||
font-size: 0; /* setIcon 渲染 SVG,去掉 × 那套字符尺寸 */
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.mv-senceai-llm-pin svg {
|
||
width: 16px;
|
||
height: 16px;
|
||
}
|
||
.mv-senceai-llm-pin.is-pinned {
|
||
color: var(--text-accent);
|
||
}
|
||
.mv-senceai-llm-pin.is-pinned:hover {
|
||
color: var(--text-accent-hover);
|
||
}
|
||
|
||
.mv-senceai-llm-host {
|
||
flex: 1 1 auto;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
position: relative;
|
||
background: var(--background-primary);
|
||
}
|
||
|
||
.mv-senceai-llm-host .workspace-split,
|
||
.mv-senceai-llm-host .workspace-leaf,
|
||
.mv-senceai-llm-host .workspace-leaf-content {
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
|
||
.mv-senceai-llm-host
|
||
.workspace-split
|
||
> .workspace-leaf:last-child
|
||
> .workspace-leaf-resize-handle {
|
||
display: none;
|
||
}
|
||
|
||
.mv-senceai-llm-toolbar {
|
||
flex: 0 0 auto;
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
gap: 8px;
|
||
padding: 8px 10px;
|
||
background: var(--background-secondary);
|
||
border-top: 1px solid var(--background-modifier-border);
|
||
border-radius: 0 0 8px 8px;
|
||
}
|
||
|
||
.mv-senceai-llm-error {
|
||
flex: 0 0 auto;
|
||
padding: 8px 10px;
|
||
background-color: var(--background-modifier-error);
|
||
color: var(--text-error);
|
||
font-size: var(--font-ui-small);
|
||
white-space: pre-wrap;
|
||
}
|
||
|
||
.mv-senceai-llm-resize-handle {
|
||
position: absolute;
|
||
z-index: 2;
|
||
touch-action: none;
|
||
}
|
||
|
||
.mv-senceai-llm-resize-handle.top,
|
||
.mv-senceai-llm-resize-handle.bottom {
|
||
left: 12px;
|
||
width: calc(100% - 24px);
|
||
height: 10px;
|
||
cursor: ns-resize;
|
||
}
|
||
|
||
.mv-senceai-llm-resize-handle.top {
|
||
top: -5px;
|
||
}
|
||
|
||
.mv-senceai-llm-resize-handle.bottom {
|
||
bottom: -5px;
|
||
}
|
||
|
||
.mv-senceai-llm-resize-handle.left,
|
||
.mv-senceai-llm-resize-handle.right {
|
||
top: 12px;
|
||
width: 10px;
|
||
height: calc(100% - 24px);
|
||
cursor: ew-resize;
|
||
}
|
||
|
||
.mv-senceai-llm-resize-handle.left {
|
||
left: -5px;
|
||
}
|
||
|
||
.mv-senceai-llm-resize-handle.right {
|
||
right: -5px;
|
||
}
|
||
|
||
.mv-senceai-llm-resize-handle.top-left,
|
||
.mv-senceai-llm-resize-handle.top-right,
|
||
.mv-senceai-llm-resize-handle.bottom-left,
|
||
.mv-senceai-llm-resize-handle.bottom-right {
|
||
width: 16px;
|
||
height: 16px;
|
||
}
|
||
|
||
.mv-senceai-llm-resize-handle.top-left {
|
||
top: -8px;
|
||
left: -8px;
|
||
cursor: nwse-resize;
|
||
}
|
||
|
||
.mv-senceai-llm-resize-handle.top-right {
|
||
top: -8px;
|
||
right: -8px;
|
||
cursor: nesw-resize;
|
||
}
|
||
|
||
.mv-senceai-llm-resize-handle.bottom-left {
|
||
bottom: -8px;
|
||
left: -8px;
|
||
cursor: nesw-resize;
|
||
}
|
||
|
||
.mv-senceai-llm-resize-handle.bottom-right {
|
||
right: -8px;
|
||
bottom: -8px;
|
||
cursor: nwse-resize;
|
||
}
|
||
|
||
.mv-senceai-llm-hint {
|
||
color: var(--text-muted);
|
||
font-size: var(--font-ui-smaller);
|
||
margin: 6px 0 12px;
|
||
}
|
||
|
||
.setting-item.mv-senceai-llm-tpl {
|
||
align-items: flex-start;
|
||
gap: 18px;
|
||
}
|
||
|
||
.setting-item.mv-senceai-llm-tpl .setting-item-info {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
flex: 1 1 auto;
|
||
}
|
||
|
||
.setting-item.mv-senceai-llm-tpl .setting-item-control {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-end;
|
||
justify-content: flex-start;
|
||
gap: 8px;
|
||
flex: 0 0 240px;
|
||
width: auto;
|
||
}
|
||
|
||
.mv-senceai-llm-tpl-label {
|
||
width: 100%;
|
||
}
|
||
|
||
.mv-senceai-llm-tpl-prompt {
|
||
width: 100%;
|
||
font-family: var(--font-monospace);
|
||
font-size: var(--font-ui-smaller);
|
||
resize: vertical;
|
||
}
|
||
|
||
/* 设置页:IDE 桥接 / 划词助手 分区标题 */
|
||
.mv-senceai-section-title {
|
||
margin-top: 32px;
|
||
margin-bottom: 4px;
|
||
padding-bottom: 6px;
|
||
border-bottom: 2px solid var(--background-modifier-border);
|
||
font-size: var(--h2-size);
|
||
font-weight: 700;
|
||
}
|
||
|
||
.mv-senceai-status-indicator {
|
||
margin-left: 12px;
|
||
}
|
||
|
||
.mv-senceai-status-muted {
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.mv-senceai-status-error {
|
||
color: var(--text-error);
|
||
}
|
||
|
||
.mv-senceai-status-success {
|
||
color: var(--text-success);
|
||
}
|
||
|
||
/* 划词助手:API 提供商卡片 */
|
||
.mv-senceai-llm-provider {
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 8px;
|
||
padding: 10px 12px 4px;
|
||
margin-bottom: 14px;
|
||
}
|
||
|
||
.mv-senceai-llm-provider-header {
|
||
padding-top: 0;
|
||
}
|
||
|
||
.mv-senceai-llm-provider-head {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.mv-senceai-llm-provider-name {
|
||
flex: 1;
|
||
min-width: 120px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.mv-senceai-llm-models-label {
|
||
margin: 12px 0 6px;
|
||
font-size: var(--font-ui-smaller);
|
||
color: var(--text-muted);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.04em;
|
||
}
|
||
|
||
.mv-senceai-llm-models {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.mv-senceai-llm-model-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.mv-senceai-llm-model-name {
|
||
flex: 1 1 180px;
|
||
min-width: 140px;
|
||
}
|
||
|
||
.mv-senceai-llm-model-del,
|
||
.mv-senceai-llm-model-add {
|
||
font-size: var(--font-ui-smaller);
|
||
}
|
||
|
||
/* 模板:操作区样式 */
|
||
.mv-senceai-llm-tpl-model {
|
||
font-size: var(--font-ui-smaller);
|
||
width: 100%;
|
||
}
|
||
|
||
.mv-senceai-llm-tpl-enable-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
.mv-senceai-llm-tpl-enable-row label {
|
||
font-size: var(--font-ui-smaller);
|
||
color: var(--text-muted);
|
||
cursor: pointer;
|
||
}
|
||
|
||
/* 模板:思考下拉(紧跟「选择模型」之后) */
|
||
.mv-senceai-llm-tpl-thinking-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.mv-senceai-llm-tpl-thinking-label {
|
||
font-size: var(--font-ui-smaller);
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.mv-senceai-llm-tpl-thinking-custom {
|
||
flex: 1 1 220px;
|
||
min-width: 160px;
|
||
font-family: var(--font-monospace);
|
||
font-size: var(--font-ui-smaller);
|
||
}
|
||
|
||
/* 模板:思考说明小字提示 */
|
||
.mv-senceai-llm-tpl-hint-thinking {
|
||
color: var(--text-muted);
|
||
font-size: var(--font-ui-smaller);
|
||
line-height: 1.5;
|
||
margin-top: 8px;
|
||
padding: 6px 8px;
|
||
border-radius: 6px;
|
||
background-color: var(--background-secondary);
|
||
white-space: normal;
|
||
}
|
||
|
||
.setting-item.mv-senceai-inline-hotkey-setting .setting-item-control {
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.mv-senceai-inline-hotkey-value {
|
||
min-width: 110px;
|
||
padding: 4px 8px;
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 6px;
|
||
color: var(--text-muted);
|
||
font-family: var(--font-monospace);
|
||
font-size: var(--font-ui-smaller);
|
||
text-align: center;
|
||
}
|
||
|
||
.mv-senceai-inline-hotkey-value.is-recording {
|
||
border-color: var(--interactive-accent);
|
||
color: var(--text-accent);
|
||
}
|
||
|
||
.mv-senceai-inline-prompt-textarea {
|
||
font-family: var(--font-monospace);
|
||
font-size: var(--font-ui-smaller);
|
||
width: 100%;
|
||
}
|
||
|
||
.mv-senceai-is-hidden {
|
||
display: none;
|
||
}
|
||
|
||
/* xterm.js base styles. Without these, internal measurement/accessibility nodes
|
||
can become visible inside the Obsidian view. */
|
||
.vault-terminal-host .xterm {
|
||
cursor: text;
|
||
position: relative;
|
||
user-select: none;
|
||
-ms-user-select: none;
|
||
-webkit-user-select: none;
|
||
}
|
||
|
||
.vault-terminal-host .xterm.focus,
|
||
.vault-terminal-host .xterm:focus {
|
||
outline: none;
|
||
}
|
||
|
||
.vault-terminal-host .xterm .xterm-helpers {
|
||
position: absolute;
|
||
top: 0;
|
||
z-index: 5;
|
||
}
|
||
|
||
.vault-terminal-host .xterm .xterm-helper-textarea {
|
||
border: 0;
|
||
height: 0;
|
||
left: -9999em;
|
||
margin: 0;
|
||
opacity: 0;
|
||
overflow: hidden;
|
||
padding: 0;
|
||
position: absolute;
|
||
resize: none;
|
||
top: 0;
|
||
white-space: nowrap;
|
||
width: 0;
|
||
z-index: -5;
|
||
}
|
||
|
||
.vault-terminal-host .xterm .composition-view {
|
||
background: #000;
|
||
color: #fff;
|
||
display: none;
|
||
position: absolute;
|
||
white-space: nowrap;
|
||
z-index: 1;
|
||
}
|
||
|
||
.vault-terminal-host .xterm .composition-view.active {
|
||
display: block;
|
||
}
|
||
|
||
.vault-terminal-host .xterm .xterm-viewport {
|
||
cursor: default;
|
||
position: absolute;
|
||
right: 0;
|
||
left: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
}
|
||
|
||
.vault-terminal-host .xterm .xterm-screen {
|
||
position: relative;
|
||
}
|
||
|
||
.vault-terminal-host .xterm .xterm-screen canvas {
|
||
position: absolute;
|
||
left: 0;
|
||
top: 0;
|
||
}
|
||
|
||
.vault-terminal-host .xterm .xterm-scroll-area {
|
||
visibility: hidden;
|
||
}
|
||
|
||
.vault-terminal-host .xterm-char-measure-element {
|
||
display: inline-block;
|
||
left: -9999em;
|
||
line-height: normal;
|
||
position: absolute;
|
||
top: 0;
|
||
visibility: hidden;
|
||
}
|
||
|
||
.vault-terminal-host .xterm.enable-mouse-events {
|
||
cursor: default;
|
||
}
|
||
|
||
.vault-terminal-host .xterm.xterm-cursor-pointer,
|
||
.vault-terminal-host .xterm .xterm-cursor-pointer {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.vault-terminal-host .xterm.column-select.focus {
|
||
cursor: crosshair;
|
||
}
|
||
|
||
.vault-terminal-host .xterm .xterm-accessibility,
|
||
.vault-terminal-host .xterm .xterm-message {
|
||
position: absolute;
|
||
left: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
right: 0;
|
||
z-index: 10;
|
||
color: transparent;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.vault-terminal-host .xterm .xterm-accessibility-tree {
|
||
user-select: text;
|
||
white-space: pre;
|
||
}
|
||
|
||
.vault-terminal-host .xterm .xterm-accessibility-tree *::selection {
|
||
color: transparent;
|
||
}
|
||
|
||
.vault-terminal-host .xterm .live-region {
|
||
height: 1px;
|
||
left: -9999px;
|
||
overflow: hidden;
|
||
position: absolute;
|
||
width: 1px;
|
||
}
|
||
|
||
.vault-terminal-host .xterm-dim {
|
||
opacity: 0.5;
|
||
}
|
||
|
||
.vault-terminal-host .xterm-underline-1 {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
.vault-terminal-host .xterm-underline-2 {
|
||
text-decoration: double underline;
|
||
}
|
||
|
||
.vault-terminal-host .xterm-underline-3 {
|
||
text-decoration: wavy underline;
|
||
}
|
||
|
||
.vault-terminal-host .xterm-underline-4 {
|
||
text-decoration: dotted underline;
|
||
}
|
||
|
||
.vault-terminal-host .xterm-underline-5 {
|
||
text-decoration: dashed underline;
|
||
}
|
||
|
||
.vault-terminal-host .xterm-overline {
|
||
text-decoration: overline;
|
||
}
|
||
|
||
.vault-terminal-host .xterm-overline.xterm-underline-1 {
|
||
text-decoration: overline underline;
|
||
}
|
||
|
||
.vault-terminal-host .xterm-overline.xterm-underline-2 {
|
||
text-decoration: overline double underline;
|
||
}
|
||
|
||
.vault-terminal-host .xterm-overline.xterm-underline-3 {
|
||
text-decoration: overline wavy underline;
|
||
}
|
||
|
||
.vault-terminal-host .xterm-overline.xterm-underline-4 {
|
||
text-decoration: overline dotted underline;
|
||
}
|
||
|
||
.vault-terminal-host .xterm-overline.xterm-underline-5 {
|
||
text-decoration: overline dashed underline;
|
||
}
|
||
|
||
.vault-terminal-host .xterm-strikethrough {
|
||
text-decoration: line-through;
|
||
}
|
||
|
||
/* 💻 终端设置与样式 */
|
||
.workspace-leaf-content[data-type="mv-terminal-view"] .view-content {
|
||
overflow: clip;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.vault-terminal {
|
||
height: 100%;
|
||
min-height: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
padding: 8px 12px;
|
||
padding-bottom: calc(8px + var(--status-bar-height, 0px) + env(safe-area-inset-bottom, 0px));
|
||
box-sizing: border-box;
|
||
background-color: var(--background-secondary);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.vault-terminal-host {
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
position: relative;
|
||
background-color: var(--background-secondary);
|
||
overscroll-behavior: contain;
|
||
}
|
||
|
||
.vault-terminal-host .xterm {
|
||
height: 100%;
|
||
background-color: var(--background-secondary);
|
||
}
|
||
|
||
.vault-terminal-host .xterm .xterm-screen {
|
||
background-color: var(--background-secondary);
|
||
}
|
||
|
||
.vault-terminal-host .xterm-viewport {
|
||
overflow-y: auto !important;
|
||
background-color: var(--background-secondary) !important;
|
||
overscroll-behavior: contain;
|
||
scrollbar-gutter: stable;
|
||
}
|
||
|
||
.vault-terminal-host .xterm .xterm-helper-textarea {
|
||
opacity: 0;
|
||
border: 0;
|
||
padding: 0;
|
||
outline: none;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.mv-senceai-settings-section {
|
||
margin: 12px 0;
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 12px;
|
||
background: var(--background-secondary);
|
||
}
|
||
|
||
.mv-senceai-settings-section-summary {
|
||
cursor: pointer;
|
||
padding: 14px 16px;
|
||
list-style: none;
|
||
}
|
||
|
||
.mv-senceai-settings-section-summary::-webkit-details-marker {
|
||
display: none;
|
||
}
|
||
|
||
.mv-senceai-settings-section-summary::before {
|
||
content: "▸";
|
||
display: inline-block;
|
||
margin-right: 8px;
|
||
transition: transform 120ms ease;
|
||
}
|
||
|
||
.mv-senceai-settings-section[open] .mv-senceai-settings-section-summary::before {
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
.mv-senceai-settings-section-body {
|
||
padding: 0 12px 12px;
|
||
}
|
||
|
||
.mv-senceai-source-assist-profile {
|
||
margin: 12px 0;
|
||
padding: 10px 12px;
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 10px;
|
||
background: var(--background-primary);
|
||
}
|
||
|
||
.mv-senceai-source-assist-snippets-setting {
|
||
display: block;
|
||
}
|
||
|
||
.mv-senceai-source-assist-snippets-setting > .setting-item-info,
|
||
.mv-senceai-source-assist-snippets-setting > .setting-item-control {
|
||
width: 100%;
|
||
}
|
||
|
||
.mv-senceai-snippets-editor-wrapper {
|
||
margin-top: 10px;
|
||
width: 100%;
|
||
}
|
||
|
||
.mv-senceai-snippets-editor-wrapper .cm-editor {
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 6px;
|
||
font-size: var(--font-inputs);
|
||
height: 20em;
|
||
outline: none !important;
|
||
text-align: left;
|
||
}
|
||
|
||
.mv-senceai-snippets-editor-wrapper .cm-line,
|
||
.mv-senceai-snippets-editor-wrapper .cm-lineNumbers {
|
||
font-family: var(--font-monospace);
|
||
}
|
||
|
||
.mv-senceai-snippets-footer {
|
||
align-items: center;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
margin-top: 8px;
|
||
width: 100%;
|
||
}
|
||
|
||
.mv-senceai-snippets-editor-validity {
|
||
align-items: center;
|
||
display: flex;
|
||
min-height: 24px;
|
||
}
|
||
|
||
.mv-senceai-snippets-editor-validity-indicator {
|
||
border-radius: 1em;
|
||
color: white;
|
||
cursor: default;
|
||
display: inline-block;
|
||
margin-right: 10px;
|
||
visibility: hidden;
|
||
}
|
||
|
||
.mv-senceai-snippets-editor-validity-indicator svg {
|
||
height: 16px !important;
|
||
width: 16px !important;
|
||
}
|
||
|
||
.mv-senceai-snippets-editor-validity-indicator:hover {
|
||
color: white;
|
||
}
|
||
|
||
.mv-senceai-snippets-editor-validity-indicator.valid {
|
||
background-color: var(--color-green);
|
||
visibility: visible;
|
||
}
|
||
|
||
.mv-senceai-snippets-editor-validity-indicator.invalid {
|
||
background-color: var(--color-red);
|
||
visibility: visible;
|
||
}
|
||
|
||
.mv-senceai-snippets-editor-validity-text.setting-item-description {
|
||
padding: 0;
|
||
}
|
||
|
||
.snippets-editor-validity-text-no-padding.setting-item-description {
|
||
padding: 0;
|
||
}
|
||
|
||
.mv-senceai-source-assist-hotkey-intro {
|
||
margin: 10px 0 4px;
|
||
}
|
||
|
||
.mv-senceai-source-assist-hotkey-input,
|
||
.mv-senceai-source-assist-extension-input {
|
||
min-width: 120px;
|
||
}
|
||
|
||
.mv-senceai-modal-button-row {
|
||
display: flex;
|
||
gap: 8px;
|
||
justify-content: flex-end;
|
||
margin-top: 16px;
|
||
}
|
||
|
||
.mv-senceai-tex-math-preview {
|
||
cursor: text;
|
||
}
|
||
|
||
.mv-senceai-tex-math-preview-display {
|
||
display: block;
|
||
margin: 0.5em 0;
|
||
text-align: center;
|
||
overflow-x: auto;
|
||
}
|
||
|
||
.mv-senceai-tex-math-preview-inline {
|
||
display: inline;
|
||
}
|