- Rebrand: new app/agent icons, SKALD.md, warm "paper" CSS palette (terracotta accent, --radius tokens, WCAG contrast, reduced-motion), updated favicon, tray icon, skaldkonur asset - i18n: backend crate (i18n.rs, locale column, ui_locale config), frontend library (web/lib/i18n.js, I18nMixin, t(key)), translation files (web/i18n/), every component wired - Dashboard: <dashboard-page> replaces old home-page content; <app-copilot> becomes the landing page (full/dock layout modes) - Shared folders: API endpoints (shared_folders.rs), frontend page, can_write membership, container mount topology, user_fs routing - Role capabilities: new db table & authorization seam (data not enums), roles.attrs JSON for ui_mode / interface select - Setup: skald-setup prompts for language + password, sets ui_locale - General: components migrated to CSS variables, Lit conventions cleanup, connectors/catalog/marketplace/approval refactoring
220 lines
5.5 KiB
CSS
220 lines
5.5 KiB
CSS
/* ── Input area ────────────────────────────────────────────────────────────── */
|
|
|
|
.copilot-input-area {
|
|
padding: 0.6rem 0.75rem 0.75rem;
|
|
border-top: 1px solid var(--toolbar-border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.copilot-composer {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border: 1px solid var(--toolbar-border);
|
|
border-radius: 0.6rem;
|
|
background: var(--msg-assistant-bg);
|
|
transition: border-color 0.15s;
|
|
}
|
|
|
|
.copilot-composer:focus-within {
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
|
|
}
|
|
|
|
.copilot-textarea {
|
|
resize: none;
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
font-size: 0.95rem;
|
|
line-height: 1.6;
|
|
padding: 0.65rem 0.85rem 0.45rem;
|
|
min-height: 2.6rem;
|
|
max-height: 14rem;
|
|
overflow-y: auto;
|
|
color: inherit;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* ── Toolbar ───────────────────────────────────────────────────────────────── */
|
|
|
|
.copilot-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.3rem 0.4rem;
|
|
border-top: 1px solid var(--toolbar-border);
|
|
gap: 0.3rem;
|
|
}
|
|
|
|
.copilot-toolbar-left,
|
|
.copilot-toolbar-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.copilot-toolbar-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 2rem;
|
|
height: 2rem;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 0.5rem;
|
|
background: transparent;
|
|
color: var(--placeholder-color);
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
transition: background 0.12s, color 0.12s;
|
|
}
|
|
|
|
.copilot-toolbar-btn:hover {
|
|
background: var(--sidebar-hover);
|
|
color: var(--text-primary, #1e293b);
|
|
}
|
|
|
|
/* ── Model pill + dropdown ─────────────────────────────────────────────────── */
|
|
|
|
.copilot-model-wrap {
|
|
position: relative;
|
|
}
|
|
|
|
.copilot-model-pill {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.3rem;
|
|
padding: 0.2rem 0.5rem;
|
|
border: 1px solid transparent;
|
|
border-radius: 999px;
|
|
background: transparent;
|
|
font-size: 0.75rem;
|
|
color: var(--placeholder-color);
|
|
cursor: pointer;
|
|
transition: background 0.12s, border-color 0.12s, color 0.12s;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.copilot-model-pill:hover,
|
|
.copilot-model-pill.open {
|
|
background: rgba(var(--accent-rgb), 0.08);
|
|
border-color: rgba(var(--accent-rgb), 0.3);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.copilot-model-pill i:first-child {
|
|
font-size: 0.75rem;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.copilot-model-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 99;
|
|
}
|
|
|
|
.copilot-model-dropdown {
|
|
position: absolute;
|
|
bottom: calc(100% + 6px);
|
|
left: 0;
|
|
background: var(--msg-assistant-bg);
|
|
border: 1px solid var(--toolbar-border);
|
|
border-radius: 0.5rem;
|
|
padding: 0.3rem 0;
|
|
min-width: 160px;
|
|
z-index: 100;
|
|
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
.copilot-model-item {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 0.3rem 0.75rem;
|
|
background: transparent;
|
|
border: none;
|
|
text-align: left;
|
|
font-size: 0.8rem;
|
|
cursor: pointer;
|
|
color: inherit;
|
|
transition: background 0.1s;
|
|
}
|
|
|
|
.copilot-model-item:hover { background: rgba(var(--accent-rgb), 0.07); }
|
|
.copilot-model-item.active { color: var(--accent); font-weight: 600; }
|
|
|
|
/* ── Slash-command autocomplete ─────────────────────────────────────────────── */
|
|
|
|
.copilot-cmd-menu {
|
|
position: absolute;
|
|
bottom: calc(100% + 6px);
|
|
left: 0;
|
|
right: 0;
|
|
background: var(--msg-assistant-bg);
|
|
border: 1px solid var(--toolbar-border);
|
|
border-radius: 0.5rem;
|
|
padding: 0.25rem 0;
|
|
max-height: 15rem;
|
|
overflow-y: auto;
|
|
z-index: 100;
|
|
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
.copilot-cmd-item {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 0.5rem;
|
|
width: 100%;
|
|
padding: 0.3rem 0.75rem;
|
|
background: transparent;
|
|
border: none;
|
|
text-align: left;
|
|
font-size: 0.8rem;
|
|
cursor: pointer;
|
|
color: inherit;
|
|
transition: background 0.1s;
|
|
}
|
|
|
|
.copilot-cmd-item:hover,
|
|
.copilot-cmd-item.active { background: rgba(var(--accent-rgb), 0.1); }
|
|
|
|
.copilot-cmd-name { font-weight: 600; color: var(--accent); white-space: nowrap; }
|
|
|
|
.copilot-cmd-desc {
|
|
color: var(--text-muted, #888);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ── Send / stop button ────────────────────────────────────────────────────── */
|
|
|
|
.copilot-send-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 1.9rem;
|
|
height: 1.9rem;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 0.45rem;
|
|
background: var(--accent);
|
|
color: #fff;
|
|
font-size: 0.8rem;
|
|
cursor: pointer;
|
|
transition: background 0.12s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.copilot-send-btn:hover { background: var(--accent-hover); }
|
|
.copilot-send-btn--stop { background: #dc2626; }
|
|
.copilot-send-btn--stop:hover { background: #b91c1c; }
|
|
.copilot-send-btn--recording { background: #dc2626; animation: copilot-pulse 1s ease-in-out infinite; }
|
|
.copilot-send-btn--recording:hover { background: #b91c1c; }
|
|
|
|
@keyframes copilot-pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.65; }
|
|
}
|