Files
auto_agent/src/web/css/skills.css
T
2026-08-01 11:15:19 +08:00

263 lines
4.9 KiB
CSS

/* ===== Skills 管理面板 ===== */
.skills-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.skill-card {
border: none;
border-radius: 12px;
padding: 0.85rem;
background: var(--surface);
transition: box-shadow 0.15s;
}
.skill-card:hover {
box-shadow: 0 3px 12px var(--shadow);
}
.skill-card-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.4rem;
}
.skill-card-header h4 {
margin: 0;
font-size: 0.92rem;
font-weight: 700;
color: var(--text);
}
.skill-card-actions {
display: flex;
gap: 0.35rem;
}
.skill-card-desc {
font-size: 0.78rem;
color: var(--text-tertiary);
margin-bottom: 0.4rem;
line-height: 1.4;
}
.skill-card-meta {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
font-size: 0.7rem;
color: var(--text-tertiary);
margin-bottom: 0.4rem;
}
.skill-card-tags {
display: flex;
gap: 0.3rem;
flex-wrap: wrap;
}
.skill-tag {
font-size: 0.68rem;
padding: 0.15rem 0.45rem;
border-radius: 999px;
background: color-mix(in srgb, var(--accent) 10%, transparent);
color: var(--accent);
border: none;
}
.skill-card-attachments {
display: flex;
gap: 0.3rem;
flex-wrap: wrap;
margin-top: 0.35rem;
}
.skill-attachment-chip {
font-size: 0.68rem;
padding: 0.15rem 0.45rem;
border-radius: 6px;
background: var(--bg-tertiary);
color: var(--text-tertiary);
border: none;
}
/* Skill 编辑器弹窗 */
.skill-editor-overlay {
position: fixed;
inset: 0;
z-index: 200;
display: flex;
align-items: center;
justify-content: center;
background: var(--overlay-bg);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
animation: fadeIn 0.18s ease;
}
.skill-editor-overlay[hidden] {
display: none;
}
.skill-editor-dialog {
width: min(720px, 90vw);
min-height: 50vh;
max-height: 88vh;
max-height: 88dvh;
background: var(--surface);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
border-radius: 18px;
border: 1px solid var(--border);
box-shadow: 0 24px 64px var(--shadow);
display: flex;
flex-direction: column;
overflow: hidden;
animation: slideUp 0.22s ease;
}
.skill-editor-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.85rem 1.15rem;
border-bottom: 1px solid var(--divider);
}
.skill-editor-header h3 {
margin: 0;
font-size: 1.05rem;
color: var(--text);
}
.skill-editor-close {
width: 2rem;
height: 2rem;
padding: 0;
border-radius: 999px;
border: none;
outline: none;
background: var(--surface);
cursor: pointer;
font-size: 1rem;
color: var(--text-tertiary);
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.15s;
}
.skill-editor-close:hover {
background: var(--danger-bg);
color: var(--danger);
}
.skill-editor-body {
flex: 1;
overflow-y: auto;
padding: 1rem 1.15rem;
min-height: 0;
}
.skill-editor-body .setting-field {
margin-bottom: 0.7rem;
}
.skill-editor-body .setting-field label {
display: block;
font-size: 0.75rem;
font-weight: 700;
color: var(--text-tertiary);
margin-bottom: 0.25rem;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.skill-editor-body .setting-field input,
.skill-editor-body .setting-field textarea {
width: 100%;
border: 1px solid var(--border);
border-radius: 8px;
padding: 0.45rem 0.55rem;
font: inherit;
font-size: 0.85rem;
background: var(--surface);
color: var(--text);
transition: border-color 0.15s, box-shadow 0.15s;
box-sizing: border-box;
}
.skill-editor-body .setting-field input:focus,
.skill-editor-body .setting-field textarea:focus {
border-color: var(--accent, #0e7490);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
outline: none;
}
.skill-editor-body .setting-field textarea {
resize: vertical;
min-height: 120px;
font-size: 0.82rem;
line-height: 1.45;
}
.skill-editor-footer {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 0.5rem;
padding: 0.7rem 1.15rem;
border-top: 1px solid var(--divider);
background: var(--bg-tertiary);
}
.skill-editor-status {
font-size: 0.8rem;
font-weight: 500;
margin-right: auto;
color: var(--text-tertiary);
}
.skill-editor-status.success {
color: var(--success);
}
.skill-editor-status.error {
color: var(--danger);
}
.skill-attachments {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
margin-bottom: 0.35rem;
}
.skill-attachment-item {
display: inline-flex;
align-items: center;
gap: 0.3rem;
font-size: 0.75rem;
padding: 0.25rem 0.5rem;
border-radius: 6px;
background: var(--surface);
}
.skill-attachment-item button {
border: none;
background: none;
cursor: pointer;
color: var(--danger);
font-size: 0.85rem;
padding: 0;
line-height: 1;
opacity: 0.6;
transition: opacity 0.15s;
}
.skill-attachment-item button:hover {
opacity: 1;
}