fix: detect NetBox theme for topology cable highlights
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user