Dashboard: resize modules by mouse, overlays, link groups and colours in levels; read-only switch on phones

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GivouandClaude Opus 5.5 committed 2026-11-02 17:33:15 +01:00
1 parent 2ea9fa32bc
commit b82a6b90c6
8 files changed
+183 -60

No files matched your search

+53 -16
View File
@@ -770,18 +770,34 @@ canvas.fircurve { display: block; width: 100%; height: 240px; background: var(--
/* ---- dashboard */
.dhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 10px; }
.dhead h2 { margin: 0; font-size: 20px; }
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 10px; align-items: stretch; }
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 30px; grid-auto-flow: dense; gap: 10px; align-items: stretch; }
.dmod { min-width: 0; display: flex; flex-direction: column; }
.dmod[hidden] { display: none; }
.w3 { grid-column: span 3; } .w4 { grid-column: span 4; } .w6 { grid-column: span 6; } .w8 { grid-column: span 8; } .w12 { grid-column: span 12; }
@media (max-width: 1100px) { .w3, .w4 { grid-column: span 6; } .w6, .w8 { grid-column: span 12; } }
@media (max-width: 759px) { .dmod.w3, .dmod.w4, .dmod.w6, .dmod.w8 { grid-column: span 12; } .dhelp { display: none; } }
.dmod { position: relative; grid-column: span var(--w); grid-row: span var(--h); }
.dbody { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; scrollbar-width: thin; }
@media (max-width: 1100px) { .dmod { grid-column: span var(--wt); } }
/* phones: one column, as high as the content */
@media (max-width: 759px) {
.dash { grid-auto-rows: auto; }
.dmod { grid-column: span 12; grid-row: auto; }
.dhelp, .dgrab { display: none; }
.dm .led { flex: none !important; height: 130px !important; }
canvas.dcurve { flex: none !important; height: 170px !important; }
}
.dmod > h3 svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dtitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ddev { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.dctl { display: flex; gap: 3px; flex: none; }
.dctl button { min-height: 26px; min-width: 26px; padding: 0 6px; text-transform: none; letter-spacing: 0; }
.dgrip { cursor: grab; touch-action: none; }
.dash.editing .dmod > h3 { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.dgrab { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px;
font-size: 12px; line-height: 1; color: var(--text); background: var(--panel3); border: 1px solid var(--line2); touch-action: none; user-select: none; -webkit-user-select: none; }
.dgrab:hover { background: var(--accent2); border-color: var(--accent); color: #fff; }
.de { right: -7px; top: 50%; margin-top: -10px; cursor: ew-resize; }
.ds { bottom: -7px; left: 50%; margin-left: -10px; cursor: ns-resize; }
.dse { right: -7px; bottom: -7px; cursor: nwse-resize; }
body.dresizing { user-select: none; -webkit-user-select: none; }
.dresizing .dmod { transition: none; }
.dash.editing .dmod { border-style: dashed; border-color: var(--line2, #3a4250); }
.dempty { margin: auto; text-align: center; padding: 16px 4px; }
.dblank { padding: 40px 12px; text-align: center; color: var(--dim); }
@@ -805,29 +821,42 @@ body.ddragging { user-select: none; -webkit-user-select: none; cursor: grabbing;
.dtag.mute { color: #fff; background: var(--mute); }
.dlab { flex: none; min-width: 3.1em; color: var(--dim); font-size: 12px; }
.dsub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size: 12px; }
.dval { flex: none; min-width: 3.4em; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12px; }
.dval { flex: none; min-width: 4.6em; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12px; }
.dbar { --cc: var(--accent); flex: 1; position: relative; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; min-width: 30px; }
.dbar i { position: absolute; inset: 0 auto 0 0; background: var(--cc); opacity: .85; }
.dbar u { position: absolute; left: 70%; top: 0; bottom: 0; width: 1px; background: #ffffff66; }
.dgain.muted .dbar i { background: var(--dim); opacity: .4; }
.dgain.muted .dval { color: #f87171; font-size: 10px; }
.drow.zero { opacity: .5; }
.dmeters { flex: 1; display: flex; gap: 18px; flex-wrap: wrap; }
.dmeters { flex: 1; min-height: 0; display: flex; gap: 14px; }
.dmgroup { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dmgroup .sub { margin: 0; }
.dms { display: flex; gap: 6px; }
.dm { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 20px; flex: 1 1 0; max-width: 60px; }
.dm .led { height: 150px; }
.dm small { color: var(--dim); font-size: 11px; }
.dmgroup .sub { flex: none !important; margin: 0; }
.dms { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); grid-template-rows: 0 minmax(0, 1fr); gap: 0 4px; }
.dmeters.hasbands .dms { grid-template-rows: 22px minmax(0, 1fr); }
.dms > .dm { grid-row: 2; }
.dms .lkband { height: 8px; margin: 0 5px 3px; border-width: 1.5px; border-radius: 7px 7px 0 0; }
.dms .lkband::before, .dms .lkband::after { width: 4px; height: 4px; bottom: -2px; }
.dms .lkband::before { left: -3px; } .dms .lkband::after { right: -3px; }
.dms .lkband .lkname { padding: 0 5px; font-size: 9px; letter-spacing: .04em; gap: 3px; max-width: calc(100% + 6px); }
.dms .lkband .lkname svg { width: 9px; height: 9px; }
.dms .lkband.single { margin: 0 3px 3px; }
.dm { --cc: var(--warn); display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; min-height: 0; }
.dm .led { flex: 1 1 0; height: auto; min-height: 0; padding: 0; }
.dm small { color: var(--cc); font-size: 11px; font-weight: 700; }
.dm.muted .led { opacity: .35; }
.dm .limled { width: 18px; height: 4px; min-height: 4px; margin: 0; font-size: 0; }
.dnav { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dnav { flex: none; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dnav button { min-height: 28px; min-width: 32px; padding: 0 8px; font-size: 16px; line-height: 1; }
.dnavname { flex: 1; min-width: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--dim); }
.dnavname b { color: var(--text); }
canvas.dcurve { display: block; width: 100%; height: 170px; background: var(--bg2); border-radius: 8px; }
.dmod.w12 canvas.dcurve, .dmod.w8 canvas.dcurve { height: 200px; }
.dbands { display: flex; gap: 3px; margin-top: 6px; overflow-x: auto; }
canvas.dcurve { display: block; width: 100%; flex: 1 1 0; min-height: 70px; background: var(--bg2); border-radius: 8px; }
.dlegend { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 5px; font-size: 11px; color: var(--dim); }
.dlegend span { display: inline-flex; align-items: center; gap: 4px; }
.dlegend i { width: 10px; height: 3px; border-radius: 2px; }
.doverlays { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-top: 6px; }
.doverlays label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.doverlays i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.dbands { flex: none; display: flex; gap: 3px; margin-top: 6px; overflow-x: auto; }
.dband { flex: 1 0 34px; flex-direction: column; gap: 0; min-height: 34px; padding: 2px; font-weight: 400; background: var(--panel2); }
.dband b { font-size: 12px; }
.dband small { color: var(--dim); font-size: 10px; }
@@ -848,3 +877,11 @@ canvas.dcurve { display: block; width: 100%; height: 170px; background: var(--bg
.dmatrix i.on { background: var(--c); box-shadow: 0 0 6px var(--c); }
.dnote { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.45; }
.dform textarea { width: 100%; resize: vertical; min-height: 110px; font: inherit; }
/* ---- read-only switch (phones, tablets) */
.guard { flex: none; gap: 6px; min-height: 34px; padding: 0 8px; font-size: 12px; font-weight: 600; color: var(--dim); background: var(--panel2); }
.guardtrack { position: relative; width: 28px; height: 16px; border-radius: 8px; background: var(--line2); transition: background .15s; }
.guardtrack i { position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .15s; }
.guard.on { color: #fff; border-color: var(--accent); }
.guard.on .guardtrack { background: var(--accent); }
.guard.on .guardtrack i { left: 14px; }
body.locked #main input[type=range] { pointer-events: none; }