Files
angular__angular/devtools/projects/ng-devtools/src/lib/shared/tree-visualizer-host/tree-visualizer-host.component.scss
T
hawkgs 3eec4badab refactor(devtools): abstract and reuse the tree visualizer (#62264)
Abstract the injector tree visualizer so it can be used for both the Injector Tree and Router Tree tabs without having to rely on separate identical implementations.

PR Close #62264
2025-06-30 07:39:16 +00:00

126 lines
2.5 KiB
SCSS

@use '../../../styles/typography';
:host {
display: block;
height: 100%;
svg {
@extend %body-medium-01;
cursor: grab;
&.panning {
cursor: grabbing;
}
::ng-deep {
.legend {
background: var(--primary-contrast);
}
.arrow {
fill: var(--full-contrast);
}
.legend-router-tree {
fill: var(--full-contrast) !important;
}
.link {
stroke: var(--quaternary-contrast);
stroke-width: 3px;
fill: none;
&.highlighted {
stroke: var(--blue-02);
}
}
.node {
cursor: pointer;
border: 1px solid var(--quaternary-contrast);
background: white;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
color: black;
font-size: 16px;
box-sizing: border-box;
border-radius: 2px;
border-style: solid;
border-width: 2px;
font-weight: 300;
&.node-search {
border-width: 4px !important;
border-style: groove !important;
text-decoration: underline;
font-weight: bold;
}
&.node-environment {
border: 1px solid var(--red-05);
background: var(--red-06);
&:hover {
background: var(--red-05);
}
}
&.node-imported-module {
border-color: var(--purple-02);
background: var(--purple-03);
&:hover {
background: var(--purple-02);
}
}
&.node-lazy {
border-color: var(--blue-02);
background: var(--blue-03);
&:hover {
background: var(--blue-02);
}
}
&.node-element {
border-color: var(--green-02);
background: var(--green-03);
&:hover {
background: var(--green-02);
}
}
&.node-null {
border: 1px solid var(--quaternary-contrast);
background: white;
&:hover {
color: black;
}
}
&.highlighted,
&.highlighted:hover {
background: var(--blue-02);
border-color: white;
color: white;
}
&.selected,
&.selected:hover {
color: var(--blue-02);
background: white;
border-width: 3px;
border-color: var(--blue-02);
font-weight: 600;
}
}
}
}
}