增加语音对话功能
This commit is contained in:
@@ -752,3 +752,215 @@
|
||||
.chatpapers-cite-btn {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* --- Voice lecture pane --- */
|
||||
.chatpapers-lecture-root {
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-empty {
|
||||
padding: 20px 12px;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-status {
|
||||
padding: 8px 10px;
|
||||
border-radius: 8px;
|
||||
font-size: 12px;
|
||||
line-height: 1.45;
|
||||
background: color-mix(in srgb, #1f7a8c 10%, transparent);
|
||||
border: 1px solid color-mix(in srgb, #1f7a8c 22%, transparent);
|
||||
}
|
||||
|
||||
.chatpapers-lecture-status[data-status="failed"] {
|
||||
background: color-mix(in srgb, #dc2626 10%, transparent);
|
||||
border-color: color-mix(in srgb, #dc2626 25%, transparent);
|
||||
}
|
||||
|
||||
.chatpapers-lecture-status[data-status="ready"] {
|
||||
background: color-mix(in srgb, #16a34a 10%, transparent);
|
||||
border-color: color-mix(in srgb, #16a34a 25%, transparent);
|
||||
}
|
||||
|
||||
.chatpapers-lecture-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-primary {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 8px 14px;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
background: #1f7a8c;
|
||||
color: #fff;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-primary:hover:not(:disabled) {
|
||||
background: #186678;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-status-text {
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-primary:disabled {
|
||||
opacity: 0.55;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-secondary {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 8px 14px;
|
||||
border: 1px solid color-mix(in srgb, #1f7a8c 35%, transparent);
|
||||
border-radius: 8px;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-secondary:hover:not(:disabled) {
|
||||
background: color-mix(in srgb, #1f7a8c 10%, transparent);
|
||||
}
|
||||
|
||||
.chatpapers-lecture-secondary:disabled {
|
||||
opacity: 0.55;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-tts-meta {
|
||||
font-size: 12px;
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-audio {
|
||||
width: 100%;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-btn-icon {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-hint {
|
||||
font-size: 11px;
|
||||
opacity: 0.65;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-player {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-player-title {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-beat-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
max-height: 220px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-beat-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
padding: 8px 10px;
|
||||
border: 1px solid color-mix(in srgb, #1f7a8c 18%, transparent);
|
||||
border-radius: 8px;
|
||||
background: color-mix(in srgb, #1f7a8c 4%, transparent);
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
font: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-beat-item:hover:not(:disabled) {
|
||||
background: color-mix(in srgb, #1f7a8c 10%, transparent);
|
||||
}
|
||||
|
||||
.chatpapers-lecture-beat-item.is-active {
|
||||
border-color: color-mix(in srgb, #16a34a 45%, transparent);
|
||||
background: color-mix(in srgb, #16a34a 10%, transparent);
|
||||
}
|
||||
|
||||
.chatpapers-lecture-beat-item.is-pending {
|
||||
opacity: 0.55;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-beat-meta {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-beat-type {
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
opacity: 0.65;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-beat-title {
|
||||
font-size: 12px;
|
||||
line-height: 1.35;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-beat-status {
|
||||
flex-shrink: 0;
|
||||
font-size: 11px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-player-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-player-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border: 1px solid color-mix(in srgb, #1f7a8c 30%, transparent);
|
||||
border-radius: 999px;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.chatpapers-lecture-player-btn:hover {
|
||||
background: color-mix(in srgb, #1f7a8c 12%, transparent);
|
||||
}
|
||||
|
||||
.chatpapers-lecture-error {
|
||||
padding: 12px;
|
||||
color: #dc2626;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user