Files
wled-screen-controller-mixed/server/src/wled_controller/static/css/dashboard.css
alexei.dolgolyov 21248e2dc9 Rename profiles to automations across backend and frontend
Rename the "profiles" entity to "automations" throughout the entire
codebase for clarity. Updates Python models, storage, API routes/schemas,
engine, frontend JS modules, HTML templates, CSS classes, i18n keys
(en/ru/zh), dashboard, tutorials, and command palette.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 18:01:39 +03:00

396 lines
7.3 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;
transition: transform 0.2s ease;
}
.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;
transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.dashboard-target:hover {
box-shadow: 0 2px 8px var(--shadow-color);
}
.dashboard-card-link:hover {
border-color: var(--primary-color);
box-shadow: 0 4px 12px var(--shadow-color);
}
.dashboard-target-info {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
overflow: hidden;
}
.dashboard-target-icon {
font-size: 1rem;
flex-shrink: 0;
color: var(--primary-text-color);
}
.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-card-link {
cursor: pointer;
}
.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: var(--primary-color);
}
.dashboard-target-actions {
display: flex;
align-items: center;
gap: 4px;
}
.dashboard-action-btn {
background: none;
border: none;
width: 28px;
height: 28px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
border-radius: 4px;
transition: color 0.2s, background 0.2s;
}
.dashboard-action-btn.start {
color: var(--primary-color);
}
.dashboard-action-btn.start:hover {
background: color-mix(in srgb, var(--primary-color) 12%, transparent);
}
.dashboard-action-btn.stop {
color: var(--warning-color, #ffc107);
}
.dashboard-action-btn.stop:hover {
background: rgba(255, 193, 7, 0.12);
}
.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(--primary-color);
color: var(--primary-contrast);
flex-shrink: 0;
}
.dashboard-automation .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: 0;
}
.perf-chart-label {
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.3px;
color: var(--text-secondary);
}
.perf-chart-subtitle {
position: absolute;
top: 0;
left: 0;
font-size: 0.6rem;
font-weight: 400;
color: var(--text-muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: calc(100% - 4px);
pointer-events: none;
opacity: 0.7;
z-index: 1;
}
.perf-chart-value {
font-size: 0.85rem;
font-weight: 700;
color: var(--primary-text-color);
}
.perf-chart-label .color-picker-swatch {
width: 12px;
height: 12px;
vertical-align: middle;
}
.perf-chart-unavailable {
text-align: center;
padding: 20px 0;
color: var(--text-secondary);
font-size: 0.8rem;
}