743 lines
12 KiB
CSS
743 lines
12 KiB
CSS
/* ChatBox */
|
|
.chatbox {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: var(--chat-box-width);
|
|
background-color: #2d2d2d;
|
|
border-left: 1px solid #3a3a3a;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.chatbox.is-hidden {
|
|
display: none;
|
|
}
|
|
|
|
.chatbox-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
/* left title, right actions */
|
|
background-color: #3a3a3a;
|
|
height: 40px;
|
|
border-bottom: 1px solid #4a4a4a;
|
|
padding: 0 15px;
|
|
}
|
|
|
|
.chatbox-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.chatbox-action-btn {
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #e0e0e0;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.chatbox-action-btn:hover {
|
|
background-color: #4a4a4a;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.chatbox-toggle-btn.is-active {
|
|
background-color: #e0e0e0;
|
|
color: #2d2d2d;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.chatbox-toggle-btn.is-active:hover {
|
|
background-color: #f0f0f0;
|
|
}
|
|
|
|
/* ChatBox export button wrapper and dropdown positioning */
|
|
.chatbox-export-wrapper {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.chatbox-export-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.chatbox-export-dropdown-anchor {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
z-index: 10000;
|
|
}
|
|
|
|
.chatbox-export-dropdown .quant-dropdown {
|
|
width: 250px;
|
|
left: -200px;
|
|
}
|
|
|
|
.chatbox-header h3 {
|
|
color: #e0e0e0;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
margin: 0;
|
|
}
|
|
|
|
.chatbox-content {
|
|
flex: 1;
|
|
padding: 15px;
|
|
color: #e0e0e0;
|
|
font-size: 12px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.chatbox-local-runtime-section {
|
|
padding: 10px 14px 0 14px;
|
|
}
|
|
|
|
.chatbox-local-runtime-card {
|
|
background-color: #252525;
|
|
border: 1px solid #3a3a3a;
|
|
border-radius: 6px;
|
|
margin-bottom: 12px;
|
|
padding: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.chatbox-local-mode-title {
|
|
color: #e0e0e0;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
.chatbox-local-runtime-help,
|
|
.chatbox-local-runtime-warning,
|
|
.chatbox-local-runtime-error {
|
|
font-size: 11px;
|
|
line-height: 1.45;
|
|
margin: 0;
|
|
}
|
|
|
|
.chatbox-local-runtime-help {
|
|
color: #999;
|
|
}
|
|
|
|
.chatbox-local-runtime-warning {
|
|
color: #d0a56b;
|
|
}
|
|
|
|
.chatbox-local-runtime-error {
|
|
color: #d45a5a;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.chatbox-progress-block {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.chatbox-progress-track {
|
|
width: 100%;
|
|
height: 8px;
|
|
background-color: #1d1d1d;
|
|
border: 1px solid #3a3a3a;
|
|
border-radius: 999px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chatbox-progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #5a9fd4 0%, #7cc2f1 100%);
|
|
transition: width 0.15s linear;
|
|
}
|
|
|
|
.chatbox-gen-hint {
|
|
color: #888;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
margin-top: -4px;
|
|
}
|
|
|
|
/* Chat Messages */
|
|
.chatbox-messages {
|
|
flex: 1;
|
|
padding: 10px;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.chatbox-history-panel {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
|
|
.chatbox-history-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 14px 8px;
|
|
border-bottom: 1px solid #3a3a3a;
|
|
}
|
|
|
|
.chatbox-history-header h4 {
|
|
margin: 0;
|
|
font-size: 12px;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.chatbox-history-cancel {
|
|
background: transparent;
|
|
border: none;
|
|
color: #9fc7ea;
|
|
cursor: pointer;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.chatbox-history-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.chatbox-history-item {
|
|
width: 100%;
|
|
background: #262626;
|
|
border: 1px solid #3a3a3a;
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.chatbox-history-item:hover {
|
|
background: #2d2d2d;
|
|
border-color: #4a4a4a;
|
|
}
|
|
|
|
.chatbox-history-item-toprow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.chatbox-history-open-btn {
|
|
flex: 1;
|
|
min-width: 0;
|
|
background: transparent;
|
|
border: none;
|
|
color: inherit;
|
|
text-align: left;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chatbox-history-open-btn-body {
|
|
display: block;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.chatbox-history-item-title {
|
|
flex: 1;
|
|
min-width: 0;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.chatbox-history-item-meta {
|
|
font-size: 10px;
|
|
color: #9a9a9a;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.chatbox-history-delete-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: #b7b7b7;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 2px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.chatbox-history-delete-btn:hover {
|
|
color: #e17070;
|
|
}
|
|
|
|
.chatbox-history-item-preview {
|
|
font-size: 11px;
|
|
color: #c8c8c8;
|
|
margin-top: 6px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.chatbox-history-empty {
|
|
color: #999;
|
|
font-size: 11px;
|
|
padding: 16px 6px;
|
|
}
|
|
|
|
.chatbox-todo-card {
|
|
background: linear-gradient(180deg, #252525 0%, #202020 100%);
|
|
border: 1px solid #3a3a3a;
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.chatbox-todo-card-header {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.chatbox-todo-card-header h4 {
|
|
margin: 0;
|
|
color: #f0f0f0;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.chatbox-todo-count {
|
|
color: #8fb8da;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.chatbox-todo-active {
|
|
color: #d7d7d7;
|
|
font-size: 11px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.chatbox-todo-list {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.chatbox-todo-item {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: flex-start;
|
|
color: #d8d8d8;
|
|
font-size: 11px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.chatbox-todo-item.is-completed .chatbox-todo-text {
|
|
color: #9ba39f;
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
.chatbox-todo-item.is-in_progress .chatbox-todo-text {
|
|
color: #f0f0f0;
|
|
}
|
|
|
|
.chatbox-todo-marker {
|
|
width: 10px;
|
|
flex: 0 0 10px;
|
|
color: #7cc2f1;
|
|
text-align: center;
|
|
}
|
|
|
|
.chatbox-todo-item.is-completed .chatbox-todo-marker {
|
|
color: #67c18a;
|
|
}
|
|
|
|
.chatbox-todo-item.is-pending .chatbox-todo-marker {
|
|
color: #a7a7a7;
|
|
}
|
|
|
|
.chatbox-todo-status {
|
|
font-size: 10px;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.chatbox-todo-status.is-success {
|
|
color: #67c18a;
|
|
}
|
|
|
|
.chatbox-todo-status.is-error {
|
|
color: #d45a5a;
|
|
}
|
|
|
|
.message-container {
|
|
width: 100%;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.message-user {
|
|
width: 100%;
|
|
}
|
|
|
|
.message-assistant {
|
|
width: 100%;
|
|
}
|
|
|
|
.message-content {
|
|
padding: 8px 12px;
|
|
border-radius: 8px;
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* User message styling - lighter background like input */
|
|
.message-user .message-content {
|
|
background-color: #3a3a3a;
|
|
color: #e0e0e0;
|
|
border: 1px solid #4a4a4a;
|
|
}
|
|
|
|
/* Assistant message styling - transparent */
|
|
.message-assistant .message-content {
|
|
background-color: transparent;
|
|
color: #e0e0e0;
|
|
border: 1px solid #2a2a2a;
|
|
}
|
|
|
|
/* Input Area */
|
|
.chatbox-input-area {
|
|
padding: 10px;
|
|
}
|
|
|
|
.chatbox-input {
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
background-color: #4a4a4a;
|
|
border: 1px solid #5a5a5a;
|
|
border-radius: 6px;
|
|
color: #e0e0e0;
|
|
font-size: 12px;
|
|
outline: none;
|
|
resize: none;
|
|
min-height: 36px;
|
|
max-height: 120px;
|
|
}
|
|
|
|
.chatbox-input:focus {
|
|
border-color: #5a9fd4;
|
|
background-color: #4a4a4a;
|
|
}
|
|
|
|
.chatbox-input::placeholder {
|
|
color: #999;
|
|
}
|
|
|
|
|
|
/* Markdown styling in messages */
|
|
.message-content h1,
|
|
.message-content h2,
|
|
.message-content h3 {
|
|
margin: 8px 0 4px 0;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.message-content h3 {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.message-content p {
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.message-content ul,
|
|
.message-content ol {
|
|
margin: 4px 0;
|
|
padding-left: 16px;
|
|
}
|
|
|
|
.message-content li {
|
|
margin: 2px 0;
|
|
}
|
|
|
|
.message-content code {
|
|
background-color: #2a2a2a;
|
|
padding: 2px 4px;
|
|
border-radius: 3px;
|
|
font-family: 'Courier New', Courier, monospace;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.message-content pre {
|
|
background-color: #1a1a1a;
|
|
padding: 8px;
|
|
border-radius: 6px;
|
|
overflow-x: auto;
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.message-content blockquote {
|
|
border-left: 3px solid #5a5a5a;
|
|
padding-left: 12px;
|
|
margin: 8px 0;
|
|
color: #ccc;
|
|
}
|
|
|
|
.message-content .katex-display {
|
|
margin: 8px 0;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
}
|
|
|
|
.message-content .katex {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.message-content table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
margin: 8px 0;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.message-content th,
|
|
.message-content td {
|
|
border: 1px solid #4a4a4a;
|
|
padding: 4px 8px;
|
|
text-align: left;
|
|
}
|
|
|
|
.message-content th {
|
|
background-color: #3a3a3a;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.message-tool-result-title,
|
|
.message-tool-summary {
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.message-tool-summary {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0;
|
|
}
|
|
|
|
.message-tool-summary-prefix {
|
|
white-space: pre;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.message-tool-summary-content {
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.message-tool-confirmation-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.message-tool-confirmation-btn {
|
|
width: 100%;
|
|
margin-top: 0;
|
|
min-height: 32px;
|
|
}
|
|
|
|
.message-tool-summary-content > :first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.message-tool-summary-content > :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.message-performance-info {
|
|
margin-top: 8px;
|
|
font-size: 10px;
|
|
color: #909090;
|
|
}
|
|
|
|
.tool-call-code-block {
|
|
position: relative;
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.tool-call-code-block-inner {
|
|
overflow: hidden;
|
|
transition: max-height 0.24s ease;
|
|
}
|
|
|
|
.tool-call-code-block-inner > div {
|
|
margin: 0 !important;
|
|
}
|
|
|
|
.tool-call-code-block-inner pre {
|
|
margin: 0 !important;
|
|
overflow-x: auto !important;
|
|
overflow-y: hidden !important;
|
|
}
|
|
|
|
.tool-call-code-block-toggle {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
width: 100%;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tool-call-code-block-toggle-content {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 20px 12px 10px;
|
|
color: #d7e7f6;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tool-call-code-block-toggle:hover .tool-call-code-block-toggle-content {
|
|
color: #f0f7ff;
|
|
}
|
|
|
|
.tool-call-code-block-fade {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 0.92) 58%, #1a1a1a 100%);
|
|
}
|
|
|
|
.message-divider-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
width: 100%;
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.message-divider-banner-line {
|
|
flex: 1 1 auto;
|
|
height: 1px;
|
|
background: linear-gradient(90deg, rgba(102, 102, 102, 0.2) 0%, rgba(112, 112, 112, 0.55) 50%, rgba(102, 102, 102, 0.2) 100%);
|
|
}
|
|
|
|
.message-divider-banner-label {
|
|
flex: 0 0 auto;
|
|
color: #8c8c8c;
|
|
font-size: 11px;
|
|
letter-spacing: 0.02em;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Abort link styling */
|
|
.abort-link {
|
|
background: none !important;
|
|
border: none !important;
|
|
color: #5a9fd4 !important;
|
|
text-decoration: underline !important;
|
|
cursor: pointer !important;
|
|
padding: 0 !important;
|
|
font: inherit !important;
|
|
font-size: 12px !important;
|
|
}
|
|
|
|
.abort-link:hover {
|
|
color: #5a9fd4 !important;
|
|
text-decoration: none !important;
|
|
}
|
|
|
|
/* Tool XML Expander */
|
|
.tool-xml-expander {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.tool-xml-expander-header {
|
|
color: #e0e0e0;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
padding: 4px 8px;
|
|
/* background-color: #f5f5f5; */
|
|
border: 1px solid #2a2a2a;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.tool-xml-expander-arrow {
|
|
font-size: 12px;
|
|
color: #666;
|
|
}
|
|
|
|
.tool-xml-expander-title {
|
|
/* font-family: 'Courier New', Monaco, 'Menlo', 'Ubuntu Mono', monospace; */
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.tool-xml-expander-content {
|
|
margin-top: 4px;
|
|
padding: 8px;
|
|
background-color: #f9f9f9;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-family: 'Courier New', Monaco, 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 12px;
|
|
white-space: pre-wrap;
|
|
overflow: auto;
|
|
max-height: 200px;
|
|
color: #333;
|
|
}
|
|
|
|
/* Processing wave animation */
|
|
.processing-wave {
|
|
background: linear-gradient(90deg,
|
|
rgba(135, 206, 250, 0.5) 0%,
|
|
rgba(135, 206, 250, 0.8) 25%,
|
|
rgb(171, 218, 250) 50%,
|
|
rgba(135, 206, 250, 0.8) 75%,
|
|
rgba(135, 206, 250, 0.5) 100%);
|
|
background-size: 200% 100%;
|
|
background-clip: text;
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
animation: wave 2s linear infinite;
|
|
}
|
|
|
|
@keyframes wave {
|
|
0% {
|
|
background-position: 200% 0%;
|
|
}
|
|
|
|
100% {
|
|
background-position: -200% 0%;
|
|
}
|
|
}
|