Changeset 0.22.9 (#151)
This commit is contained in:
429
src/css/surfaces.css
Normal file
429
src/css/surfaces.css
Normal file
@@ -0,0 +1,429 @@
|
||||
/* ── surfaces.css ─────────────────────────────
|
||||
Admin, settings, editor, projects, stat cards, data tables
|
||||
──────────────────────────────────────────── */
|
||||
|
||||
/* ── Admin Storage Panel ────────────────────── */
|
||||
|
||||
.admin-storage-card {
|
||||
background: var(--bg-raised); border: 1px solid var(--border);
|
||||
border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
|
||||
}
|
||||
.admin-storage-card h4 { margin: 0 0 10px 0; font-size: 14px; }
|
||||
.admin-storage-desc { font-size: 12px; color: var(--text-3); margin: 0 0 10px 0; }
|
||||
.admin-storage-grid {
|
||||
display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
.admin-storage-item { display: flex; flex-direction: column; gap: 2px; }
|
||||
.admin-storage-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; }
|
||||
.admin-storage-value { font-size: 14px; font-weight: 500; }
|
||||
|
||||
|
||||
/* =========================================
|
||||
PROJECTS (v0.19.0)
|
||||
========================================= */
|
||||
|
||||
.project-group {
|
||||
margin-bottom: 2px;
|
||||
border-radius: var(--radius);
|
||||
transition: background 0.15s;
|
||||
}
|
||||
.project-group.drag-over {
|
||||
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
||||
outline: 1px dashed var(--accent);
|
||||
outline-offset: -1px;
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
.project-header {
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
padding: 6px 10px; cursor: pointer; user-select: none;
|
||||
border-radius: var(--radius);
|
||||
transition: background var(--transition);
|
||||
}
|
||||
.project-header:hover { background: var(--bg-hover); }
|
||||
|
||||
.project-arrow {
|
||||
font-size: 10px; color: var(--text-3); width: 12px; text-align: center; flex-shrink: 0;
|
||||
}
|
||||
.project-dot {
|
||||
width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
|
||||
background: var(--text-3); display: inline-block;
|
||||
}
|
||||
.project-name {
|
||||
font-size: 12px; font-weight: 600; color: var(--text-2);
|
||||
flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||||
}
|
||||
.project-count {
|
||||
font-size: 10px; color: var(--text-3); flex-shrink: 0; margin-left: auto;
|
||||
}
|
||||
.project-menu-btn {
|
||||
opacity: 0; background: none; border: none; color: var(--text-3);
|
||||
cursor: pointer; font-size: 14px; padding: 0 4px; border-radius: 4px;
|
||||
transition: opacity var(--transition), background var(--transition);
|
||||
line-height: 1; flex-shrink: 0;
|
||||
}
|
||||
.project-header:hover .project-menu-btn { opacity: 1; }
|
||||
.project-header:hover .project-count { display: none; }
|
||||
.project-menu-btn:hover { background: var(--bg-raised); color: var(--text); }
|
||||
|
||||
.project-empty {
|
||||
font-size: 11px; color: var(--text-3); padding: 4px 10px 8px 28px;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Active project indicator (v0.19.1) */
|
||||
.project-group.active { border-left: 2px solid var(--accent); }
|
||||
.project-group.active .project-header { background: color-mix(in srgb, var(--accent) 6%, transparent); }
|
||||
.project-pin { font-size: 10px; margin-left: 2px; opacity: 0.7; }
|
||||
|
||||
.sidebar.collapsed .project-group { display: none; }
|
||||
.sidebar.collapsed .recent-section .chat-group-label { display: none; }
|
||||
|
||||
/* Recent section drop target */
|
||||
.recent-section { min-height: 40px; }
|
||||
.recent-section.drag-over {
|
||||
background: color-mix(in srgb, var(--accent) 8%, transparent);
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
/* Dragging state */
|
||||
.chat-item.dragging { opacity: 0.4; }
|
||||
.chat-item[draggable="true"] { cursor: grab; }
|
||||
.chat-item[draggable="true"]:active { cursor: grabbing; }
|
||||
|
||||
/* Context menu */
|
||||
.project-ctx-menu {
|
||||
position: fixed; z-index: 9999;
|
||||
background: var(--bg-surface); border: 1px solid var(--border);
|
||||
border-radius: var(--radius); box-shadow: var(--shadow);
|
||||
padding: 4px; min-width: 160px; max-width: 220px;
|
||||
}
|
||||
.ctx-item {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
width: 100%; padding: 7px 10px; border: none; background: none;
|
||||
color: var(--text-2); font-size: 13px; cursor: pointer;
|
||||
border-radius: calc(var(--radius) - 2px); text-align: left;
|
||||
white-space: nowrap; overflow: hidden;
|
||||
}
|
||||
.ctx-item:hover { background: var(--bg-hover); color: var(--text); }
|
||||
.ctx-item.ctx-danger:hover { background: var(--danger-bg, #fef2f2); color: var(--danger, #ef4444); }
|
||||
.ctx-icon { width: 16px; text-align: center; flex-shrink: 0; font-size: 12px; }
|
||||
.ctx-divider { height: 1px; background: var(--border); margin: 3px 0; }
|
||||
.ctx-hint { font-size: 11px; color: var(--text-3); padding: 6px 10px; }
|
||||
|
||||
/* Time labels inside project-grouped sidebar */
|
||||
.chat-time-label { padding-left: 12px; font-size: 10px; }
|
||||
|
||||
/* ── Project Detail Panel (v0.19.1) ───────── */
|
||||
.project-panel { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
|
||||
.project-panel-section { display: flex; flex-direction: column; gap: 6px; }
|
||||
.project-panel-section-header { display: flex; justify-content: space-between; align-items: center; }
|
||||
.project-panel-label { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.5px; }
|
||||
.project-panel-textarea {
|
||||
width: 100%; resize: vertical; min-height: 80px; padding: 8px;
|
||||
font-family: var(--font-mono, monospace); font-size: 13px;
|
||||
background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
|
||||
color: var(--text);
|
||||
}
|
||||
.project-panel-textarea:focus { outline: none; border-color: var(--accent); }
|
||||
.project-panel-status { font-size: 11px; margin-left: 8px; }
|
||||
.project-panel-status.success { color: var(--success, #22c55e); }
|
||||
.project-panel-status.error { color: var(--danger, #ef4444); }
|
||||
.project-panel-list { display: flex; flex-direction: column; gap: 2px; }
|
||||
.project-panel-item {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 6px 8px; border-radius: var(--radius);
|
||||
background: var(--bg); border: 1px solid var(--border);
|
||||
font-size: 13px;
|
||||
}
|
||||
.project-panel-item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.project-panel-item-remove {
|
||||
background: none; border: none; cursor: pointer; color: var(--text-3);
|
||||
font-size: 14px; padding: 2px 4px; border-radius: 4px; flex-shrink: 0;
|
||||
}
|
||||
.project-panel-item-remove:hover { color: var(--danger, #ef4444); background: var(--danger-bg, #fef2f2); }
|
||||
.project-panel-empty { font-size: 12px; color: var(--text-3); font-style: italic; padding: 4px 0; }
|
||||
.project-panel-select {
|
||||
width: 100%; padding: 6px 8px; font-size: 13px;
|
||||
background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
|
||||
color: var(--text);
|
||||
}
|
||||
.project-panel-select:focus { outline: none; border-color: var(--accent); }
|
||||
.project-panel-hint { font-size: 11px; color: var(--text-3); margin-top: 2px; }
|
||||
.project-panel-ws-row { display: flex; gap: 6px; align-items: center; }
|
||||
.project-panel-ws-row select { flex: 1; }
|
||||
.project-panel-checkbox {
|
||||
display: flex; align-items: center; gap: 8px; font-size: 13px;
|
||||
cursor: pointer; color: var(--text-2);
|
||||
}
|
||||
.project-panel-checkbox input { cursor: pointer; }
|
||||
.project-panel-footer { padding-top: 8px; border-top: 1px solid var(--border); }
|
||||
.project-show-archived {
|
||||
background: none; border: none; cursor: pointer;
|
||||
font-size: 11px; color: var(--text-3); padding: 6px 10px;
|
||||
width: 100%; text-align: left;
|
||||
}
|
||||
.project-show-archived:hover { color: var(--text-2); }
|
||||
.project-group.archived { opacity: 0.5; }
|
||||
.project-group.archived .project-header { font-style: italic; }
|
||||
|
||||
/* ── Router Workspace Picker (v0.21.6) ──── */
|
||||
|
||||
.router-picker-overlay {
|
||||
position: fixed; inset: 0; z-index: 9999;
|
||||
background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
}
|
||||
.router-picker {
|
||||
background: var(--bg-primary, #1a1a2e); color: var(--text, #e0e0e0);
|
||||
border: 1px solid var(--border, #333); border-radius: 12px;
|
||||
padding: 24px; min-width: 320px; max-width: 440px;
|
||||
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
|
||||
}
|
||||
.router-picker h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
|
||||
.router-picker p { margin: 0 0 16px; font-size: 13px; color: var(--text-2, #999); }
|
||||
.router-picker-list {
|
||||
display: flex; flex-direction: column; gap: 4px;
|
||||
max-height: 280px; overflow-y: auto; margin-bottom: 16px;
|
||||
}
|
||||
.router-picker-empty {
|
||||
padding: 24px; text-align: center; color: var(--text-3, #666); font-size: 13px;
|
||||
}
|
||||
.router-picker-item {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
padding: 10px 12px; border: 1px solid var(--border, #333);
|
||||
border-radius: 8px; background: none; color: var(--text, #e0e0e0);
|
||||
cursor: pointer; font-size: 14px; text-align: left;
|
||||
transition: background 0.15s, border-color 0.15s;
|
||||
}
|
||||
.router-picker-item:hover {
|
||||
background: var(--hover, rgba(255,255,255,0.05));
|
||||
border-color: var(--accent, #6366f1);
|
||||
}
|
||||
.router-picker-icon { font-size: 18px; flex-shrink: 0; }
|
||||
.router-picker-actions {
|
||||
display: flex; gap: 8px; justify-content: flex-end;
|
||||
}
|
||||
|
||||
/* ── Settings Surface ────────────────────── */
|
||||
|
||||
.surface-settings {
|
||||
display: flex; height: 100%; overflow: hidden;
|
||||
}
|
||||
.settings-topbar {
|
||||
display: flex; align-items: center; gap: 12px;
|
||||
padding: 10px 20px; border-bottom: 1px solid var(--border);
|
||||
background: var(--bg-surface); flex-shrink: 0;
|
||||
}
|
||||
.settings-topbar-back {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
background: none; border: none; color: var(--text-3);
|
||||
cursor: pointer; font-family: inherit; font-size: 13px;
|
||||
padding: 4px 8px; border-radius: 6px; transition: color 0.12s;
|
||||
}
|
||||
.settings-topbar-back:hover { color: var(--text); }
|
||||
.settings-topbar-sep { width: 1px; height: 20px; background: var(--border); }
|
||||
.settings-topbar-title { font-size: 15px; font-weight: 600; }
|
||||
.settings-nav {
|
||||
width: 220px; flex-shrink: 0;
|
||||
border-right: 1px solid var(--border);
|
||||
background: var(--bg-surface);
|
||||
padding: 12px 8px; overflow-y: auto;
|
||||
display: flex; flex-direction: column; gap: 2px;
|
||||
}
|
||||
.settings-nav-link {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
padding: 8px 12px; border-radius: 8px;
|
||||
color: var(--text-2); text-decoration: none;
|
||||
font-size: 13px; font-weight: 500; transition: all 0.12s;
|
||||
border: none; background: none; cursor: pointer;
|
||||
font-family: inherit; width: 100%; text-align: left;
|
||||
}
|
||||
.settings-nav-link:hover { background: var(--bg-hover); color: var(--text); text-decoration: none; }
|
||||
.settings-nav-link.active { background: var(--accent-dim); color: var(--accent); }
|
||||
.settings-nav-sep { margin: 8px 0; border-top: 1px solid var(--border); }
|
||||
.settings-nav-footer {
|
||||
margin-top: auto; padding: 10px 12px; border-top: 1px solid var(--border);
|
||||
}
|
||||
.settings-content { flex: 1; overflow-y: auto; padding: 28px; }
|
||||
.settings-content h2 { font-size: 18px; font-weight: 600; margin: 0 0 20px; }
|
||||
.settings-section {
|
||||
margin-bottom: 24px; padding: 20px;
|
||||
background: var(--bg-surface); border-radius: 10px;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.settings-section h3 {
|
||||
font-size: 15px; font-weight: 600; margin: 0 0 16px;
|
||||
padding-bottom: 10px; border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.settings-placeholder {
|
||||
padding: 40px 20px; color: var(--text-3);
|
||||
text-align: center; font-size: 13px;
|
||||
}
|
||||
|
||||
/* ── Admin Surface ───────────────────────── */
|
||||
|
||||
.surface-admin {
|
||||
display: flex; flex-direction: column; height: 100%; overflow: hidden;
|
||||
}
|
||||
.admin-topbar {
|
||||
display: flex; align-items: center; gap: 12px;
|
||||
padding: 10px 20px; border-bottom: 1px solid var(--border);
|
||||
background: var(--bg-surface); flex-shrink: 0;
|
||||
}
|
||||
.admin-topbar-back {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
background: none; border: none; color: var(--text-3);
|
||||
cursor: pointer; font-family: inherit; font-size: 13px;
|
||||
padding: 4px 8px; border-radius: 6px; transition: color 0.12s;
|
||||
}
|
||||
.admin-topbar-back:hover { color: var(--text); }
|
||||
.admin-topbar-sep { width: 1px; height: 20px; background: var(--border); }
|
||||
.admin-topbar-title { font-size: 15px; font-weight: 600; }
|
||||
.admin-category-tabs {
|
||||
display: flex; gap: 1px; padding: 3px;
|
||||
background: var(--bg); border-radius: 10px;
|
||||
border: 1px solid var(--border); margin-left: auto;
|
||||
}
|
||||
.admin-cat-btn {
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
padding: 6px 14px; border-radius: 7px; border: none;
|
||||
cursor: pointer; font-size: 13px; font-weight: 500;
|
||||
font-family: inherit; background: transparent; color: var(--text-3);
|
||||
transition: all 0.12s;
|
||||
}
|
||||
.admin-cat-btn.active { background: var(--bg-raised); color: var(--text); }
|
||||
.admin-cat-btn:hover { color: var(--text-2); }
|
||||
.admin-body { display: flex; flex: 1; min-height: 0; }
|
||||
.admin-nav {
|
||||
width: 200px; background: var(--bg-surface);
|
||||
border-right: 1px solid var(--border);
|
||||
padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; flex-shrink: 0;
|
||||
}
|
||||
.admin-nav-link {
|
||||
display: flex; padding: 8px 12px; border-radius: 8px;
|
||||
border: none; cursor: pointer; font-family: inherit;
|
||||
font-size: 13px; font-weight: 500; width: 100%;
|
||||
text-align: left; transition: all 0.12s;
|
||||
background: transparent; color: var(--text-2);
|
||||
text-decoration: none;
|
||||
}
|
||||
.admin-nav-link:hover { background: var(--bg-hover); color: var(--text); text-decoration: none; }
|
||||
.admin-nav-link.active { background: var(--accent-dim); color: var(--accent); }
|
||||
.admin-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
|
||||
.admin-content-header {
|
||||
display: flex; align-items: center; gap: 12px;
|
||||
padding: 14px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0;
|
||||
}
|
||||
.admin-content-header h2 { font-size: 16px; font-weight: 600; margin: 0; }
|
||||
.admin-search {
|
||||
display: flex; align-items: center; gap: 7px;
|
||||
background: var(--input-bg, var(--bg)); border-radius: 8px;
|
||||
padding: 6px 10px; border: 1px solid var(--border); width: 220px;
|
||||
}
|
||||
.admin-search input {
|
||||
background: none; border: none; color: var(--text);
|
||||
font-size: 12px; font-family: inherit; flex: 1; outline: none;
|
||||
}
|
||||
.admin-content-body { flex: 1; overflow-y: auto; padding: 24px; }
|
||||
|
||||
/* ── Stat Cards ──────────────────────────── */
|
||||
.stat-cards { display: flex; gap: 12px; margin-bottom: 20px; }
|
||||
.stat-card {
|
||||
padding: 16px 20px; background: var(--bg-surface);
|
||||
border: 1px solid var(--border); border-radius: 10px; flex: 1;
|
||||
}
|
||||
.stat-card-value { font-size: 24px; font-weight: 700; }
|
||||
.stat-card-label { font-size: 12px; color: var(--text-2); margin-top: 2px; }
|
||||
.stat-card-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
|
||||
|
||||
/* ── Data Tables ─────────────────────────── */
|
||||
.data-table { width: 100%; border-collapse: collapse; }
|
||||
.data-table th {
|
||||
padding: 10px 14px; text-align: left; font-weight: 600;
|
||||
font-size: 11px; color: var(--text-3); text-transform: uppercase;
|
||||
letter-spacing: 0.5px; border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.data-table td {
|
||||
padding: 10px 14px; font-size: 13px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.data-table tr:hover td { background: var(--bg-hover); }
|
||||
|
||||
/* ── Editor Surface ──────────────────────── */
|
||||
|
||||
.surface-editor {
|
||||
display: flex; flex-direction: column; height: 100%; overflow: hidden;
|
||||
}
|
||||
.editor-topbar {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
padding: 6px 12px; border-bottom: 1px solid var(--border);
|
||||
background: var(--bg-surface); flex-shrink: 0;
|
||||
}
|
||||
.editor-topbar-back {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
background: none; border: none; color: var(--text-3);
|
||||
cursor: pointer; font-family: inherit; font-size: 13px;
|
||||
padding: 4px 8px; border-radius: 6px;
|
||||
}
|
||||
.editor-topbar-back:hover { color: var(--text); }
|
||||
.editor-body { display: flex; flex: 1; min-height: 0; }
|
||||
.editor-tree {
|
||||
width: 220px; background: var(--bg-surface);
|
||||
border-right: 1px solid var(--border);
|
||||
display: flex; flex-direction: column; flex-shrink: 0;
|
||||
}
|
||||
.editor-tree-header {
|
||||
padding: 8px 10px; border-bottom: 1px solid var(--border);
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
}
|
||||
.editor-tree-files { flex: 1; overflow-y: auto; padding: 4px 0; }
|
||||
.editor-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
|
||||
.editor-tabs {
|
||||
display: flex; align-items: center;
|
||||
background: var(--bg-raised); border-bottom: 1px solid var(--border);
|
||||
flex-shrink: 0; overflow-x: auto; min-height: 33px;
|
||||
}
|
||||
.editor-tab {
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
padding: 6px 12px; cursor: pointer; font-size: 12px;
|
||||
white-space: nowrap; border-right: 1px solid var(--border);
|
||||
background: transparent; color: var(--text-3);
|
||||
border-bottom: 2px solid transparent;
|
||||
border-top: none; border-left: none;
|
||||
font-family: inherit;
|
||||
}
|
||||
.editor-tab.active {
|
||||
background: var(--bg); color: var(--text);
|
||||
border-bottom-color: var(--accent);
|
||||
}
|
||||
.editor-content { flex: 1; overflow: auto; }
|
||||
.editor-statusbar {
|
||||
display: flex; align-items: center; gap: 14px;
|
||||
padding: 3px 12px; background: var(--bg-surface);
|
||||
border-top: 1px solid var(--border); flex-shrink: 0;
|
||||
font-size: 11px; color: var(--text-3);
|
||||
font-family: var(--mono);
|
||||
}
|
||||
.editor-chat {
|
||||
display: flex; flex-direction: column;
|
||||
min-width: 200px; background: var(--bg-surface);
|
||||
}
|
||||
.editor-chat-header {
|
||||
padding: 8px 12px; border-bottom: 1px solid var(--border);
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
}
|
||||
.editor-chat-messages { flex: 1; overflow-y: auto; padding: 12px; }
|
||||
.editor-chat-input {
|
||||
padding: 8px 12px; border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.settings-nav { width: 160px; font-size: 12px; padding: 12px 8px; }
|
||||
.settings-content { padding: 16px; }
|
||||
.admin-nav { width: 160px; }
|
||||
.admin-content-body { padding: 16px; }
|
||||
.editor-tree { width: 180px; }
|
||||
}
|
||||
Reference in New Issue
Block a user