Files

214 lines
3.6 KiB
CSS
Raw Permalink Normal View History

#pdd-reply-assistant-root {
--pdd-ra-blue: #3b63f6;
--pdd-ra-green: #17a56b;
--pdd-ra-red: #d93025;
--pdd-ra-text: #1f2937;
--pdd-ra-muted: #64748b;
--pdd-ra-border: #dbe3ef;
--pdd-ra-bg: #ffffff;
--pdd-ra-soft: #f6f8fb;
color: var(--pdd-ra-text);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
font-size: 13px;
position: fixed;
z-index: 2147483647;
}
#pdd-reply-assistant-root * {
box-sizing: border-box;
}
.pdd-ra-panel {
width: 320px;
border: 1px solid var(--pdd-ra-border);
border-radius: 8px;
background: var(--pdd-ra-bg);
box-shadow: 0 12px 34px rgba(15, 23, 42, 0.18);
overflow: hidden;
user-select: none;
}
.pdd-ra-header {
align-items: center;
background: #1f2937;
color: #fff;
cursor: move;
display: flex;
gap: 8px;
height: 38px;
padding: 0 10px;
}
.pdd-ra-title {
flex: 1;
font-size: 13px;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.pdd-ra-status {
border-radius: 999px;
height: 8px;
width: 8px;
}
.pdd-ra-status.is-idle {
background: #94a3b8;
}
.pdd-ra-status.is-listening {
background: var(--pdd-ra-green);
}
.pdd-ra-status.is-busy {
background: #f59e0b;
}
.pdd-ra-status.is-error {
background: var(--pdd-ra-red);
}
.pdd-ra-icon-btn {
align-items: center;
background: transparent;
border: 0;
border-radius: 6px;
color: inherit;
cursor: pointer;
display: inline-flex;
font-size: 16px;
height: 26px;
justify-content: center;
padding: 0;
width: 26px;
}
.pdd-ra-icon-btn:hover {
background: rgba(255, 255, 255, 0.14);
}
.pdd-ra-body {
padding: 10px;
}
.pdd-ra-controls {
align-items: center;
display: grid;
gap: 8px;
grid-template-columns: 1fr 1fr 1fr;
}
.pdd-ra-button {
align-items: center;
border: 1px solid var(--pdd-ra-border);
border-radius: 7px;
background: var(--pdd-ra-soft);
color: var(--pdd-ra-text);
cursor: pointer;
display: inline-flex;
font-size: 13px;
font-weight: 600;
height: 32px;
justify-content: center;
padding: 0 10px;
}
.pdd-ra-button:hover {
border-color: #a9b8cf;
}
.pdd-ra-button.is-primary {
background: var(--pdd-ra-blue);
border-color: var(--pdd-ra-blue);
color: #fff;
}
.pdd-ra-button.is-paused {
background: #fff7ed;
border-color: #fdba74;
color: #9a3412;
}
.pdd-ra-config {
display: none;
gap: 8px;
margin-top: 10px;
}
.pdd-ra-config.is-open {
display: grid;
}
.pdd-ra-field {
display: grid;
gap: 4px;
}
.pdd-ra-field span {
color: var(--pdd-ra-muted);
font-size: 12px;
}
.pdd-ra-field input {
border: 1px solid var(--pdd-ra-border);
border-radius: 6px;
color: var(--pdd-ra-text);
font: inherit;
height: 30px;
outline: none;
padding: 0 8px;
user-select: text;
width: 100%;
}
.pdd-ra-field input:focus {
border-color: var(--pdd-ra-blue);
box-shadow: 0 0 0 2px rgba(59, 99, 246, 0.12);
}
.pdd-ra-meta {
color: var(--pdd-ra-muted);
font-size: 12px;
line-height: 1.45;
margin-top: 8px;
}
.pdd-ra-log {
background: #0f172a;
border-radius: 7px;
color: #dbeafe;
height: 168px;
line-height: 1.45;
margin-top: 10px;
overflow: auto;
padding: 8px;
user-select: text;
white-space: pre-wrap;
}
.pdd-ra-bubble {
align-items: center;
background: var(--pdd-ra-blue);
border: 2px solid #fff;
border-radius: 999px;
box-shadow: 0 10px 26px rgba(15, 23, 42, 0.22);
color: #fff;
cursor: move;
display: none;
font-size: 14px;
font-weight: 700;
height: 54px;
justify-content: center;
width: 54px;
}
#pdd-reply-assistant-root.is-minimized .pdd-ra-panel {
display: none;
}
#pdd-reply-assistant-root.is-minimized .pdd-ra-bubble {
display: flex;
}