416 lines
8.5 KiB
CSS
416 lines
8.5 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
font-family: var(--vscode-font-family);
|
|
font-size: var(--vscode-font-size);
|
|
color: var(--vscode-foreground);
|
|
background: var(--vscode-sideBar-background);
|
|
}
|
|
|
|
.chat-root {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
min-height: 200px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chat-header {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
align-content: flex-start;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
min-height: 44px;
|
|
padding: 8px;
|
|
border-bottom: 1px solid var(--vscode-widget-border, rgba(128, 128, 128, 0.35));
|
|
background: var(--vscode-sideBar-background);
|
|
}
|
|
|
|
.header-controls {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 6px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.process-select-wrap {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.process-select-label {
|
|
font-size: 0.78em;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.process-select-wrap select {
|
|
min-width: 120px;
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
padding: 4px 8px;
|
|
border: 1px solid var(--vscode-dropdown-border, var(--vscode-widget-border, rgba(128, 128, 128, 0.35)));
|
|
background: var(--vscode-dropdown-background, var(--vscode-input-background));
|
|
color: var(--vscode-dropdown-foreground, var(--vscode-input-foreground));
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.process-select-wrap select:focus {
|
|
outline: 1px solid var(--vscode-focusBorder);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
.header-session {
|
|
flex: 1 1 320px;
|
|
min-width: 220px;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 6px;
|
|
padding: 4px 8px;
|
|
border: 1px solid var(--vscode-widget-border, rgba(128, 128, 128, 0.35));
|
|
border-radius: 4px;
|
|
background: var(--vscode-sideBar-background);
|
|
color: var(--vscode-descriptionForeground, var(--vscode-disabledForeground));
|
|
font-size: 0.88em;
|
|
line-height: 1.25;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.header-session:hover {
|
|
border-color: var(--vscode-focusBorder, rgba(128, 128, 128, 0.6));
|
|
color: var(--vscode-foreground);
|
|
}
|
|
|
|
.header-session:focus {
|
|
outline: 1px solid var(--vscode-focusBorder, rgba(128, 128, 128, 0.6));
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
.header-session.copied {
|
|
border-color: var(--vscode-testing-iconPassed, #73c991);
|
|
color: var(--vscode-testing-iconPassed, #73c991);
|
|
}
|
|
|
|
.header-session-label {
|
|
flex-shrink: 0;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.header-session-value {
|
|
min-width: 0;
|
|
white-space: normal;
|
|
overflow-wrap: anywhere;
|
|
word-break: break-word;
|
|
font-family: var(--vscode-editor-font-family, var(--vscode-font-family));
|
|
}
|
|
|
|
.header-spacer {
|
|
flex: 999 1 auto;
|
|
}
|
|
|
|
.btn {
|
|
font-family: inherit;
|
|
font-size: var(--vscode-font-size);
|
|
padding: 4px 10px;
|
|
cursor: pointer;
|
|
border: 1px solid var(--vscode-button-border, transparent);
|
|
background: var(--vscode-button-secondaryBackground);
|
|
color: var(--vscode-button-secondaryForeground);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: var(--vscode-button-secondaryHoverBackground);
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--vscode-button-background);
|
|
color: var(--vscode-button-foreground);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--vscode-button-hoverBackground);
|
|
}
|
|
|
|
.btn-icon {
|
|
min-width: 32px;
|
|
padding: 4px 8px;
|
|
font-size: 1.25rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.menu-wrap {
|
|
position: relative;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.menu-dropdown {
|
|
position: absolute;
|
|
top: 100%;
|
|
right: 0;
|
|
margin-top: 4px;
|
|
min-width: 200px;
|
|
padding: 4px 0;
|
|
background: var(--vscode-menu-background);
|
|
color: var(--vscode-menu-foreground);
|
|
border: 1px solid var(--vscode-menu-border);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
|
z-index: 10;
|
|
}
|
|
|
|
.menu-item {
|
|
display: block;
|
|
width: 100%;
|
|
text-align: left;
|
|
padding: 6px 12px;
|
|
border: none;
|
|
background: transparent;
|
|
color: inherit;
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.menu-item:hover {
|
|
background: var(--vscode-menu-selectionBackground);
|
|
color: var(--vscode-menu-selectionForeground);
|
|
}
|
|
|
|
.chat-body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.messages-pane {
|
|
height: 100%;
|
|
min-height: 0;
|
|
padding: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.status-blocks {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.status-block {
|
|
border: 1px solid var(--vscode-widget-border, transparent);
|
|
border-radius: 6px;
|
|
background: color-mix(in srgb, var(--vscode-sideBar-background) 88%, var(--vscode-editor-inactiveSelectionBackground) 12%);
|
|
color: color-mix(in srgb, var(--vscode-foreground) 62%, transparent);
|
|
}
|
|
|
|
.status-block-title {
|
|
padding: 6px 8px 4px;
|
|
font-size: 0.86em;
|
|
font-weight: 600;
|
|
opacity: 0.85;
|
|
border-bottom: 1px solid color-mix(in srgb, var(--vscode-widget-border, rgba(128, 128, 128, 0.35)) 70%, transparent);
|
|
}
|
|
|
|
.status-block-body {
|
|
max-height: 12.5em;
|
|
overflow-y: auto;
|
|
padding: 4px 8px 6px;
|
|
font-size: 0.84em;
|
|
line-height: 1.25;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.status-block-line + .status-block-line {
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.messages {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
overflow: visible;
|
|
}
|
|
|
|
.chat-footer {
|
|
flex-shrink: 0;
|
|
border-top: 1px solid var(--vscode-widget-border, rgba(128, 128, 128, 0.35));
|
|
background: var(--vscode-sideBar-background);
|
|
}
|
|
|
|
.input-pane {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 8px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.input-pane textarea {
|
|
min-height: 72px;
|
|
max-height: 140px;
|
|
resize: vertical;
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
padding: 8px;
|
|
border: 1px solid var(--vscode-input-border, var(--vscode-widget-border));
|
|
background: var(--vscode-input-background);
|
|
color: var(--vscode-input-foreground);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.input-pane textarea:focus {
|
|
outline: 1px solid var(--vscode-focusBorder);
|
|
outline-offset: -1px;
|
|
}
|
|
|
|
.input-actions {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.task-status {
|
|
padding: 8px 10px;
|
|
border: 1px solid var(--vscode-widget-border, transparent);
|
|
border-radius: 6px;
|
|
background: var(--vscode-editor-inactiveSelectionBackground, rgba(128, 128, 128, 0.12));
|
|
}
|
|
|
|
.task-status-label,
|
|
.rag-label {
|
|
font-weight: 600;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.task-status-detail,
|
|
.rag-detail,
|
|
.rag-metrics {
|
|
font-size: 0.92em;
|
|
opacity: 0.88;
|
|
}
|
|
|
|
.task-progress {
|
|
margin-top: 8px;
|
|
height: 6px;
|
|
border-radius: 999px;
|
|
overflow: hidden;
|
|
background: var(--vscode-editorGroup-border, rgba(128, 128, 128, 0.15));
|
|
}
|
|
|
|
.task-progress-bar {
|
|
height: 100%;
|
|
width: 0%;
|
|
background: var(--vscode-progressBar-background, var(--vscode-button-background));
|
|
}
|
|
|
|
.rag-status {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 8px 10px;
|
|
border: 1px solid var(--vscode-widget-border, transparent);
|
|
border-radius: 6px;
|
|
background: color-mix(in srgb, var(--vscode-sideBar-background) 82%, var(--vscode-editor-inactiveSelectionBackground) 18%);
|
|
}
|
|
|
|
.rag-status-main {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.rag-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 999px;
|
|
margin-top: 4px;
|
|
background: var(--vscode-disabledForeground);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.rag-dot.state-idle {
|
|
background: var(--vscode-disabledForeground);
|
|
}
|
|
|
|
.rag-dot.state-indexing {
|
|
background: var(--vscode-charts-yellow, #d7ba7d);
|
|
}
|
|
|
|
.rag-dot.state-ready {
|
|
background: var(--vscode-testing-iconPassed, #73c991);
|
|
}
|
|
|
|
.rag-dot.state-error {
|
|
background: var(--vscode-testing-iconFailed, #f14c4c);
|
|
}
|
|
|
|
.rag-text {
|
|
min-width: 0;
|
|
}
|
|
|
|
.msg {
|
|
max-width: 95%;
|
|
padding: 8px 10px;
|
|
border-radius: 6px;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.msg-user {
|
|
align-self: flex-end;
|
|
background: var(--vscode-textBlockQuote-background);
|
|
border: 1px solid var(--vscode-widget-border, transparent);
|
|
}
|
|
|
|
.msg-assistant {
|
|
align-self: flex-start;
|
|
background: var(--vscode-editor-inactiveSelectionBackground, rgba(128, 128, 128, 0.15));
|
|
border: 1px solid var(--vscode-widget-border, transparent);
|
|
}
|
|
|
|
.msg-error {
|
|
align-self: stretch;
|
|
background: color-mix(in srgb, var(--vscode-inputValidation-errorBackground, rgba(241, 76, 76, 0.18)) 90%, transparent);
|
|
border: 1px solid var(--vscode-inputValidation-errorBorder, rgba(241, 76, 76, 0.7));
|
|
}
|
|
|
|
.msg-status {
|
|
align-self: stretch;
|
|
padding: 0;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--vscode-descriptionForeground, var(--vscode-disabledForeground));
|
|
font-size: 0.9em;
|
|
opacity: 0.9;
|
|
line-height: 1.12;
|
|
}
|
|
|
|
.msg-role {
|
|
font-size: 0.75em;
|
|
opacity: 0.8;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.msg-text,
|
|
.msg-markdown {
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.msg-markdown {
|
|
font-family: var(--vscode-editor-font-family, var(--vscode-font-family));
|
|
}
|