feat(noc): tooltips and clickable legends on the dashboard charts
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5b24282224
commit
bac645ed5b
18 changed files with 214 additions and 18 deletions
15
src/styles/42-chart-tooltips.css
Normal file
15
src/styles/42-chart-tooltips.css
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
.legend .lg{font:inherit;color:inherit;background:none;border:0;padding:2px 4px;margin:-2px -4px;border-radius:6px;cursor:pointer}
|
||||
.legend .lg:hover{background:rgba(30,38,64,.08)}
|
||||
.legend .lg.off{opacity:.45;text-decoration:line-through}
|
||||
.chart[data-ch]{touch-action:pan-y;cursor:crosshair}
|
||||
.chtip{position:fixed;z-index:60;pointer-events:none;background:var(--ink);color:#fff;border-radius:8px;padding:6px 9px;font-size:11.5px;font-weight:700;box-shadow:0 4px 14px rgba(0,0,0,.3);min-width:130px}
|
||||
.chtip[hidden],.chcur[hidden]{display:none}
|
||||
.chtip div{display:flex;align-items:center;gap:6px;margin-top:2px}
|
||||
.chtip div span{margin-left:auto;padding-left:10px;font-variant-numeric:tabular-nums}
|
||||
.chtip i{width:9px;height:9px;border-radius:3px;border:1px solid #fff}
|
||||
.chtip .tot{border-top:1px solid rgba(255,255,255,.35);margin-top:4px;padding-top:3px}
|
||||
.chcur{position:fixed;z-index:59;pointer-events:none;width:0;border-left:1px dashed var(--ink)}
|
||||
.mix[data-mix]{cursor:help}
|
||||
.nw-chart[data-ch]{touch-action:pan-y;cursor:crosshair}
|
||||
.noc-window .chtip{border:1px solid #3A4A78}
|
||||
.noc-window .chcur{border-left-color:#E8EEFA}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* The NOC window (?noc=<slot>): a dark wallboard for a second display, and the dashboard's own tabs under Details. */
|
||||
body.noc-window{background:#0B1224;overflow:auto}
|
||||
#nocBoard{color:#E8EEFA}
|
||||
body.noc-window>*:not(#nocBoard):not(#dash):not(#toasts):not(script){display:none !important}
|
||||
body.noc-window>*:not(#nocBoard):not(#dash):not(#toasts):not(.chtip):not(.chcur):not(script){display:none !important}
|
||||
body.noc-window #dash{position:static;background:none;overflow:visible;padding:0 12px 16px}
|
||||
body.noc-window #toasts{z-index:20}
|
||||
body.noc-window [data-act="dashClose"]{display:none}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue