Some checks are pending
build-and-push / image (push) Waiting to run
- Implemented demand pane for managing trend-driven design jobs. - Created diffusion pane for generating images via Stable Diffusion. - Added inbox pane for sweeping and routing artifacts through the CxAI inbox classifier. - Developed items pane for CRUD operations against /api/items. - Introduced lang pane for running language pipelines. - Established mac pane for macOS app distribution information. - Integrated slack pane for sending messages and displaying diagnostics. - Built system pane for process introspection and version information. - Launched tools pane for browsing and invoking MCP tools. - Set up websocket pane for connecting to the /ws/echo service.
503 lines
14 KiB
CSS
503 lines
14 KiB
CSS
/* app.css — components built on tokens.css. No Tailwind dependencies. */
|
|
|
|
* { box-sizing: border-box; }
|
|
html, body { height: 100%; }
|
|
body {
|
|
margin: 0;
|
|
font-family: var(--font-sans);
|
|
font-size: 14px;
|
|
color: var(--fg);
|
|
background: var(--bg);
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
a { color: var(--brand); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
code, pre { font-family: var(--font-mono); font-size: 12.5px; }
|
|
pre {
|
|
background: var(--bg-elev-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--r);
|
|
padding: 12px 14px;
|
|
color: var(--fg);
|
|
overflow: auto;
|
|
margin: 0;
|
|
line-height: 1.55;
|
|
}
|
|
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
|
|
h2 { font-size: 16px; }
|
|
h3 { font-size: 13px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .08em; }
|
|
|
|
/* ---------- layout ---------- */
|
|
.app {
|
|
display: grid;
|
|
grid-template-columns: var(--nav-w) 1fr;
|
|
grid-template-rows: var(--header-h) 1fr;
|
|
grid-template-areas:
|
|
"side header"
|
|
"side main";
|
|
min-height: 100vh;
|
|
}
|
|
@media (max-width: 900px) {
|
|
.app { grid-template-columns: 1fr; grid-template-areas: "header" "main"; }
|
|
.sidebar { display: none; }
|
|
}
|
|
|
|
.header {
|
|
grid-area: header;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 0 20px;
|
|
background: var(--bg-elev);
|
|
border-bottom: 1px solid var(--border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
.header .crumb {
|
|
font-weight: 600;
|
|
font-size: 14.5px;
|
|
}
|
|
.header .crumb .sep { color: var(--fg-faint); margin: 0 6px; }
|
|
.header .grow { flex: 1; }
|
|
|
|
.cmd-trigger {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
height: 32px;
|
|
padding: 0 12px;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg);
|
|
color: var(--fg-muted);
|
|
border-radius: var(--r);
|
|
font-size: 12.5px;
|
|
cursor: pointer;
|
|
transition: background var(--t-fast), border-color var(--t-fast);
|
|
}
|
|
.cmd-trigger:hover { background: var(--bg-hover); border-color: var(--border-2); }
|
|
.cmd-trigger kbd {
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
padding: 1px 6px;
|
|
border-radius: 4px;
|
|
background: var(--bg-active);
|
|
color: var(--fg);
|
|
}
|
|
|
|
.icon-btn {
|
|
width: 32px; height: 32px;
|
|
display: inline-grid; place-items: center;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg);
|
|
color: var(--fg-muted);
|
|
border-radius: var(--r);
|
|
cursor: pointer;
|
|
transition: background var(--t-fast), color var(--t-fast);
|
|
}
|
|
.icon-btn:hover { background: var(--bg-hover); color: var(--fg); }
|
|
.icon-btn svg { width: 16px; height: 16px; }
|
|
|
|
.sidebar {
|
|
grid-area: side;
|
|
background: var(--bg-elev);
|
|
border-right: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: sticky;
|
|
top: 0;
|
|
height: 100vh;
|
|
overflow-y: auto;
|
|
}
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 16px 18px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.brand .mark {
|
|
width: 32px; height: 32px;
|
|
border-radius: 8px;
|
|
background: var(--brand-grad);
|
|
display: grid; place-items: center;
|
|
color: white;
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
letter-spacing: -.03em;
|
|
box-shadow: var(--shadow-2);
|
|
}
|
|
.brand .name { font-weight: 600; font-size: 15px; }
|
|
.brand .ver { font-size: 11px; color: var(--fg-faint); }
|
|
|
|
.nav-group { padding: 10px 8px 4px; }
|
|
.nav-group .label {
|
|
font-size: 10.5px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: .1em;
|
|
color: var(--fg-faint);
|
|
padding: 8px 12px 4px;
|
|
}
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 7px 12px;
|
|
border-radius: var(--r-sm);
|
|
color: var(--fg-muted);
|
|
cursor: pointer;
|
|
font-size: 13.5px;
|
|
user-select: none;
|
|
border: none;
|
|
background: none;
|
|
width: 100%;
|
|
text-align: left;
|
|
transition: background var(--t-fast), color var(--t-fast);
|
|
}
|
|
.nav-item:hover { background: var(--bg-hover); color: var(--fg); }
|
|
.nav-item.active {
|
|
background: var(--bg-active);
|
|
color: var(--fg);
|
|
font-weight: 600;
|
|
}
|
|
.nav-item .ic { width: 16px; height: 16px; flex-shrink: 0; opacity: .8; }
|
|
.nav-item.active .ic { opacity: 1; color: var(--brand); }
|
|
.nav-item .pill {
|
|
margin-left: auto;
|
|
font-size: 10.5px;
|
|
padding: 1px 7px;
|
|
border-radius: 999px;
|
|
background: var(--bg-active);
|
|
color: var(--fg-muted);
|
|
}
|
|
.nav-item.active .pill { background: var(--brand); color: white; }
|
|
|
|
.sidebar-footer {
|
|
margin-top: auto;
|
|
padding: 12px;
|
|
border-top: 1px solid var(--border);
|
|
font-size: 11.5px;
|
|
color: var(--fg-faint);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
/* ---------- main ---------- */
|
|
.main {
|
|
grid-area: main;
|
|
padding: var(--pane-pad);
|
|
overflow-x: hidden;
|
|
}
|
|
.pane { display: none; animation: fade-in var(--t) ease; }
|
|
.pane.active { display: block; }
|
|
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }
|
|
|
|
.pane-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
margin-bottom: 18px;
|
|
}
|
|
.pane-head .title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
|
|
.pane-head .sub { color: var(--fg-muted); font-size: 13px; }
|
|
.pane-head .grow { flex: 1; }
|
|
|
|
/* ---------- cards ---------- */
|
|
.card {
|
|
background: var(--bg-elev);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--r-md);
|
|
padding: 18px 20px;
|
|
box-shadow: var(--shadow-1);
|
|
}
|
|
.card + .card { margin-top: var(--gap); }
|
|
.card-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
|
|
.card-title h2 { font-size: 15px; }
|
|
|
|
.grid { display: grid; gap: var(--gap); }
|
|
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
@media (max-width: 1100px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
|
|
@media (max-width: 700px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
|
|
|
|
/* KPI tile */
|
|
.kpi {
|
|
background: var(--bg-elev);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--r-md);
|
|
padding: 16px 18px;
|
|
box-shadow: var(--shadow-1);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.kpi .label {
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: .08em;
|
|
color: var(--fg-muted);
|
|
font-weight: 600;
|
|
}
|
|
.kpi .value {
|
|
font-size: 26px;
|
|
font-weight: 700;
|
|
letter-spacing: -.02em;
|
|
margin-top: 4px;
|
|
}
|
|
.kpi .sub { font-size: 12px; color: var(--fg-faint); margin-top: 4px; }
|
|
.kpi .accent {
|
|
position: absolute; right: 14px; top: 14px;
|
|
width: 28px; height: 28px;
|
|
display: grid; place-items: center;
|
|
border-radius: 8px;
|
|
background: rgb(124 92 255 / .14);
|
|
color: var(--brand);
|
|
}
|
|
.kpi .accent svg { width: 16px; height: 16px; }
|
|
|
|
/* ---------- forms ---------- */
|
|
.input, select.input, textarea.input {
|
|
height: 36px;
|
|
padding: 0 12px;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
border-radius: var(--r-sm);
|
|
font: inherit;
|
|
font-size: 13.5px;
|
|
outline: none;
|
|
transition: border-color var(--t-fast), box-shadow var(--t-fast);
|
|
width: 100%;
|
|
}
|
|
textarea.input { height: auto; padding: 10px 12px; line-height: 1.5; font-family: var(--font-mono); font-size: 12.5px; }
|
|
.input:focus { border-color: var(--brand); box-shadow: var(--ring); }
|
|
.input:disabled { opacity: .55; cursor: not-allowed; }
|
|
|
|
label.field { display: block; }
|
|
label.field .lbl { display: block; font-size: 11.5px; color: var(--fg-muted); font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }
|
|
|
|
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
|
|
.check input { accent-color: var(--brand); }
|
|
|
|
.btn {
|
|
height: 36px;
|
|
padding: 0 14px;
|
|
border-radius: var(--r-sm);
|
|
font: inherit; font-size: 13.5px; font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
|
|
display: inline-flex; align-items: center; gap: 7px;
|
|
border: 1px solid transparent;
|
|
}
|
|
.btn:active { transform: translateY(1px); }
|
|
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
|
|
|
|
.btn-primary { background: var(--brand); color: white; }
|
|
.btn-primary:hover:not(:disabled) { background: #6a4ae6; }
|
|
.btn-secondary { background: var(--bg); border-color: var(--border); color: var(--fg); }
|
|
.btn-secondary:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--border-2); }
|
|
.btn-ghost { background: transparent; color: var(--fg-muted); }
|
|
.btn-ghost:hover:not(:disabled) { background: var(--bg-hover); color: var(--fg); }
|
|
.btn-danger { background: var(--err); color: white; }
|
|
.btn-danger:hover:not(:disabled) { background: #be123c; }
|
|
|
|
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
|
|
/* ---------- status / pill / badge ---------- */
|
|
.pill {
|
|
display: inline-flex; align-items: center; gap: 6px;
|
|
padding: 2px 9px;
|
|
border-radius: 999px;
|
|
font-size: 11.5px;
|
|
font-weight: 500;
|
|
background: var(--bg-active);
|
|
color: var(--fg);
|
|
}
|
|
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
|
|
.pill.ok { background: var(--ok-bg); color: var(--ok); }
|
|
.pill.warn { background: var(--warn-bg); color: var(--warn); }
|
|
.pill.err { background: var(--err-bg); color: var(--err); }
|
|
.pill.info { background: var(--info-bg); color: var(--info); }
|
|
.pill.muted { color: var(--fg-faint); }
|
|
|
|
/* ---------- tables ---------- */
|
|
table.t {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
}
|
|
table.t th, table.t td {
|
|
text-align: left;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
table.t th {
|
|
color: var(--fg-muted);
|
|
font-weight: 600;
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: .06em;
|
|
background: var(--bg);
|
|
}
|
|
table.t tbody tr:hover { background: var(--bg-hover); }
|
|
table.t code { color: var(--fg-muted); }
|
|
|
|
/* ---------- list rows ---------- */
|
|
.row {
|
|
display: flex; align-items: center; gap: 10px;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.row:last-child { border-bottom: 0; }
|
|
.row .grow { flex: 1; min-width: 0; }
|
|
.row .ttl { font-weight: 500; }
|
|
.row .desc { color: var(--fg-muted); font-size: 12.5px; word-break: break-word; }
|
|
.row .id { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-faint); }
|
|
.row .act { color: var(--err); cursor: pointer; font-size: 12px; }
|
|
.row .act:hover { text-decoration: underline; }
|
|
|
|
/* ---------- console / log ---------- */
|
|
.console {
|
|
background: #0a0e1c;
|
|
color: #c7eebd;
|
|
border-radius: var(--r);
|
|
padding: 12px 14px;
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
line-height: 1.55;
|
|
overflow: auto;
|
|
border: 1px solid #1c2540;
|
|
}
|
|
html:not(.dark) .console { background: #0d1530; color: #d4f0c9; }
|
|
|
|
.log-line + .log-line { margin-top: 1px; }
|
|
.log-line .ts { color: #7c89a8; margin-right: 8px; }
|
|
|
|
/* ---------- toast ---------- */
|
|
.toasts {
|
|
position: fixed; right: 18px; bottom: 18px;
|
|
display: flex; flex-direction: column; gap: 8px;
|
|
z-index: 100;
|
|
pointer-events: none;
|
|
}
|
|
.toast {
|
|
background: var(--bg-elev);
|
|
border: 1px solid var(--border-2);
|
|
border-left: 3px solid var(--info);
|
|
border-radius: var(--r);
|
|
padding: 10px 14px;
|
|
box-shadow: var(--shadow-3);
|
|
min-width: 260px;
|
|
max-width: 360px;
|
|
font-size: 13px;
|
|
pointer-events: auto;
|
|
animation: toast-in var(--t) ease;
|
|
}
|
|
.toast.ok { border-left-color: var(--ok); }
|
|
.toast.warn { border-left-color: var(--warn); }
|
|
.toast.err { border-left-color: var(--err); }
|
|
.toast .ttl { font-weight: 600; font-size: 12.5px; margin-bottom: 2px; }
|
|
.toast .body { color: var(--fg-muted); font-size: 12.5px; word-break: break-word; }
|
|
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
|
|
|
|
/* ---------- command palette ---------- */
|
|
.palette-bg {
|
|
position: fixed; inset: 0;
|
|
background: rgb(8 12 28 / .55);
|
|
backdrop-filter: blur(4px);
|
|
display: none;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
padding-top: 14vh;
|
|
z-index: 50;
|
|
}
|
|
.palette-bg.open { display: flex; }
|
|
.palette {
|
|
width: min(620px, 92vw);
|
|
background: var(--bg-elev);
|
|
border: 1px solid var(--border-2);
|
|
border-radius: var(--r-md);
|
|
box-shadow: var(--shadow-3);
|
|
overflow: hidden;
|
|
animation: pal-in var(--t-slow) cubic-bezier(.16,1,.3,1);
|
|
}
|
|
@keyframes pal-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
|
|
.palette input {
|
|
width: 100%;
|
|
height: 52px;
|
|
padding: 0 18px;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--fg);
|
|
font-size: 15px;
|
|
outline: none;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
|
|
.palette li {
|
|
padding: 9px 12px;
|
|
border-radius: var(--r-sm);
|
|
cursor: pointer;
|
|
display: flex; align-items: center; gap: 10px;
|
|
font-size: 13.5px;
|
|
}
|
|
.palette li.active { background: var(--bg-active); }
|
|
.palette li .grow { flex: 1; min-width: 0; }
|
|
.palette li .ic { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }
|
|
.palette li .group { font-size: 11px; color: var(--fg-faint); }
|
|
|
|
/* ---------- misc ---------- */
|
|
.muted { color: var(--fg-muted); }
|
|
.faint { color: var(--fg-faint); }
|
|
.mono { font-family: var(--font-mono); font-size: 12.5px; }
|
|
.scroll { overflow: auto; }
|
|
.h-48 { height: 12rem; }
|
|
.h-64 { height: 16rem; }
|
|
.mt-2 { margin-top: 8px; }
|
|
.mt-3 { margin-top: 12px; }
|
|
.mt-4 { margin-top: 16px; }
|
|
.mb-2 { margin-bottom: 8px; }
|
|
.mb-3 { margin-bottom: 12px; }
|
|
.mb-4 { margin-bottom: 16px; }
|
|
.gap-2 { gap: 8px; }
|
|
.gap-3 { gap: 12px; }
|
|
.flex { display: flex; }
|
|
.flex-wrap { flex-wrap: wrap; }
|
|
.items-center { align-items: center; }
|
|
.justify-between { justify-content: space-between; }
|
|
.w-full { width: 100%; }
|
|
.divider { height: 1px; background: var(--border); margin: 12px 0; border: 0; }
|
|
|
|
/* skeleton loader */
|
|
.skel {
|
|
background: linear-gradient(90deg, var(--bg-active) 0%, var(--bg-hover) 50%, var(--bg-active) 100%);
|
|
background-size: 200% 100%;
|
|
animation: skel 1.2s linear infinite;
|
|
border-radius: var(--r-sm);
|
|
min-height: 12px;
|
|
}
|
|
@keyframes skel { to { background-position: -200% 0; } }
|
|
|
|
/* image gallery */
|
|
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
|
|
.gallery img {
|
|
width: 100%; aspect-ratio: 1/1; object-fit: cover;
|
|
border-radius: var(--r); border: 1px solid var(--border);
|
|
}
|
|
|
|
/* tool list */
|
|
.tool-card {
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--r);
|
|
padding: 12px 14px;
|
|
background: var(--bg);
|
|
}
|
|
.tool-card + .tool-card { margin-top: 8px; }
|
|
.tool-card h4 { margin: 0; font-size: 13.5px; font-weight: 600; font-family: var(--font-mono); }
|
|
.tool-card p { margin: 4px 0 0; color: var(--fg-muted); font-size: 12.5px; }
|