Some checks failed
CI/CD / detect-changes (pull_request) Successful in 4s
CI/CD / build-and-deploy (pull_request) Has been cancelled
CI/CD / test-sqlite (pull_request) Has been cancelled
CI/CD / test-go-pg (pull_request) Has been cancelled
CI/CD / test-frontend (pull_request) Has been cancelled
Prefix enforcement prevents extension CSS from leaking into the kernel
or sibling extensions. All 12 in-tree packages migrated to .ext-{slug}-*
naming convention.
- Add data-ext attribute to extension mount container
- Add CSS linter (scripts/lint-package-css.sh) enforcing .ext-{slug} prefix
- Add kernel CSS contract doc (docs/EXTENSION-CSS.md)
- Migrate 12 packages: chat, dashboard, editor, git-board, hello-dashboard,
icd-test-runner, notes, schedules, sdk-test-runner, tasks,
team-activity-log, workflow-demo (CSS + JS in lockstep)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
198 lines
4.1 KiB
CSS
198 lines
4.1 KiB
CSS
/* ==========================================
|
|
Dashboard Surface — Layout Only
|
|
==========================================
|
|
v0.31.1: ZERO component CSS overrides.
|
|
Only grid, flex, sizing, and spacing.
|
|
All SDK components style themselves.
|
|
========================================== */
|
|
|
|
.ext-dashboard {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ── Topbar ──────────────────────────────── */
|
|
|
|
.ext-dashboard-topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 0 16px;
|
|
height: 44px;
|
|
flex-shrink: 0;
|
|
background: var(--bg-secondary);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.ext-dashboard-topbar-back {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
color: var(--text-2);
|
|
text-decoration: none;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
padding: 4px 8px;
|
|
border-radius: var(--radius);
|
|
transition: color 0.15s, background 0.15s;
|
|
}
|
|
|
|
.ext-dashboard-topbar-back:hover {
|
|
color: var(--text);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.ext-dashboard-topbar-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
.ext-dashboard-topbar-sep {
|
|
width: 1px;
|
|
height: 18px;
|
|
background: var(--border);
|
|
}
|
|
|
|
.ext-dashboard-topbar-spacer {
|
|
flex: 1;
|
|
}
|
|
|
|
/* ── Body ────────────────────────────────── */
|
|
|
|
.ext-dashboard-body {
|
|
display: flex;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* ── Sidebar ─────────────────────────────── */
|
|
|
|
.ext-dashboard-sidebar {
|
|
width: 300px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-right: 1px solid var(--border);
|
|
min-height: 0;
|
|
}
|
|
|
|
/* ── Main Content ────────────────────────── */
|
|
|
|
.ext-dashboard-main {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 20px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.ext-dashboard-greeting {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.ext-dashboard-subtitle {
|
|
font-size: 13px;
|
|
color: var(--text-3);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.ext-dashboard-filter-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.ext-dashboard-filter-label {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-2);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* ── Cards Grid ──────────────────────────── */
|
|
|
|
.ext-dashboard-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.ext-dashboard-card {
|
|
background: var(--bg-raised);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
transition: border-color 0.15s;
|
|
}
|
|
|
|
.ext-dashboard-card:hover {
|
|
border-color: var(--border-elevated);
|
|
}
|
|
|
|
.ext-dashboard-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.ext-dashboard-card-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ext-dashboard-card-meta {
|
|
font-size: 11px;
|
|
color: var(--text-3);
|
|
}
|
|
|
|
.ext-dashboard-card-desc {
|
|
font-size: 12px;
|
|
color: var(--text-2);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.ext-dashboard-card-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.ext-dashboard-empty {
|
|
text-align: center;
|
|
color: var(--text-3);
|
|
font-size: 13px;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
/* ── Admin Section ───────────────────────── */
|
|
|
|
.ext-dashboard-admin-section {
|
|
margin-top: 24px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.ext-dashboard-section-title {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-2);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-bottom: 12px;
|
|
}
|