145 lines
4.1 KiB
CSS
145 lines
4.1 KiB
CSS
/* Processes page — sovereign://processes
|
|
* Imports the shared sovereign:// base theme, then adds processes-specific
|
|
* layout for the process/tab tables, heat bars, and drill-down panel. */
|
|
@import url("sovereign://sovereign-base.css");
|
|
|
|
.note { font-size: 12px; font-weight: normal; }
|
|
code { font-family: var(--font); background: var(--border); padding: 1px 4px; border-radius: 3px; }
|
|
.url-sub { font-size: 11px; }
|
|
.dim { color: var(--muted); }
|
|
|
|
/* Tab navigation (shared with fips.css pattern). */
|
|
.tabs {
|
|
display: flex; gap: 4px;
|
|
border-bottom: 1px solid var(--border);
|
|
margin-bottom: 16px;
|
|
}
|
|
.tab-btn {
|
|
background: var(--bg); color: var(--muted);
|
|
border: 1px solid transparent; border-bottom: none;
|
|
border-radius: var(--radius) var(--radius) 0 0;
|
|
padding: 6px 16px; cursor: pointer;
|
|
font-family: var(--font); font-size: 13px; font-weight: bold;
|
|
margin-left: 0; min-width: auto;
|
|
transition: color 0.2s, border-color 0.2s;
|
|
}
|
|
.tab-btn:hover { color: var(--primary); }
|
|
.tab-btn.active {
|
|
color: var(--primary);
|
|
border-color: var(--border);
|
|
border-bottom: 1px solid var(--bg);
|
|
margin-bottom: -1px;
|
|
}
|
|
.tab-panel { display: none; }
|
|
.tab-panel.active { display: block; }
|
|
|
|
#refresh-btn { margin-left: 12px; }
|
|
|
|
/* Process + tab tables. */
|
|
#proc-table, #tabs-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 10px 0;
|
|
}
|
|
#proc-table th, #proc-table td,
|
|
#tabs-table th, #tabs-table td {
|
|
text-align: left;
|
|
padding: 6px 10px;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 13px;
|
|
white-space: nowrap;
|
|
}
|
|
#proc-table th, #tabs-table th {
|
|
color: var(--muted);
|
|
font-weight: bold;
|
|
border-bottom: 2px solid var(--primary);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
#proc-table th:hover, #tabs-table th:hover { color: var(--primary); }
|
|
#proc-table th.sorted-asc::after { content: " ▲"; color: var(--primary); }
|
|
#proc-table th.sorted-desc::after { content: " ▼"; color: var(--primary); }
|
|
#tabs-table th.sorted-asc::after { content: " ▲"; color: var(--primary); }
|
|
#tabs-table th.sorted-desc::after { content: " ▼"; color: var(--primary); }
|
|
|
|
#proc-table td.title-cell,
|
|
#tabs-table td.title-cell {
|
|
max-width: 320px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
#proc-table td.url-cell,
|
|
#tabs-table td.url-cell {
|
|
max-width: 420px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* CPU values: plain text, no shaded background. Red only for >= 90%,
|
|
* otherwise the default foreground color. */
|
|
.heat {
|
|
font-weight: bold;
|
|
color: var(--fg);
|
|
}
|
|
.heat.hot { color: var(--accent); }
|
|
|
|
/* Renderer row: clickable to expand hosted tabs. */
|
|
.renderer-row { cursor: pointer; }
|
|
.renderer-row:hover { background: var(--border); }
|
|
.hosted-tabs-row td { padding-left: 24px; color: var(--muted); }
|
|
.hosted-tabs-row .ht-entry { display: block; padding: 2px 0; }
|
|
.hosted-tabs-row .ht-idx { color: var(--primary); font-weight: bold; margin-right: 6px; }
|
|
|
|
/* Drill-down panel. */
|
|
#drilldown {
|
|
margin-top: 24px;
|
|
border-top: 2px solid var(--primary);
|
|
padding-top: 12px;
|
|
}
|
|
#drilldown h2 { margin-bottom: 8px; }
|
|
#drilldown h3 { margin: 16px 0 6px; color: var(--muted); font-size: 14px; }
|
|
|
|
.sub-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 6px 0 12px;
|
|
}
|
|
.sub-table th, .sub-table td {
|
|
text-align: left;
|
|
padding: 4px 10px;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 12px;
|
|
}
|
|
.sub-table th { color: var(--muted); font-weight: bold; }
|
|
.sub-table td.mono { font-family: var(--font); word-break: break-all; }
|
|
|
|
/* Long-task timeline: a horizontal bar of vertical lines, one per
|
|
* long task, height scaled by duration. */
|
|
.timeline {
|
|
height: 80px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 4px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
background: var(--bg);
|
|
}
|
|
.timeline .tl-bar {
|
|
display: inline-block;
|
|
width: 2px;
|
|
margin-right: 1px;
|
|
background: var(--accent);
|
|
vertical-align: bottom;
|
|
}
|
|
.timeline .tl-empty {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
padding: 4px 8px;
|
|
}
|
|
|
|
.actions { margin-top: 16px; }
|
|
.actions .btn { margin-right: 8px; }
|
|
|
|
.empty { color: var(--muted); font-style: italic; }
|
|
.mono { font-family: var(--font); word-break: break-all; }
|