284 lines
5.2 KiB
CSS
284 lines
5.2 KiB
CSS
/* Right Panel — 240px system info + services */
|
|
.panel {
|
|
width: var(--panel-width);
|
|
min-width: var(--panel-width);
|
|
height: 100dvh;
|
|
background: var(--bg-panel);
|
|
border-left: 1px solid var(--border-structural);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.panel-section {
|
|
padding: 16px;
|
|
border-bottom: 1px solid var(--border-structural);
|
|
}
|
|
|
|
.panel-section:last-child {
|
|
border-bottom: none;
|
|
flex: 1;
|
|
}
|
|
|
|
.panel-section-title {
|
|
font-family: var(--font-mono);
|
|
font-size: 10px;
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
letter-spacing: 1.5px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
/* Info section */
|
|
.panel-hostname {
|
|
font-family: var(--font-mono);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.panel-datetime {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
}
|
|
|
|
.panel-date {
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.panel-time {
|
|
font-family: var(--font-mono);
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Network */
|
|
.panel-net-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 4px 0;
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.panel-net-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.panel-net-dot.up { background: var(--status-green); }
|
|
.panel-net-dot.down { background: var(--status-red); }
|
|
|
|
.panel-net-name {
|
|
color: var(--text-primary);
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.panel-net-ip {
|
|
color: var(--text-secondary);
|
|
font-size: 11px;
|
|
}
|
|
|
|
/* Stats */
|
|
.stat-row {
|
|
display: grid;
|
|
grid-template-columns: 40px 1fr;
|
|
grid-template-rows: auto auto;
|
|
gap: 2px 8px;
|
|
margin-bottom: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
.stat-label {
|
|
grid-row: 1 / 3;
|
|
font-family: var(--font-mono);
|
|
font-size: 10px;
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.stat-value {
|
|
font-family: var(--font-mono);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
text-align: right;
|
|
}
|
|
|
|
.stat-bar {
|
|
height: 4px;
|
|
background: var(--border-structural);
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.stat-bar-fill {
|
|
height: 100%;
|
|
border-radius: 2px;
|
|
background: var(--status-green);
|
|
transition: width var(--transition-base), background-color var(--transition-base);
|
|
width: 0%;
|
|
}
|
|
|
|
.stat-bar-fill.warn { background: var(--status-amber); }
|
|
.stat-bar-fill.crit { background: var(--status-red); }
|
|
|
|
/* Services */
|
|
.panel-service-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.panel-service-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-height: 44px;
|
|
padding: 6px 0;
|
|
}
|
|
|
|
.service-toggle {
|
|
position: relative;
|
|
width: 36px;
|
|
height: 20px;
|
|
background: var(--border-component);
|
|
border-radius: 10px;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.service-toggle.on {
|
|
background: var(--status-green);
|
|
}
|
|
|
|
.service-toggle::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 2px;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: #fff;
|
|
transition: transform var(--transition-fast);
|
|
}
|
|
|
|
.service-toggle.on::after {
|
|
transform: translateX(16px);
|
|
}
|
|
|
|
.service-name {
|
|
flex: 1;
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
color: var(--text-primary);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.service-open {
|
|
width: 28px;
|
|
height: 28px;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.service-open:hover {
|
|
background: var(--accent-hover);
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* Update status */
|
|
.panel-updates {
|
|
transition: all var(--transition-base);
|
|
}
|
|
|
|
.update-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.update-status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.update-status-dot.current {
|
|
background: var(--status-green);
|
|
}
|
|
|
|
.update-status-dot.available {
|
|
background: var(--status-amber);
|
|
}
|
|
|
|
.update-status-title {
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.update-status-hash {
|
|
font-family: var(--font-mono);
|
|
font-size: 10px;
|
|
color: var(--text-muted);
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.update-status-text {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.update-install-btn {
|
|
flex-shrink: 0;
|
|
height: 26px;
|
|
padding: 0 12px;
|
|
background: var(--accent);
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
color: #fff;
|
|
font-family: var(--font-ui);
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.update-install-btn:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.update-install-btn:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|