Updated the architecture documentation to document the app CPU metric in the system stats section. Fusion-Task-Id: FN-3211
320 lines
6.5 KiB
CSS
320 lines
6.5 KiB
CSS
.system-stats-modal {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
max-height: min(80vh, 56rem);
|
|
}
|
|
|
|
.system-stats-modal__header {
|
|
align-items: center;
|
|
}
|
|
|
|
.system-stats-modal__title {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.system-stats-modal__header-actions {
|
|
display: inline-flex;
|
|
gap: var(--space-sm);
|
|
align-items: center;
|
|
}
|
|
|
|
.system-stats-modal__auto-refresh {
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
color: var(--text-dim);
|
|
font-size: 0.8rem;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.system-stats-modal__auto-refresh-time {
|
|
color: var(--text-muted);
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
.system-stats-modal__header-actions .btn-icon {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.system-stats-modal__header-actions .btn-icon svg {
|
|
display: block;
|
|
width: var(--btn-icon-size);
|
|
height: var(--btn-icon-size);
|
|
}
|
|
|
|
.system-stats-modal__refresh--spinning {
|
|
animation: system-stats-modal-refresh-spin var(--transition-slow) linear infinite;
|
|
}
|
|
|
|
@keyframes system-stats-modal-refresh-spin {
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.system-stats-modal__state {
|
|
margin: 0 var(--space-xl);
|
|
padding: var(--space-md);
|
|
border: var(--btn-border-width) solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-muted);
|
|
background: var(--surface);
|
|
}
|
|
|
|
.system-stats-modal__state--error,
|
|
.system-stats-modal__footer-error {
|
|
color: var(--color-error);
|
|
background: var(--status-error-bg);
|
|
border-color: var(--color-error);
|
|
}
|
|
|
|
.system-stats-modal__content {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: var(--space-md);
|
|
overflow-y: auto;
|
|
padding: 0 var(--space-xl) var(--space-xl);
|
|
}
|
|
|
|
.system-stats-modal__section {
|
|
border: var(--btn-border-width) solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
background: var(--surface);
|
|
padding: var(--space-md);
|
|
}
|
|
|
|
.system-stats-modal__section-title {
|
|
margin: 0 0 var(--space-md);
|
|
font-size: 0.85rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.system-stats-modal__grid {
|
|
margin: 0;
|
|
display: grid;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.system-stats-modal__row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.system-stats-modal__row--memory-used,
|
|
.system-stats-modal__row--cpu-used {
|
|
align-items: stretch;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.system-stats-modal__row--memory-used dd,
|
|
.system-stats-modal__row--cpu-used dd {
|
|
width: 100%;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.system-stats-modal__memory-progress-wrapper {
|
|
width: 100%;
|
|
}
|
|
|
|
.system-stats-modal__memory-progress-track {
|
|
width: 100%;
|
|
height: var(--space-sm);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--border);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.system-stats-modal__memory-progress-track--warning {
|
|
box-shadow: inset 0 0 0 var(--btn-border-width) var(--color-warning);
|
|
}
|
|
|
|
.system-stats-modal__memory-progress-track--critical {
|
|
box-shadow: inset 0 0 0 var(--btn-border-width) var(--color-error);
|
|
}
|
|
|
|
.system-stats-modal__memory-progress-fill {
|
|
height: 100%;
|
|
border-radius: var(--radius-sm);
|
|
transition: width var(--transition-normal), background-color var(--transition-normal);
|
|
}
|
|
|
|
.system-stats-modal__memory-progress-fill--normal {
|
|
background: var(--color-success);
|
|
}
|
|
|
|
.system-stats-modal__memory-progress-fill--warning {
|
|
background: var(--color-warning);
|
|
}
|
|
|
|
.system-stats-modal__memory-progress-fill--critical {
|
|
background: var(--color-error);
|
|
}
|
|
|
|
.system-stats-modal__row dt {
|
|
margin: 0;
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.system-stats-modal__row dd {
|
|
margin: 0;
|
|
display: inline-flex;
|
|
gap: var(--space-sm);
|
|
align-items: baseline;
|
|
text-align: right;
|
|
}
|
|
|
|
.system-stats-modal__value {
|
|
color: var(--text);
|
|
}
|
|
|
|
.system-stats-modal__detail {
|
|
color: var(--text-dim);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.system-stats-modal__value--warning {
|
|
color: var(--color-warning);
|
|
}
|
|
|
|
.system-stats-modal__value--critical {
|
|
color: var(--color-error);
|
|
}
|
|
|
|
.system-stats-modal__footer-error {
|
|
margin: 0 var(--space-xl) var(--space-xl);
|
|
padding: var(--space-sm) var(--space-md);
|
|
border: var(--btn-border-width) solid var(--color-error);
|
|
border-radius: var(--radius-md);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.system-stats-modal__section-title--with-icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.system-stats-modal__vitest-controls {
|
|
display: grid;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.system-stats-modal__kill-row {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
}
|
|
|
|
.system-stats-modal__toggle-row,
|
|
.system-stats-modal__threshold-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-sm);
|
|
color: var(--text);
|
|
}
|
|
|
|
.system-stats-modal__threshold-controls {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.system-stats-modal__threshold-controls input[type="range"] {
|
|
accent-color: var(--todo);
|
|
}
|
|
|
|
.system-stats-modal__toggle-row input[type="checkbox"] {
|
|
accent-color: var(--todo);
|
|
}
|
|
|
|
.system-stats-modal__threshold-row .input {
|
|
width: 6ch;
|
|
min-width: 6ch;
|
|
}
|
|
|
|
.system-stats-modal__last-kill {
|
|
margin: 0;
|
|
color: var(--text-dim);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.system-stats-modal__kill-result {
|
|
margin: 0;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.system-stats-modal__kill-result--success {
|
|
color: var(--color-success);
|
|
}
|
|
|
|
.system-stats-modal__kill-result--error {
|
|
color: var(--color-error);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.system-stats-modal {
|
|
max-height: min(84vh, 60rem);
|
|
}
|
|
|
|
.system-stats-modal__content {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
padding: 0 var(--space-lg) var(--space-lg);
|
|
}
|
|
|
|
.system-stats-modal__state,
|
|
.system-stats-modal__footer-error {
|
|
margin-left: var(--space-lg);
|
|
margin-right: var(--space-lg);
|
|
}
|
|
|
|
.system-stats-modal__auto-refresh {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.system-stats-modal__header-actions .btn-icon {
|
|
width: calc(var(--space-md) * 3);
|
|
height: calc(var(--space-md) * 3);
|
|
min-width: calc(var(--space-md) * 3);
|
|
min-height: calc(var(--space-md) * 3);
|
|
padding: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.system-stats-modal__toggle-row,
|
|
.system-stats-modal__threshold-row {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.system-stats-modal__threshold-controls {
|
|
width: 100%;
|
|
}
|
|
|
|
.system-stats-modal__threshold-controls input[type="range"] {
|
|
flex: 1;
|
|
}
|
|
|
|
.system-stats-modal__threshold-row .input {
|
|
width: 7ch;
|
|
min-width: 7ch;
|
|
flex: 0 0 auto;
|
|
}
|
|
}
|