fix: detect NetBox theme for topology cable highlights

This commit is contained in:
2026-07-28 14:47:39 +02:00
parent cff9282a60
commit d9d2e4dd59
3 changed files with 20 additions and 13 deletions
@@ -100,18 +100,12 @@ html[data-netbox-color-mode="dark"] .rack-device {
transition: opacity .12s, stroke .12s, filter .12s, stroke-width .12s;
}
.rack-topology-edge.is-highlighted {
stroke: #22c55e !important;
stroke: var(--topology-highlight-color, #22c55e) !important;
stroke-width: 5;
opacity: 1;
filter: drop-shadow(0 0 5px #22c55e);
filter: drop-shadow(0 0 5px var(--topology-highlight-color, #22c55e));
}
.rack-topology-edge.is-dimmed { opacity: .12; }
html[data-bs-theme="dark"] .rack-topology-edge.is-highlighted,
body[data-bs-theme="dark"] .rack-topology-edge.is-highlighted,
html[data-netbox-color-mode="dark"] .rack-topology-edge.is-highlighted {
stroke: #fff !important;
filter: drop-shadow(0 0 5px #fff);
}
.rack-topology-edge.is-wireless {
stroke-dasharray: 7 7;
stroke-linecap: round;