mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-07-09 17:19:02 +00:00
596 lines
11 KiB
CSS
596 lines
11 KiB
CSS
.container {
|
|
cursor: text;
|
|
}
|
|
|
|
.borderTop,
|
|
.borderBottom {
|
|
height: 1px;
|
|
background: var(--muted-foreground);
|
|
}
|
|
|
|
.borderTop {
|
|
position: relative;
|
|
}
|
|
|
|
.borderTopLabel {
|
|
position: absolute;
|
|
right: 2ch;
|
|
top: 50%;
|
|
max-width: min(48ch, calc(100% - 4ch));
|
|
padding: 0 1ch;
|
|
overflow: hidden;
|
|
color: var(--muted-foreground);
|
|
background: var(--background);
|
|
font-size: 12px;
|
|
line-height: 1;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.line {
|
|
display: flex;
|
|
align-items: baseline;
|
|
padding: 6px 0;
|
|
}
|
|
|
|
.prefix {
|
|
color: var(--agent-purple-400);
|
|
font-weight: bold;
|
|
flex-shrink: 0;
|
|
padding-right: 1ch;
|
|
line-height: 1.6;
|
|
user-select: none;
|
|
}
|
|
|
|
.prefixShell {
|
|
color: var(--warning-color);
|
|
}
|
|
|
|
.prefixAutoEdit {
|
|
color: var(--warning-color);
|
|
}
|
|
|
|
.prefixYolo {
|
|
color: var(--error-color);
|
|
}
|
|
|
|
.shellMode .borderTop,
|
|
.shellMode .borderBottom {
|
|
background: var(--warning-color);
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.modePlan .borderTop,
|
|
.modePlan .borderBottom {
|
|
background: var(--success-color);
|
|
}
|
|
|
|
.modeAutoEdit .borderTop,
|
|
.modeAutoEdit .borderBottom {
|
|
background: #8b7530;
|
|
}
|
|
|
|
.modeYolo .borderTop,
|
|
.modeYolo .borderBottom {
|
|
background: #8b3a4a;
|
|
}
|
|
|
|
.wrapper {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.hints {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
column-gap: 1ch;
|
|
padding: 2px 0 0;
|
|
font-size: 11px;
|
|
line-height: 1.4;
|
|
user-select: none;
|
|
}
|
|
|
|
.hintItem {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4ch;
|
|
padding: 0;
|
|
border: none;
|
|
background: none;
|
|
font: inherit;
|
|
color: var(--muted-foreground);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.hintItem:hover,
|
|
.hintItem:focus-visible {
|
|
color: var(--foreground);
|
|
}
|
|
|
|
.hintKey {
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
.hintItem:hover .hintKey,
|
|
.hintItem:focus-visible .hintKey {
|
|
color: var(--agent-blue-500);
|
|
}
|
|
|
|
.hintItem:disabled {
|
|
opacity: 0.4;
|
|
cursor: default;
|
|
}
|
|
|
|
.hintSep {
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
.searchBar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 3px 0;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.searchLabel {
|
|
color: var(--muted-foreground);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.searchInput {
|
|
flex: 1;
|
|
background: transparent;
|
|
border: none;
|
|
outline: none;
|
|
color: var(--foreground);
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.searchInput::placeholder {
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
.searchHint {
|
|
color: var(--muted-foreground);
|
|
flex-shrink: 0;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.searchResults {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1px;
|
|
padding: 2px 0 6px;
|
|
}
|
|
|
|
.searchResult {
|
|
display: grid;
|
|
grid-template-columns: 16px minmax(0, 1fr);
|
|
align-items: start;
|
|
gap: 4px;
|
|
width: 100%;
|
|
min-height: 24px;
|
|
padding: 3px 6px;
|
|
border: 0;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
color: var(--muted-foreground);
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.searchResult:hover,
|
|
.searchResultActive {
|
|
background: var(--secondary);
|
|
color: var(--agent-blue-500);
|
|
}
|
|
|
|
.searchResultMarker {
|
|
color: var(--agent-blue-500);
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.searchResultText {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.searchEmpty {
|
|
padding: 4px 0 6px;
|
|
color: var(--muted-foreground);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.images {
|
|
display: flex;
|
|
gap: 6px;
|
|
padding: 4px 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
padding: 5px 0 0;
|
|
}
|
|
|
|
.tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
max-width: 100%;
|
|
min-height: 22px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
background: var(--secondary);
|
|
color: var(--foreground);
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.inlineTag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
max-width: min(44ch, 100%);
|
|
min-height: 20px;
|
|
margin: 0 0.25ch;
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
background: var(--secondary);
|
|
color: var(--foreground);
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
line-height: 1.2;
|
|
vertical-align: baseline;
|
|
}
|
|
|
|
.tagLabel,
|
|
.tagValue {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tagLabel {
|
|
padding: 3px 0 3px 7px;
|
|
color: var(--agent-blue-500);
|
|
}
|
|
|
|
.tagValue {
|
|
max-width: 32ch;
|
|
padding: 3px 0 3px 0.5ch;
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
.tagRemove {
|
|
flex: 0 0 auto;
|
|
width: 22px;
|
|
height: 22px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--muted-foreground);
|
|
font: inherit;
|
|
line-height: 22px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tagRemove:hover,
|
|
.tagRemove:focus-visible {
|
|
color: var(--error-color);
|
|
outline: none;
|
|
}
|
|
|
|
.imageThumb {
|
|
position: relative;
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.imageThumb img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.imageRemove {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
width: 16px;
|
|
height: 16px;
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
text-align: center;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
color: var(--error-color);
|
|
border: none;
|
|
cursor: pointer;
|
|
border-radius: 0 0 0 4px;
|
|
}
|
|
|
|
.imageRemove:hover {
|
|
background: var(--error-color);
|
|
color: #fff;
|
|
}
|
|
|
|
:global([data-web-shell-tooltip-portal]) {
|
|
pointer-events: none;
|
|
}
|
|
|
|
:global([data-web-shell-tooltip-portal] .cm-tooltip) {
|
|
z-index: var(--web-shell-tooltip-z-index, 1000);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
:global([data-web-shell-tooltip-portal] .cm-tooltip-autocomplete) {
|
|
--web-shell-completion-label-width: 20ch;
|
|
--web-shell-completion-column-gap: 2ch;
|
|
--web-shell-completion-detail-start: calc(
|
|
var(--web-shell-completion-label-width) +
|
|
var(--web-shell-completion-column-gap)
|
|
);
|
|
min-width: 500px !important;
|
|
max-width: 700px !important;
|
|
max-height: 400px !important;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
|
|
background: var(--background, #0d0d0d) !important;
|
|
border: 1px solid var(--border, #2a2a2a) !important;
|
|
border-radius: 6px !important;
|
|
overflow: visible;
|
|
}
|
|
|
|
:global([data-web-shell-tooltip-portal] .cm-tooltip-autocomplete > ul) {
|
|
max-height: 380px !important;
|
|
overflow: auto;
|
|
border-radius: 6px;
|
|
font-family: var(--font-mono, monospace);
|
|
font-size: 13px;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--border) transparent;
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal]
|
|
.cm-tooltip-autocomplete
|
|
> ul::-webkit-scrollbar
|
|
) {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal]
|
|
.cm-tooltip-autocomplete
|
|
> ul::-webkit-scrollbar-track
|
|
) {
|
|
background: transparent;
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal]
|
|
.cm-tooltip-autocomplete
|
|
> ul::-webkit-scrollbar-thumb
|
|
) {
|
|
background: var(--border);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
:global([data-web-shell-tooltip-portal] .cm-tooltip-autocomplete ul li) {
|
|
display: flex !important;
|
|
align-items: baseline;
|
|
min-width: 0;
|
|
padding: 4px 8px !important;
|
|
color: var(--foreground, #e4e4e4) !important;
|
|
overflow: hidden;
|
|
}
|
|
|
|
:global([data-web-shell-tooltip-portal] .cm-tooltip-autocomplete ul li:hover) {
|
|
background: var(--secondary, #1e1e1e) !important;
|
|
color: var(--foreground, #e4e4e4) !important;
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal] .cm-tooltip-autocomplete ul li[aria-selected]
|
|
) {
|
|
background: var(--secondary, #1e1e1e) !important;
|
|
color: var(--foreground, #e4e4e4) !important;
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal]
|
|
.cm-tooltip-autocomplete
|
|
ul
|
|
li:is(:hover, [aria-selected])
|
|
.cm-completionLabel
|
|
) {
|
|
color: var(--agent-blue-500, #4a9eff);
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal] .cm-tooltip-autocomplete completion-section
|
|
) {
|
|
display: block !important;
|
|
height: auto;
|
|
margin: 6px 10px 4px;
|
|
padding: 2px 0 4px !important;
|
|
line-height: 1.2;
|
|
color: var(--muted-foreground, #a1a1aa) !important;
|
|
border-bottom: 1px solid var(--border) !important;
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal]
|
|
.cm-tooltip-autocomplete
|
|
completion-section:first-of-type
|
|
) {
|
|
margin-top: 6px;
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal] .cm-tooltip-autocomplete .cm-completionLabel
|
|
) {
|
|
font-family: var(--font-mono, monospace);
|
|
flex-shrink: 0;
|
|
width: var(--web-shell-completion-label-width);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal] .cm-tooltip-autocomplete .cm-completionDetail
|
|
) {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
font-style: normal;
|
|
color: var(--muted-foreground);
|
|
font-size: 13px;
|
|
margin-left: var(--web-shell-completion-column-gap);
|
|
opacity: 0.8;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal]
|
|
.cm-tooltip-autocomplete
|
|
ul
|
|
li.cm-file-completion
|
|
.cm-completionLabel
|
|
) {
|
|
flex: 1 1 auto;
|
|
width: auto;
|
|
min-width: 0;
|
|
max-width: none;
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal]
|
|
.cm-tooltip-autocomplete
|
|
ul
|
|
li.cm-command-info-completion
|
|
) {
|
|
display: grid !important;
|
|
grid-template-columns: var(--web-shell-completion-label-width) minmax(0, 1fr);
|
|
column-gap: var(--web-shell-completion-column-gap);
|
|
align-items: baseline !important;
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal]
|
|
.cm-tooltip-autocomplete
|
|
ul
|
|
li.cm-command-info-completion
|
|
.cm-completionLabel
|
|
) {
|
|
min-width: 0;
|
|
max-width: none;
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal]
|
|
.cm-tooltip-autocomplete
|
|
ul
|
|
li.cm-command-info-completion
|
|
.cm-completionDetail
|
|
) {
|
|
margin-left: 0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
:global([data-web-shell-tooltip-portal] .cm-tooltip.cm-completionInfo) {
|
|
z-index: calc(var(--web-shell-tooltip-z-index, 1000) + 1);
|
|
width: min(320px, calc(100vw - 32px));
|
|
max-width: min(320px, calc(100vw - 32px)) !important;
|
|
max-height: min(280px, calc(100vh - 32px));
|
|
padding: 8px 10px;
|
|
overflow: auto;
|
|
border: 1px solid var(--border, #2a2a2a);
|
|
border-radius: 6px;
|
|
background: var(--muted, #161616);
|
|
color: var(--foreground, #e4e4e4);
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
|
|
font-family: var(--font-sans, system-ui, sans-serif);
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
white-space: pre-line;
|
|
overflow-wrap: anywhere;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--border) transparent;
|
|
}
|
|
|
|
:global([data-web-shell-tooltip-portal] .cm-completionInfo-hover) {
|
|
pointer-events: auto;
|
|
z-index: calc(var(--web-shell-tooltip-z-index, 1000) + 1);
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal]
|
|
.cm-tooltip.cm-completionInfo::-webkit-scrollbar
|
|
) {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal]
|
|
.cm-tooltip.cm-completionInfo::-webkit-scrollbar-track
|
|
) {
|
|
background: transparent;
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal]
|
|
.cm-tooltip.cm-completionInfo::-webkit-scrollbar-thumb
|
|
) {
|
|
background: var(--border);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal] .cm-completionInfo.cm-completionInfo-right
|
|
) {
|
|
margin-left: var(--web-shell-completion-column-gap);
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal]
|
|
.cm-completionInfo.cm-completionInfo-right-narrow
|
|
) {
|
|
left: var(--web-shell-completion-detail-start);
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal] .cm-completionInfo.cm-completionInfo-left
|
|
) {
|
|
margin-right: var(--web-shell-completion-column-gap);
|
|
}
|
|
|
|
:global(
|
|
[data-web-shell-tooltip-portal]
|
|
.cm-completionInfo.cm-completionInfo-left-narrow
|
|
) {
|
|
right: var(--web-shell-completion-detail-start);
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
.borderTopLabel {
|
|
display: none;
|
|
}
|
|
}
|