Files
wled-screen-controller-mixed/server/src/wled_controller/static/css/dashboard.css
2026-02-26 00:43:13 +03:00

331 lines
6.0 KiB
CSS

/* ── Dashboard ── */
.dashboard-section {
margin-bottom: 16px;
}
.dashboard-section-header {
font-size: 0.8rem;
font-weight: 600;
margin-bottom: 6px;
color: var(--text-secondary);
display: flex;
align-items: center;
gap: 6px;
text-transform: uppercase;
letter-spacing: 0.5px;
cursor: pointer;
user-select: none;
}
.dashboard-section-chevron {
font-size: 0.6rem;
color: var(--text-secondary);
width: 10px;
display: inline-block;
}
.dashboard-section-count {
background: var(--border-color);
color: var(--text-secondary);
border-radius: 10px;
padding: 0 6px;
font-size: 0.75rem;
font-weight: 600;
}
.dashboard-subsection {
margin-bottom: 10px;
padding-left: 16px;
}
.dashboard-subsection .dashboard-section-header {
font-size: 0.72rem;
}
.dashboard-stop-all {
margin-left: auto;
padding: 2px 8px;
font-size: 0.7rem;
white-space: nowrap;
flex: 0 0 auto;
}
.dashboard-poll-wrap {
margin-left: auto;
display: flex;
align-items: center;
gap: 3px;
}
.dashboard-poll-slider {
width: 48px;
height: 12px;
accent-color: var(--primary-color);
cursor: pointer;
}
.dashboard-poll-value {
font-size: 0.6rem;
color: var(--text-secondary);
min-width: 18px;
}
.dashboard-target {
display: grid;
grid-template-columns: 1fr auto auto;
align-items: center;
gap: 12px;
padding: 6px 12px;
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 6px;
margin-bottom: 4px;
}
.dashboard-target-info {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
overflow: hidden;
}
.dashboard-target-icon {
font-size: 1rem;
flex-shrink: 0;
}
.dashboard-target-name {
font-size: 0.85rem;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: flex;
align-items: center;
gap: 4px;
}
.dashboard-target-name .health-dot {
margin-right: 0;
flex-shrink: 0;
}
.dashboard-target-subtitle {
font-size: 0.7rem;
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.dashboard-target-metrics {
display: flex;
gap: 12px;
align-items: center;
}
.dashboard-metric {
text-align: center;
min-width: 48px;
}
.dashboard-metric-value {
font-size: 0.85rem;
font-weight: 700;
color: var(--primary-text-color);
line-height: 1.2;
}
.dashboard-metric-label {
font-size: 0.6rem;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.3px;
}
.dashboard-fps-metric {
display: flex;
align-items: center;
gap: 6px;
min-width: auto;
}
.dashboard-fps-sparkline {
position: relative;
width: 100px;
height: 36px;
}
.dashboard-fps-label {
display: flex;
flex-direction: column;
align-items: center;
min-width: 36px;
line-height: 1.1;
}
.dashboard-fps-target {
font-weight: 400;
opacity: 0.5;
font-size: 0.75rem;
}
.dashboard-fps-avg {
display: block;
font-size: 0.6rem;
font-weight: 400;
opacity: 0.45;
line-height: 1.1;
color: #4CAF50;
}
.dashboard-target-actions {
display: flex;
align-items: center;
gap: 4px;
}
.dashboard-autostart-btn {
background: none;
border: none;
color: var(--text-muted);
font-size: 0.8rem;
width: 24px;
height: 24px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
border-radius: 4px;
transition: color 0.2s, background 0.2s;
}
.dashboard-autostart-btn:hover {
color: var(--warning-color, #ffc107);
background: rgba(255, 193, 7, 0.1);
}
.dashboard-autostart-btn.active {
color: var(--warning-color, #ffc107);
}
.dashboard-status-dot {
font-size: 1rem;
line-height: 1;
}
.dashboard-status-dot.active {
color: var(--primary-color);
animation: pulse 2s infinite;
}
.dashboard-no-targets {
text-align: center;
padding: 32px 16px;
color: var(--text-secondary);
font-size: 0.9rem;
}
.dashboard-badge-stopped {
padding: 2px 8px;
border-radius: 10px;
font-size: 0.7rem;
font-weight: 600;
background: var(--border-color);
color: var(--text-secondary);
flex-shrink: 0;
}
.dashboard-badge-active {
padding: 2px 8px;
border-radius: 10px;
font-size: 0.7rem;
font-weight: 600;
background: var(--success-color);
color: #fff;
flex-shrink: 0;
}
.dashboard-profile .dashboard-target-metrics {
min-width: 48px;
}
.dashboard-autostart-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 4px;
}
.dashboard-autostart {
grid-template-columns: 1fr auto;
margin-bottom: 0;
}
.dashboard-autostart .dashboard-target-info > div {
min-width: 0;
}
@media (max-width: 768px) {
.dashboard-target {
grid-template-columns: 1fr auto;
gap: 6px;
}
.dashboard-target-metrics {
display: none;
}
}
/* ===== PERFORMANCE CHARTS ===== */
.perf-charts-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 12px;
}
.perf-chart-card {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 10px 12px;
}
.perf-chart-wrap {
position: relative;
height: 60px;
}
.perf-chart-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 4px;
}
.perf-chart-label {
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.3px;
color: var(--text-secondary);
}
.perf-chart-value {
font-size: 0.85rem;
font-weight: 700;
}
.perf-chart-value.cpu { color: #2196F3; }
.perf-chart-value.ram { color: #4CAF50; }
.perf-chart-value.gpu { color: #FF9800; }
.perf-chart-unavailable {
text-align: center;
padding: 20px 0;
color: var(--text-secondary);
font-size: 0.8rem;
}