Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

feat(ui): restyle the Terminal/Logs page to the flush console look

Juan Denis2f66507a0c98
diff --git a/frontend/src/pages/Terminal.jsx b/frontend/src/pages/Terminal.jsx
index 7b08d38d..dab84a9c 100644
--- a/frontend/src/pages/Terminal.jsx
+++ b/frontend/src/pages/Terminal.jsx
@@ -9,6 +9,7 @@ import LogFileList from '../components/log-viewer/LogFileList';
import LogToolbar from '../components/log-viewer/LogToolbar';
import LogContent from '../components/log-viewer/LogContent';
import { formatBytes, logKindFromPath } from '../components/log-viewer/logHelpers';
+import { Pill } from '../components/ds';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';
@@ -580,11 +581,7 @@ const JournalTab = () => {
</span>
)}
{!isJournalctl && source && (
- <span className="lv-header-hint" style={{
- background: 'rgba(59, 130, 246, 0.1)',
- borderColor: 'rgba(59, 130, 246, 0.25)',
- color: '#60a5fa',
- }}>
+ <span className="lv-header-hint lv-header-hint--info">
<AlertCircle size={12} />
Reading from <strong>&nbsp;{sourceLabel}</strong>
</span>
@@ -739,13 +736,14 @@ const JournalTab = () => {
);
};
+// Journal priority dot tints — categorical, aligned to the redesign palette.
function priorityColor(value) {
- if (value === '0' || value === '1' || value === '2') return '#ef4444';
- if (value === '3') return '#f87171';
- if (value === '4') return '#f59e0b';
- if (value === '5' || value === '6') return '#60a5fa';
- if (value === '7') return '#94a3b8';
- return '#71717a';
+ if (value === '0' || value === '1' || value === '2') return '#fb6f6f';
+ if (value === '3') return '#fc8d8d';
+ if (value === '4') return '#f5b945';
+ if (value === '5' || value === '6') return '#49c7f0';
+ if (value === '7') return '#9aa1af';
+ return '#646b7a';
}
const ProcessesTab = () => {
@@ -926,12 +924,12 @@ const ProcessesTab = () => {
].map(c => (
<button
key={c.id}
- className={`filter-chip ${statusFilter === c.id ? 'active' : ''}`}
+ className={`proc-chip ${statusFilter === c.id ? 'active' : ''}`}
onClick={() => setStatusFilter(c.id)}
disabled={c.id !== 'all' && c.count === 0}
>
<span>{c.label}</span>
- <span className="filter-chip-count">{c.count}</span>
+ <span className="proc-chip-count">{c.count}</span>
</button>
))}
</div>
@@ -985,7 +983,7 @@ const ProcessesTab = () => {
onClick={() => setUserFilter(null)}
style={{ gridTemplateColumns: '8px 1fr auto', gridTemplateAreas: '"dot name size" "dot name size"' }}
>
- <span className="lv-file-dot" style={{ background: '#6366f1' }} />
+ <span className="lv-file-dot" style={{ background: 'var(--accent)' }} />
<span className="lv-file-name">All users</span>
<span className="lv-file-size">{processes.length}</span>
</button>
@@ -1074,10 +1072,7 @@ const ProcessesTab = () => {
</div>
</td>
<td>
- <span className={`proc-status status-${(p.status || '').toLowerCase()}`}>
- <span className="proc-status-dot" />
- {p.status}
- </span>
+ <Pill kind={processStatusKind(p.status)}>{p.status}</Pill>
</td>
<td className="proc-actions" onClick={(e) => e.stopPropagation()}>
<button className="lv-icon-btn" onClick={() => handleKillProcess(p.pid)} title="Kill (SIGTERM)">
@@ -1179,15 +1174,19 @@ const ProcessesTab = () => {
);
};
-// Stable colour from a string — used to tag users by colour.
+// Stable colour from a string — used to tag users by colour (categorical
+// tints aligned to the redesign palette).
function hashColor(str) {
- if (!str) return '#71717a';
- const palette = ['#6366f1', '#10b981', '#f59e0b', '#ec4899', '#14b8a6', '#a855f7', '#0ea5e9', '#fb7185'];
+ if (!str) return '#646b7a';
+ const palette = ['#6d7cff', '#3ddc97', '#f5b945', '#ec4899', '#14b8a6', '#b07bf5', '#49c7f0', '#fb7185'];
let h = 0;
for (let i = 0; i < str.length; i++) h = (h * 31 + str.charCodeAt(i)) | 0;
return palette[Math.abs(h) % palette.length];
}
+// Map a service status kind onto a ds Pill tone.
+const SVC_PILL_KIND = { running: 'green', failed: 'red', stopped: 'gray', other: 'amber' };
+
const ServicesTab = () => {
const toast = useToast();
const { confirm, confirmState, handleConfirm, handleCancel } = useConfirm();
@@ -1366,12 +1365,12 @@ const ServicesTab = () => {
].map(c => (
<button
key={c.id}
- className={`filter-chip ${statusFilter === c.id ? 'active' : ''}`}
+ className={`proc-chip ${statusFilter === c.id ? 'active' : ''}`}
onClick={() => setStatusFilter(c.id)}
disabled={c.id !== 'all' && c.count === 0}
>
<span>{c.label}</span>
- <span className="filter-chip-count">{c.count}</span>
+ <span className="proc-chip-count">{c.count}</span>
</button>
))}
</div>
@@ -1414,9 +1413,9 @@ const ServicesTab = () => {
<span className={`svc-status-dot status-${kind}`} />
<h4>{service.name}</h4>
</div>
- <span className={`svc-status-pill status-${kind}`}>
+ <Pill kind={SVC_PILL_KIND[kind] || 'gray'}>
{service.status || 'unknown'}
- </span>
+ </Pill>
</div>
{service.description && (
<p className="svc-card-desc" title={service.description}>
@@ -1610,19 +1609,21 @@ function formatMemory(bytes) {
return `${bytes.toFixed(1)} ${units[i]}`;
}
-function getStatusVariant(status) {
+// Map a process status onto a ds Pill tone.
+function processStatusKind(status) {
switch (status?.toLowerCase()) {
case 'running':
+ return 'green';
case 'sleeping':
- return 'success';
+ return 'cyan';
case 'stopped':
case 'zombie':
- return 'destructive';
+ return 'red';
case 'idle':
case 'disk-sleep':
- return 'warning';
+ return 'amber';
default:
- return 'secondary';
+ return 'gray';
}
}
diff --git a/frontend/src/styles/pages/_terminal.scss b/frontend/src/styles/pages/_terminal.scss
index 1ba6e9bf..b5e4cee6 100644
--- a/frontend/src/styles/pages/_terminal.scss
+++ b/frontend/src/styles/pages/_terminal.scss
@@ -1,4 +1,10 @@
-// Terminal & Logs Page Styles
+// ============================================
+// TERMINAL & LOGS — flush "infra console" look (REDESIGN_MAP §4 #12).
+// Tab bodies: Log Files + System Journal (lv-*), Processes (proc-*),
+// Services (svc-*). The lv-* viewer classes are also rendered by
+// components/log-viewer/*, and .lv-icon-btn is reused by Docker.jsx —
+// keep their shapes stable.
+// ============================================
.terminal-page {
.tabs {
@@ -17,46 +23,53 @@
}
// ============================================
-// LOG VIEWER (LOG FILES TAB)
+// LOG VIEWER (LOG FILES + JOURNAL TABS)
// ============================================
-// Severity palette for log lines
-$lv-fatal: #ef4444;
-$lv-error: #f87171;
-$lv-warn: #f59e0b;
-$lv-info: #60a5fa;
-$lv-debug: #94a3b8;
-
-// Log-kind dot palette (file list + viewer header)
-$lk-error: #ef4444;
-$lk-access: #10b981;
-$lk-nginx: #6366f1;
-$lk-apache: #d97706;
-$lk-database: #a855f7;
+// Severity palette for log lines — categorical tints aligned to the redesign
+// palette (literal hex: these feed SCSS fade(), which can't take var()).
+$lv-fatal: #fb6f6f;
+$lv-error: #fc8d8d;
+$lv-warn: #f5b945;
+$lv-info: #49c7f0;
+$lv-debug: #9aa1af;
+
+// Log-kind dot palette (file rail + viewer header) — categorical tints.
+$lk-error: #fb6f6f;
+$lk-access: #3ddc97;
+$lk-nginx: #6d7cff;
+$lk-apache: #f59e0b;
+$lk-database: #b07bf5;
$lk-php: #777bb4;
-$lk-system: #94a3b8;
+$lk-system: #9aa1af;
$lk-security: #ec4899;
$lk-mail: #14b8a6;
-$lk-default: #71717a;
+$lk-default: #646b7a;
-// Spinning animation reused by various refresh icons
+// Spinning animation reused by the various refresh icons
+.terminal-page .spinning,
.lv-page .spinning { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
+// ─── Console frame (panes joined by 1px borders) ──────
.lv-page {
display: flex;
flex-direction: column;
- gap: $space-3;
height: calc(100vh - 220px);
min-height: 540px;
+ background: var(--surface);
+ border: 1px solid var(--border);
+ border-radius: var(--radius-lg);
+ overflow: hidden;
&.fullscreen {
position: fixed;
inset: 0;
z-index: $z-modal;
height: 100vh;
- background: $bg-body;
- padding: $space-4;
+ min-height: 0;
+ border: none;
+ border-radius: 0;
}
}
@@ -66,11 +79,11 @@ $lk-default: #71717a;
justify-content: space-between;
align-items: center;
gap: $space-4;
- padding: $space-2 $space-3;
- background: $bg-card;
- border: 1px solid $border-default;
- border-radius: $radius-lg;
+ padding: 9px $space-4;
+ background: var(--surface);
+ border-bottom: 1px solid var(--border-soft);
flex-wrap: wrap;
+ flex-shrink: 0;
}
.lv-header-target {
@@ -81,23 +94,33 @@ $lk-default: #71717a;
}
.lv-header-label {
- font-size: 9px;
+ font-family: var(--mono);
+ font-size: 10px;
text-transform: uppercase;
- letter-spacing: 0.06em;
+ letter-spacing: 0.08em;
font-weight: $font-weight-semibold;
- color: $text-tertiary;
+ color: var(--text-ghost);
}
.lv-header-hint {
display: inline-flex;
align-items: center;
gap: $space-1;
- padding: 2px $space-2;
+ padding: 3px $space-2;
background: $warning-bg;
border: 1px solid $warning-border;
- border-radius: $radius-sm;
+ border-radius: $radius-md;
color: $warning;
- font-size: $font-size-xs;
+ font-family: var(--mono);
+ font-size: 11px;
+
+ svg { flex-shrink: 0; }
+
+ &--info {
+ background: $info-bg;
+ border-color: $info-border;
+ color: $info;
+ }
}
.lv-header-stats {
@@ -105,49 +128,51 @@ $lk-default: #71717a;
align-items: center;
gap: $space-3;
flex-wrap: wrap;
- color: $text-tertiary;
- font-size: $font-size-xs;
+ color: var(--text-faint);
+ font-size: $font-size-sm;
}
.lv-stat {
display: inline-flex;
align-items: center;
gap: $space-1;
- color: $text-secondary;
+ color: var(--text-dim);
- svg { color: $text-tertiary; }
+ svg { color: var(--text-faint); }
}
.lv-stat-label {
- font-size: 9px;
+ font-family: var(--mono);
+ font-size: 9.5px;
text-transform: uppercase;
- letter-spacing: 0.04em;
+ letter-spacing: 0.08em;
font-weight: $font-weight-semibold;
- color: $text-tertiary;
+ color: var(--text-ghost);
}
.lv-stat-value {
- font-family: $font-mono;
- color: $text-secondary;
+ font-family: var(--mono);
+ font-size: $font-size-sm;
+ color: var(--text-dim);
}
.lv-stat-divider {
width: 1px;
height: 12px;
- background: $border-default;
+ background: var(--border);
}
-// ─── Inline error banner ─────────────────────────────
+// ─── Inline error banner (flush strip under the header) ─
.lv-error {
display: flex;
align-items: center;
gap: $space-2;
- padding: $space-2 $space-3;
+ padding: $space-2 $space-4;
background: $danger-bg;
- border: 1px solid $danger-border;
- border-radius: $radius-md;
+ border-bottom: 1px solid $danger-border;
color: $danger;
font-size: $font-size-sm;
+ flex-shrink: 0;
> svg { flex-shrink: 0; }
> span { flex: 1; }
@@ -166,25 +191,29 @@ $lk-default: #71717a;
}
}
-// ─── Layout ──────────────────────────────────────────
+// ─── Layout: target rail | viewer ─────────────────────
.lv-layout {
display: grid;
- grid-template-columns: 300px 1fr;
- gap: $space-3;
+ grid-template-columns: 280px 1fr;
+ gap: 0;
flex: 1;
min-height: 0;
@media (max-width: $breakpoint-lg) {
grid-template-columns: 1fr;
grid-template-rows: 240px 1fr;
+
+ .lv-sidebar {
+ border-right: none;
+ border-bottom: 1px solid var(--border-soft);
+ }
}
}
-// ─── Sidebar (file list) ─────────────────────────────
+// ─── Rail (file / unit list) ──────────────────────────
.lv-sidebar {
- background: $bg-card;
- border: 1px solid $border-default;
- border-radius: $radius-lg;
+ background: $bg-sidebar;
+ border-right: 1px solid var(--border-soft);
display: flex;
flex-direction: column;
overflow: hidden;
@@ -196,8 +225,8 @@ $lk-default: #71717a;
align-items: center;
gap: $space-2;
padding: $space-2;
- background: $bg-elevated;
- border-bottom: 1px solid $border-default;
+ border-bottom: 1px solid var(--border-soft);
+ flex-shrink: 0;
}
.lv-search {
@@ -209,25 +238,25 @@ $lk-default: #71717a;
.lv-search-icon {
position: absolute;
left: $space-2;
- color: $text-tertiary;
+ color: var(--text-faint);
pointer-events: none;
}
input {
width: 100%;
- background: $bg-tertiary;
- border: 1px solid transparent;
- border-radius: $radius-sm;
+ background: var(--surface-2);
+ border: 1px solid var(--border);
+ border-radius: 8px;
padding: 6px 8px 6px 28px;
- font-size: $font-size-sm;
+ font-size: $font-size-sm + 0.5;
color: $text-primary;
@include transition(all);
- &::placeholder { color: $text-tertiary; }
+ &::placeholder { color: var(--text-faint); }
&:focus {
outline: none;
- border-color: $accent-primary;
- background: $bg-body;
+ border-color: var(--accent-dim);
+ background: var(--surface);
}
}
}
@@ -239,7 +268,7 @@ $lk-default: #71717a;
scrollbar-width: thin;
&::-webkit-scrollbar { width: 4px; }
- &::-webkit-scrollbar-thumb { background: $border-default; border-radius: $radius-sm; }
+ &::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: $radius-sm; }
}
.lv-empty-hint {
@@ -249,14 +278,14 @@ $lk-default: #71717a;
justify-content: center;
gap: $space-2;
padding: $space-6 $space-3;
- color: $text-tertiary;
+ color: var(--text-faint);
text-align: center;
svg { opacity: 0.6; }
p { margin: 0; font-size: $font-size-sm; }
}
-// ─── Group section ───────────────────────────────────
+// ─── Rail group (mono eyebrow header) ─────────────────
.lv-group {
display: flex;
flex-direction: column;
@@ -267,33 +296,35 @@ $lk-default: #71717a;
display: flex;
align-items: center;
gap: $space-1;
- padding: 4px 6px;
+ padding: 9px 6px 4px;
background: transparent;
border: none;
- color: $text-secondary;
- font-size: $font-size-xs;
+ color: var(--text-ghost);
+ font-family: var(--mono);
+ font-size: 10px;
font-weight: $font-weight-semibold;
text-transform: uppercase;
- letter-spacing: 0.04em;
+ letter-spacing: 0.1em;
cursor: pointer;
border-radius: $radius-sm;
- @include transition(background);
+ @include transition(color);
- &:hover { background: $bg-hover; color: $text-primary; }
+ &:hover { background: transparent; color: var(--text-faint); }
- > svg:first-of-type { color: $text-tertiary; }
- .lv-group-icon { color: $accent-primary; margin-right: 2px; }
+ > svg:first-of-type { color: inherit; }
+ .lv-group-icon { color: inherit; margin-right: 2px; }
> span { flex: 1; text-align: left; }
}
.lv-group-count {
- background: $bg-tertiary;
- color: $text-tertiary;
- border-radius: $radius-full;
- padding: 1px 6px;
- font-size: 9px;
+ font-family: var(--mono);
+ background: transparent;
+ color: var(--text-ghost);
+ padding: 0 2px;
+ font-size: 10px;
font-weight: $font-weight-semibold;
line-height: 14px;
+ letter-spacing: 0;
text-transform: none;
}
@@ -304,7 +335,7 @@ $lk-default: #71717a;
padding: 2px 0 $space-2;
}
-// ─── File row ────────────────────────────────────────
+// ─── Target row (demo con-target look) ────────────────
.lv-file {
display: grid;
grid-template-columns: 8px 1fr auto;
@@ -314,33 +345,29 @@ $lk-default: #71717a;
'dot name time';
align-items: center;
gap: 2px $space-2;
- padding: 6px 8px;
+ padding: 6px 9px;
background: transparent;
- border: 1px solid transparent;
- border-radius: $radius-md;
- color: $text-primary;
- font-size: $font-size-sm;
+ border: none;
+ border-radius: 8px;
+ color: var(--text-dim);
+ font-size: 13px;
text-align: left;
cursor: pointer;
- @include transition(all);
+ @include transition(background);
- &:hover {
- background: $bg-hover;
- border-color: $border-active;
- }
+ &:hover { background: var(--surface-2); }
&.active {
- background: $accent-glow;
- border-color: fade($accent-primary-raw, 40%);
+ background: var(--accent-bg);
- .lv-file-name { color: $accent-primary; }
+ .lv-file-name { color: var(--text); font-weight: $font-weight-medium; }
}
}
.lv-file-dot {
grid-area: dot;
- width: 8px;
- height: 8px;
+ width: 7px;
+ height: 7px;
border-radius: 50%;
background: $lk-default;
@@ -357,54 +384,56 @@ $lk-default: #71717a;
.lv-file-name {
grid-area: name;
- font-weight: $font-weight-medium;
@include truncate();
}
.lv-file-size {
grid-area: size;
- font-family: $font-mono;
- font-size: $font-size-xs;
- color: $text-tertiary;
+ font-family: var(--mono);
+ font-size: 10.5px;
+ color: var(--text-ghost);
}
.lv-file-time {
grid-area: time;
+ font-family: var(--mono);
font-size: 10px;
- color: $text-tertiary;
+ color: var(--text-ghost);
}
-// ─── Viewer pane ─────────────────────────────────────
+// ─── Viewer pane ──────────────────────────────────────
.lv-viewer {
- background: $bg-card;
- border: 1px solid $border-default;
- border-radius: $radius-lg;
+ background: var(--surface);
display: flex;
flex-direction: column;
overflow: hidden;
min-height: 0;
}
+// Session header (demo con-head): kind dot + mono path
.lv-viewer-path {
display: flex;
align-items: center;
gap: $space-2;
- padding: $space-2 $space-3;
- background: $bg-elevated;
- border-bottom: 1px solid $border-default;
+ padding: $space-2 $space-4;
+ background: var(--surface);
+ border-bottom: 1px solid var(--border-soft);
+ flex-shrink: 0;
code {
- font-family: $font-mono;
- font-size: $font-size-xs;
- color: $text-secondary;
+ font-family: var(--mono);
+ font-size: $font-size-sm;
+ color: var(--text-dim);
background: transparent;
padding: 0;
+ min-width: 0;
+ @include truncate();
}
}
.lv-viewer-path-dot {
- width: 8px;
- height: 8px;
+ width: 7px;
+ height: 7px;
border-radius: 50%;
background: $lk-default;
flex-shrink: 0;
@@ -420,16 +449,17 @@ $lk-default: #71717a;
&.kind-mail { background: $lk-mail; }
}
-// ─── Toolbar ─────────────────────────────────────────
+// ─── Toolbar ──────────────────────────────────────────
.lv-toolbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: $space-3;
padding: $space-2 $space-3;
- border-bottom: 1px solid $border-default;
- background: $bg-card;
+ border-bottom: 1px solid var(--border-soft);
+ background: var(--surface);
flex-wrap: wrap;
+ flex-shrink: 0;
}
.lv-toolbar-left,
@@ -444,21 +474,21 @@ $lk-default: #71717a;
position: relative;
display: flex;
align-items: center;
- background: $bg-tertiary;
- border: 1px solid transparent;
- border-radius: $radius-md;
+ background: var(--surface-2);
+ border: 1px solid var(--border);
+ border-radius: 8px;
min-width: 220px;
@include transition(all);
&:focus-within {
- border-color: $accent-primary;
- background: $bg-body;
+ border-color: var(--accent-dim);
+ background: var(--surface);
}
.lv-search-field-icon {
position: absolute;
left: $space-3;
- color: $text-tertiary;
+ color: var(--text-faint);
pointer-events: none;
}
@@ -466,11 +496,11 @@ $lk-default: #71717a;
background: transparent;
border: none;
padding: 6px $space-3 6px 30px;
- font-size: $font-size-sm;
+ font-size: $font-size-sm + 0.5;
color: $text-primary;
width: 100%;
- &::placeholder { color: $text-tertiary; }
+ &::placeholder { color: var(--text-faint); }
&:focus { outline: none; }
}
@@ -480,28 +510,28 @@ $lk-default: #71717a;
background: transparent;
border: none;
padding: 4px;
- color: $text-tertiary;
+ color: var(--text-faint);
cursor: pointer;
border-radius: $radius-sm;
display: flex;
align-items: center;
- &:hover { background: $bg-hover; color: $text-primary; }
+ &:hover { background: var(--surface-3); color: var(--text); }
}
}
.lv-select {
- background: $bg-tertiary;
- border: 1px solid transparent;
- border-radius: $radius-md;
- padding: 6px $space-3;
- font-size: $font-size-sm;
+ background: var(--surface-2);
+ border: 1px solid var(--border);
+ border-radius: 8px;
+ padding: 6px $space-2;
+ font-size: $font-size-sm + 0.5;
color: $text-primary;
cursor: pointer;
@include transition(all);
&:focus, &:hover {
- border-color: $border-hover;
+ border-color: var(--border-strong);
outline: none;
}
}
@@ -510,8 +540,8 @@ $lk-default: #71717a;
background: transparent;
border: none;
padding: 6px;
- border-radius: $radius-md;
- color: $text-secondary;
+ border-radius: 8px;
+ color: var(--text-dim);
cursor: pointer;
display: flex;
align-items: center;
@@ -519,14 +549,14 @@ $lk-default: #71717a;
@include transition(all);
&:hover:not(:disabled) {
- background: $bg-hover;
- color: $text-primary;
+ background: var(--surface-2);
+ color: var(--text);
}
&:disabled { opacity: 0.4; cursor: not-allowed; }
&.active {
- background: $accent-glow;
- color: $accent-primary;
+ background: var(--accent-bg);
+ color: var(--accent-bright);
}
&.danger:hover:not(:disabled) {
@@ -539,22 +569,22 @@ $lk-default: #71717a;
display: inline-flex;
align-items: center;
gap: $space-2;
- padding: 5px 10px;
- background: $bg-tertiary;
- border: 1px solid transparent;
- border-radius: $radius-md;
- color: $text-secondary;
- font-size: $font-size-sm;
+ padding: 5px 11px;
+ background: var(--surface-2);
+ border: 1px solid var(--border);
+ border-radius: 8px;
+ color: var(--text-dim);
+ font-size: $font-size-sm + 0.5;
font-weight: $font-weight-medium;
cursor: pointer;
@include transition(all);
- &:hover:not(:disabled) { background: $bg-hover; color: $text-primary; }
+ &:hover:not(:disabled) { color: var(--text); border-color: var(--border-strong); }
&:disabled { opacity: 0.5; cursor: not-allowed; }
&.active {
- background: $accent-glow;
- border-color: fade($accent-primary-raw, 30%);
- color: $accent-primary;
+ background: var(--accent-bg);
+ border-color: var(--accent-dim);
+ color: var(--accent-bright);
}
}
@@ -562,10 +592,10 @@ $lk-default: #71717a;
width: 8px;
height: 8px;
border-radius: 50%;
- background: $text-tertiary;
+ background: var(--text-faint);
&.on {
- background: $success;
+ background: var(--green);
box-shadow: 0 0 0 0 fade($success, 60%);
animation: lv-pulse 1.6s ease-out infinite;
}
@@ -577,20 +607,20 @@ $lk-default: #71717a;
100% { box-shadow: 0 0 0 0 fade($success, 0%); }
}
-// ─── Content (lines) ─────────────────────────────────
+// ─── Content (the log well) ───────────────────────────
.lv-content {
flex: 1;
overflow: auto;
- background: $bg-body;
- font-family: $font-mono;
+ background: var(--bg-code);
+ font-family: var(--mono);
font-size: $font-size-sm;
- line-height: 1.55;
+ line-height: 1.65;
min-height: 0;
scrollbar-width: thin;
&::-webkit-scrollbar { width: 8px; height: 8px; }
- &::-webkit-scrollbar-thumb { background: $border-default; border-radius: $radius-sm; }
- &::-webkit-scrollbar-thumb:hover { background: $border-hover; }
+ &::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: $radius-sm; }
+ &::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
&.wrap {
.lv-line-text { white-space: pre-wrap; word-break: break-word; }
@@ -605,7 +635,7 @@ $lk-default: #71717a;
display: flex;
align-items: center;
justify-content: center;
- color: $text-tertiary;
+ color: var(--text-faint);
text-align: center;
padding: $space-8;
@@ -619,8 +649,8 @@ $lk-default: #71717a;
.lv-line {
display: flex;
align-items: flex-start;
- padding: 0 $space-3;
- color: $text-primary;
+ padding: 0 $space-4;
+ color: var(--text-code);
@include transition(background);
&:hover { background: fade($accent-primary-raw, 4%); }
@@ -638,13 +668,12 @@ $lk-default: #71717a;
.lv-line-no {
flex-shrink: 0;
- width: 56px;
+ width: 52px;
padding-right: $space-3;
text-align: right;
- color: $text-tertiary;
- opacity: 0.6;
+ color: var(--text-ghost);
user-select: none;
- font-size: $font-size-xs;
+ font-size: 11px;
line-height: inherit;
}
@@ -662,14 +691,17 @@ $lk-default: #71717a;
}
// ============================================
-// PROCESSES TAB (proc-*)
+// PROCESSES TAB (proc-*) — flush console frame
// ============================================
.proc-page {
display: flex;
flex-direction: column;
- gap: $space-3;
height: calc(100vh - 220px);
min-height: 540px;
+ background: var(--surface);
+ border: 1px solid var(--border);
+ border-radius: var(--radius-lg);
+ overflow: hidden;
}
.proc-toolbar {
@@ -677,19 +709,54 @@ $lk-default: #71717a;
justify-content: space-between;
align-items: center;
gap: $space-3;
- padding: $space-2 $space-3;
- background: $bg-card;
- border: 1px solid $border-default;
- border-radius: $radius-lg;
+ padding: $space-2 $space-4;
+ background: var(--surface);
+ border-bottom: 1px solid var(--border-soft);
flex-wrap: wrap;
+ flex-shrink: 0;
}
.proc-filter-chips {
display: flex;
- gap: $space-2;
+ gap: 7px;
flex-wrap: wrap;
}
+// Page-owned status chips (demo cat-chip look). Terminal must not lean on
+// other pages' .filter-chip styles.
+.proc-chip {
+ display: inline-flex;
+ align-items: center;
+ gap: 7px;
+ padding: 5px 12px;
+ background: var(--surface-2);
+ border: 1px solid var(--border);
+ border-radius: 8px;
+ color: var(--text-faint);
+ font-size: $font-size-sm + 0.5;
+ font-weight: $font-weight-medium;
+ cursor: pointer;
+ @include transition(all);
+
+ &:hover:not(:disabled) {
+ color: $text-primary;
+ border-color: var(--border-strong);
+ }
+ &:disabled { opacity: 0.45; cursor: not-allowed; }
+
+ &.active {
+ background: var(--accent-bg);
+ border-color: var(--accent-dim);
+ color: var(--accent-bright);
+ }
+}
+
+.proc-chip-count {
+ font-family: var(--mono);
+ font-size: 10.5px;
+ opacity: 0.75;
+}
+
.proc-toolbar-right {
display: flex;
align-items: center;
@@ -700,20 +767,24 @@ $lk-default: #71717a;
.proc-layout {
display: grid;
grid-template-columns: 220px 1fr;
- gap: $space-3;
+ gap: 0;
flex: 1;
min-height: 0;
@media (max-width: $breakpoint-lg) {
grid-template-columns: 1fr;
grid-template-rows: 200px 1fr;
+
+ .proc-sidebar {
+ border-right: none;
+ border-bottom: 1px solid var(--border-soft);
+ }
}
}
.proc-sidebar {
- background: $bg-card;
- border: 1px solid $border-default;
- border-radius: $radius-lg;
+ background: $bg-sidebar;
+ border-right: 1px solid var(--border-soft);
display: flex;
flex-direction: column;
overflow: hidden;
@@ -721,9 +792,7 @@ $lk-default: #71717a;
}
.proc-main {
- background: $bg-card;
- border: 1px solid $border-default;
- border-radius: $radius-lg;
+ background: var(--surface);
overflow: hidden;
display: flex;
flex-direction: column;
@@ -736,50 +805,60 @@ $lk-default: #71717a;
scrollbar-width: thin;
&::-webkit-scrollbar { width: 8px; height: 8px; }
- &::-webkit-scrollbar-thumb { background: $border-default; border-radius: $radius-sm; }
+ &::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: $radius-sm; }
}
+// Dense table per the .sk-dtable spec (kept page-local for the sticky
+// sortable header + inline gauges).
.proc-table {
width: 100%;
border-collapse: collapse;
- font-size: $font-size-sm;
+ font-size: 13px;
thead th {
position: sticky;
top: 0;
- background: $bg-elevated;
+ background: var(--surface);
text-align: left;
- padding: $space-2 $space-3;
- font-size: $font-size-xs;
+ padding: 10px $space-4;
+ font-family: var(--mono);
+ font-size: 10.5px;
font-weight: $font-weight-semibold;
text-transform: uppercase;
- letter-spacing: 0.04em;
- color: $text-tertiary;
+ letter-spacing: 0.06em;
+ color: var(--text-faint);
cursor: pointer;
@include transition(color);
z-index: 1;
- border-bottom: 1px solid $border-default;
+ border-bottom: 1px solid var(--border);
user-select: none;
- &:hover { color: $text-secondary; }
- &.active { color: $accent-primary; }
+ &:hover { color: var(--text-dim); }
+ &.active { color: var(--accent-bright); }
}
tbody tr {
- border-bottom: 1px solid $border-subtle;
+ border-bottom: 1px solid var(--border-soft);
cursor: pointer;
@include transition(background);
- &:hover { background: $bg-hover; }
- &.selected { background: $accent-glow; }
+ &:hover { background: var(--surface-2); }
+ &.selected {
+ background: var(--accent-bg-soft);
+ &:hover { background: var(--accent-bg); }
+ }
}
td {
- padding: $space-2 $space-3;
+ padding: 9px $space-4;
vertical-align: middle;
}
- .mono { font-family: $font-mono; font-size: $font-size-xs; }
+ .mono {
+ font-family: var(--mono);
+ font-size: $font-size-sm;
+ color: var(--text-dim);
+ }
}
.proc-name-cell {
@@ -796,9 +875,9 @@ $lk-default: #71717a;
}
.proc-cmd {
- font-family: $font-mono;
- font-size: 10px;
- color: $text-tertiary;
+ font-family: var(--mono);
+ font-size: 10.5px;
+ color: var(--text-ghost);
@include truncate();
}
@@ -806,7 +885,8 @@ $lk-default: #71717a;
display: inline-flex;
align-items: center;
gap: 6px;
- color: $text-secondary;
+ color: var(--text-dim);
+ font-size: $font-size-sm + 0.5;
}
.proc-user-dot {
@@ -823,56 +903,27 @@ $lk-default: #71717a;
}
.proc-bar-value {
- font-family: $font-mono;
- font-size: $font-size-xs;
- color: $text-secondary;
+ font-family: var(--mono);
+ font-size: 11.5px;
+ color: var(--text-dim);
}
.proc-bar {
- height: 3px;
- background: $border-default;
- border-radius: $radius-sm;
+ height: 4px;
+ background: var(--surface-3);
+ border-radius: 3px;
overflow: hidden;
}
.proc-bar-fill {
height: 100%;
+ border-radius: 3px;
@include transition(width);
- &.cpu { background: $accent-primary; }
- &.mem { background: #a855f7; }
-}
-
-.proc-status {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- padding: 2px 8px;
- border-radius: $radius-full;
- font-size: $font-size-xs;
- font-weight: $font-weight-medium;
- background: $bg-tertiary;
- color: $text-secondary;
-}
-
-.proc-status-dot {
- width: 6px;
- height: 6px;
- border-radius: 50%;
- background: $text-tertiary;
+ &.cpu { background: var(--accent-bright); }
+ &.mem { background: var(--cyan); }
}
-.proc-status.status-running { background: fade($success, 12%); color: $success;
- .proc-status-dot { background: $success; } }
-.proc-status.status-sleeping { background: fade($info, 10%); color: $info;
- .proc-status-dot { background: $info; } }
-.proc-status.status-stopped { background: fade($danger, 10%); color: $danger;
- .proc-status-dot { background: $danger; } }
-.proc-status.status-zombie { background: fade($warning, 12%); color: $warning;
- .proc-status-dot { background: $warning; } }
-.proc-status.status-disk-sleep { background: fade($warning, 10%); color: $warning;
- .proc-status-dot { background: $warning; } }
-
.proc-actions {
display: flex;
gap: 2px;
@@ -880,11 +931,11 @@ $lk-default: #71717a;
}
.proc-command {
- font-family: $font-mono;
- font-size: $font-size-xs;
- color: $text-secondary;
- background: $bg-body;
- border: 1px solid $border-default;
+ font-family: var(--mono);
+ font-size: $font-size-sm;
+ color: var(--text-code);
+ background: var(--bg-code);
+ border: 1px solid var(--border-soft);
padding: $space-3;
border-radius: $radius-md;
margin: 0;
@@ -900,6 +951,12 @@ $lk-default: #71717a;
display: flex;
flex-direction: column;
gap: $space-3;
+
+ // Standalone header strip (not inside a console frame on this tab)
+ > .lv-header {
+ border: 1px solid var(--border);
+ border-radius: var(--radius-lg);
+ }
}
.svc-toolbar {
@@ -908,9 +965,9 @@ $lk-default: #71717a;
align-items: center;
gap: $space-3;
padding: $space-2 $space-3;
- background: $bg-card;
- border: 1px solid $border-default;
- border-radius: $radius-lg;
+ background: var(--surface);
+ border: 1px solid var(--border);
+ border-radius: var(--radius-lg);
flex-wrap: wrap;
}
@@ -922,9 +979,9 @@ $lk-default: #71717a;
.svc-card {
position: relative;
- background: $bg-card;
- border: 1px solid $border-default;
- border-radius: $radius-lg;
+ background: var(--surface);
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius);
padding: $space-4;
display: flex;
flex-direction: column;
@@ -938,23 +995,23 @@ $lk-default: #71717a;
position: absolute;
left: 0; top: 0; bottom: 0;
width: 3px;
- background: $border-default;
+ background: var(--border);
@include transition(background);
}
- &.status-running::before { background: $success; }
- &.status-failed::before { background: $danger; }
- &.status-stopped::before { background: $text-tertiary; }
- &.status-other::before { background: $warning; }
+ &.status-running::before { background: var(--green); }
+ &.status-failed::before { background: var(--red); }
+ &.status-stopped::before { background: var(--text-ghost); }
+ &.status-other::before { background: var(--amber); }
&:hover {
- border-color: $border-hover;
+ border-color: var(--border-strong);
transform: translateY(-1px);
- box-shadow: $shadow-md;
+ box-shadow: var(--shadow-md);
}
&.status-failed {
- background: linear-gradient(135deg, fade($danger, 4%), $bg-card 60%);
+ background: linear-gradient(135deg, fade($danger, 5%), var(--surface) 60%);
}
}
@@ -973,11 +1030,11 @@ $lk-default: #71717a;
h4 {
margin: 0;
- font-size: $font-size-sm;
+ font-size: 13px;
font-weight: $font-weight-semibold;
color: $text-primary;
@include truncate();
- font-family: $font-mono;
+ font-family: var(--mono);
}
}
@@ -986,37 +1043,19 @@ $lk-default: #71717a;
width: 8px;
height: 8px;
border-radius: 50%;
- background: $text-tertiary;
+ background: var(--text-ghost);
flex-shrink: 0;
- &.status-running { background: $success; box-shadow: 0 0 0 3px fade($success, 18%); }
- &.status-failed { background: $danger; box-shadow: 0 0 0 3px fade($danger, 18%); }
- &.status-stopped { background: $text-tertiary; }
- &.status-other { background: $warning; }
-}
-
-.svc-status-pill {
- display: inline-flex;
- align-items: center;
- padding: 2px 8px;
- border-radius: $radius-full;
- font-size: 10px;
- font-weight: $font-weight-semibold;
- text-transform: uppercase;
- letter-spacing: 0.04em;
- background: $bg-tertiary;
- color: $text-tertiary;
-
- &.status-running { background: fade($success, 14%); color: $success; }
- &.status-failed { background: fade($danger, 14%); color: $danger; }
- &.status-stopped { background: $bg-tertiary; color: $text-tertiary; }
- &.status-other { background: fade($warning, 12%); color: $warning; }
+ &.status-running { background: var(--green); box-shadow: 0 0 0 3px fade($success, 18%); }
+ &.status-failed { background: var(--red); box-shadow: 0 0 0 3px fade($danger, 18%); }
+ &.status-stopped { background: var(--text-ghost); }
+ &.status-other { background: var(--amber); }
}
.svc-card-desc {
margin: 0;
- font-size: $font-size-xs;
- color: $text-secondary;
+ font-size: $font-size-sm;
+ color: var(--text-dim);
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 2;
@@ -1027,18 +1066,18 @@ $lk-default: #71717a;
.svc-card-meta {
display: flex;
gap: $space-4;
- font-size: $font-size-xs;
- color: $text-tertiary;
- font-family: $font-mono;
+ font-size: 11.5px;
+ color: var(--text-faint);
+ font-family: var(--mono);
}
.svc-meta-label {
- color: $text-tertiary;
+ color: var(--text-ghost);
font-weight: $font-weight-semibold;
text-transform: uppercase;
- letter-spacing: 0.04em;
+ letter-spacing: 0.06em;
margin-right: 2px;
- font-size: 9px;
+ font-size: 9.5px;
}
.svc-card-actions {
@@ -1046,7 +1085,7 @@ $lk-default: #71717a;
gap: $space-1;
margin-top: auto;
padding-top: $space-3;
- border-top: 1px solid $border-subtle;
+ border-top: 1px solid var(--border-soft);
flex-wrap: wrap;
}
@@ -1055,18 +1094,18 @@ $lk-default: #71717a;
align-items: center;
gap: 4px;
padding: 5px 10px;
- background: $bg-elevated;
- border: 1px solid $border-default;
- border-radius: $radius-sm;
+ background: var(--surface-2);
+ border: 1px solid var(--border);
+ border-radius: var(--radius-sm);
color: $text-primary;
- font-size: $font-size-xs;
+ font-size: $font-size-sm;
font-weight: $font-weight-medium;
cursor: pointer;
@include transition(all);
&:hover:not(:disabled) {
- background: $bg-hover;
- border-color: $border-hover;
+ background: var(--surface-3);
+ border-color: var(--border-strong);
}
&:disabled { opacity: 0.5; cursor: not-allowed; }
@@ -1085,13 +1124,15 @@ $lk-default: #71717a;
&.ghost {
background: transparent;
border-color: transparent;
- color: $text-secondary;
- &:hover:not(:disabled) { background: $bg-hover; color: $text-primary; }
+ color: var(--text-dim);
+ &:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
}
}
// ============================================
-// JOURNAL TAB
+// LEGACY (pre-redesign) — still consumed by components/JournalControls.jsx,
+// components/ProcessTable.jsx, components/ServiceCard.jsx and StyleGuide.jsx.
+// Not rendered by pages/Terminal.jsx anymore; keep until those move.
// ============================================
.journal-container {
@@ -1205,10 +1246,6 @@ $lk-default: #71717a;
}
}
-// ============================================
-// PROCESSES TAB
-// ============================================
-
.processes-container {
display: flex;
flex-direction: column;
@@ -1434,10 +1471,6 @@ $lk-default: #71717a;
}
}
-// ============================================
-// SERVICES TAB
-// ============================================
-
.services-container {
display: flex;
flex-direction: column;