317 lines
6.1 KiB
CSS
317 lines
6.1 KiB
CSS
|
|
/* ===== 侧边栏对话样式 ===== */
|
||
|
|
.chat-container {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
height: 100%;
|
||
|
|
padding: 12px;
|
||
|
|
gap: 10px;
|
||
|
|
font-size: 14px;
|
||
|
|
background: var(--background-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-header {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
padding-bottom: 10px;
|
||
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-header h4 {
|
||
|
|
margin: 0;
|
||
|
|
font-size: 15px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: var(--text-normal);
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-header-actions {
|
||
|
|
display: flex;
|
||
|
|
gap: 6px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-clear-btn {
|
||
|
|
background: none;
|
||
|
|
border: none;
|
||
|
|
color: var(--text-muted);
|
||
|
|
cursor: pointer;
|
||
|
|
font-size: 13px;
|
||
|
|
padding: 4px 10px;
|
||
|
|
border-radius: 4px;
|
||
|
|
transition: all 0.2s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-clear-btn:hover {
|
||
|
|
background: var(--background-modifier-hover);
|
||
|
|
color: var(--text-error);
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-messages {
|
||
|
|
flex: 1;
|
||
|
|
overflow-y: auto;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 12px;
|
||
|
|
padding: 4px 0;
|
||
|
|
min-height: 200px;
|
||
|
|
max-height: 500px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-messages::-webkit-scrollbar {
|
||
|
|
width: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-messages::-webkit-scrollbar-track {
|
||
|
|
background: var(--background-secondary);
|
||
|
|
border-radius: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-messages::-webkit-scrollbar-thumb {
|
||
|
|
background: var(--background-modifier-border);
|
||
|
|
border-radius: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-empty {
|
||
|
|
color: var(--text-muted);
|
||
|
|
text-align: center;
|
||
|
|
padding: 40px 16px;
|
||
|
|
white-space: pre-line;
|
||
|
|
font-size: 13px;
|
||
|
|
line-height: 1.8;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-message {
|
||
|
|
padding: 10px 14px;
|
||
|
|
border-radius: 10px;
|
||
|
|
max-width: 92%;
|
||
|
|
animation: fadeIn 0.25s ease;
|
||
|
|
word-wrap: break-word;
|
||
|
|
user-select: text !important;
|
||
|
|
-webkit-user-select: text !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-message.user {
|
||
|
|
background: var(--background-secondary);
|
||
|
|
align-self: flex-end;
|
||
|
|
border-bottom-right-radius: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-message.assistant {
|
||
|
|
background: var(--background-primary-alt);
|
||
|
|
align-self: flex-start;
|
||
|
|
border-bottom-left-radius: 4px;
|
||
|
|
border: 1px solid var(--background-modifier-border);
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-message-label {
|
||
|
|
font-size: 11px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: var(--text-muted);
|
||
|
|
margin-bottom: 4px;
|
||
|
|
letter-spacing: 0.3px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-message-content {
|
||
|
|
word-break: break-word;
|
||
|
|
line-height: 1.7;
|
||
|
|
font-size: 14px;
|
||
|
|
color: var(--text-normal);
|
||
|
|
user-select: text !important;
|
||
|
|
-webkit-user-select: text !important;
|
||
|
|
cursor: text;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-message-content * {
|
||
|
|
user-select: text !important;
|
||
|
|
-webkit-user-select: text !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-message-content code {
|
||
|
|
background: var(--background-secondary);
|
||
|
|
padding: 1px 6px;
|
||
|
|
border-radius: 3px;
|
||
|
|
font-size: 13px;
|
||
|
|
font-family: var(--font-monospace);
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-message-content pre {
|
||
|
|
background: var(--background-secondary);
|
||
|
|
padding: 10px 12px;
|
||
|
|
border-radius: 6px;
|
||
|
|
overflow-x: auto;
|
||
|
|
margin: 6px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-message-content pre code {
|
||
|
|
background: none;
|
||
|
|
padding: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-btn-group {
|
||
|
|
display: flex;
|
||
|
|
gap: 6px;
|
||
|
|
margin-top: 8px;
|
||
|
|
flex-wrap: wrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-action-btn {
|
||
|
|
padding: 3px 12px;
|
||
|
|
font-size: 12px;
|
||
|
|
background: var(--background-secondary);
|
||
|
|
border: 1px solid var(--background-modifier-border);
|
||
|
|
border-radius: 4px;
|
||
|
|
color: var(--text-muted);
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.2s;
|
||
|
|
user-select: none;
|
||
|
|
-webkit-user-select: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-action-btn:hover {
|
||
|
|
background: var(--interactive-accent);
|
||
|
|
color: var(--text-on-accent);
|
||
|
|
border-color: var(--interactive-accent);
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-input-section {
|
||
|
|
border-top: 1px solid var(--background-modifier-border);
|
||
|
|
padding-top: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-input-row {
|
||
|
|
display: flex;
|
||
|
|
gap: 8px;
|
||
|
|
align-items: flex-end;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-input {
|
||
|
|
flex: 1;
|
||
|
|
background: var(--background-secondary);
|
||
|
|
border: 1px solid var(--background-modifier-border);
|
||
|
|
border-radius: 8px;
|
||
|
|
padding: 10px 12px;
|
||
|
|
font-size: 13px;
|
||
|
|
font-family: inherit;
|
||
|
|
resize: none;
|
||
|
|
min-height: 36px;
|
||
|
|
max-height: 120px;
|
||
|
|
color: var(--text-normal);
|
||
|
|
transition: border-color 0.2s;
|
||
|
|
line-height: 1.6;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-input:focus {
|
||
|
|
outline: none;
|
||
|
|
border-color: var(--interactive-accent);
|
||
|
|
box-shadow: 0 0 0 2px var(--interactive-accent-hover);
|
||
|
|
}
|
||
|
|
|
||
|
|
.chat-input:disabled {
|
||
|
|
opacity: 0.6;
|
||
|
|
cursor: not-allowed;
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes fadeIn {
|
||
|
|
from { opacity: 0; transform: translateY(6px); }
|
||
|
|
to { opacity: 1; transform: translateY(0); }
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ===== 设置页面样式 ===== */
|
||
|
|
.wa-settings-desc {
|
||
|
|
margin: 0 0 16px 0;
|
||
|
|
color: var(--text-muted);
|
||
|
|
font-size: 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.wa-action-wrapper {
|
||
|
|
border: 1px solid var(--background-modifier-border);
|
||
|
|
border-radius: 6px;
|
||
|
|
margin: 8px 0;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.wa-action-header {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
padding: 10px 14px;
|
||
|
|
cursor: default;
|
||
|
|
background: transparent;
|
||
|
|
}
|
||
|
|
|
||
|
|
.wa-action-summary {
|
||
|
|
font-weight: 500;
|
||
|
|
font-size: 14px;
|
||
|
|
color: var(--text-normal);
|
||
|
|
}
|
||
|
|
|
||
|
|
.wa-toggle-btn {
|
||
|
|
background: none;
|
||
|
|
border: none;
|
||
|
|
color: var(--text-muted);
|
||
|
|
cursor: pointer;
|
||
|
|
font-size: 12px;
|
||
|
|
padding: 2px 10px;
|
||
|
|
border-radius: 4px;
|
||
|
|
transition: all 0.2s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.wa-toggle-btn:hover {
|
||
|
|
background: var(--background-modifier-hover);
|
||
|
|
color: var(--text-normal);
|
||
|
|
}
|
||
|
|
|
||
|
|
.wa-action-body {
|
||
|
|
padding: 0 14px 14px 14px;
|
||
|
|
border-top: 1px solid var(--background-modifier-border);
|
||
|
|
background: transparent;
|
||
|
|
}
|
||
|
|
|
||
|
|
.wa-action-body .setting-item {
|
||
|
|
border-top: none !important;
|
||
|
|
padding: 10px 0 !important;
|
||
|
|
background: transparent !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.wa-action-body .setting-item:first-child {
|
||
|
|
padding-top: 14px !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.wa-action-body .setting-item:last-child {
|
||
|
|
padding-bottom: 0 !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.wa-action-body .setting-item .setting-item-info {
|
||
|
|
flex: 1 1 auto;
|
||
|
|
background: transparent !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.wa-action-body .setting-item .setting-item-control {
|
||
|
|
flex: 2 1 auto;
|
||
|
|
background: transparent !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ===== 系统提示词输入框放大 ===== */
|
||
|
|
.wa-action-body .setting-item .setting-item-control textarea {
|
||
|
|
min-height: 80px;
|
||
|
|
width: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ===== 添加新功能按钮容器 ===== */
|
||
|
|
.wa-add-btn-container {
|
||
|
|
display: flex;
|
||
|
|
justify-content: center;
|
||
|
|
margin-top: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.wa-add-btn-container .mod-cta {
|
||
|
|
padding: 6px 24px;
|
||
|
|
cursor: pointer;
|
||
|
|
border-radius: 4px;
|
||
|
|
border: none;
|
||
|
|
background: var(--interactive-accent);
|
||
|
|
color: var(--text-on-accent);
|
||
|
|
}
|
||
|
|
|
||
|
|
.wa-add-btn-container .mod-cta:hover {
|
||
|
|
background: var(--interactive-accent-hover);
|
||
|
|
}
|