angular/devtools/projects/ng-devtools/src/lib/devtools-tabs/tree-visualizer-host/tree-visualizer-host.component.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

154 lines
2.8 KiB
SCSS
Raw Normal View History

:host {
display: block;
height: 100%;
svg {
cursor: grab;
&.panning {
cursor: grabbing;
}
::ng-deep {
.node-hidden,
.link-hidden {
display: none;
}
.link {
stroke: #9b9b9b;
stroke-width: 3px;
fill: none;
&.highlighted {
stroke: #4da1ff;
}
}
.node {
cursor: pointer;
&.highlighted {
.node-container,
.node-container:hover {
background: oklch(0.65 0.25 266 / 1);
border-color: white;
color: white;
font-weight: 400;
}
&.selected {
.node-container,
.node-container:hover {
color: oklch(0.65 0.25 266 / 1);
background: white;
border-width: 3px;
border-color: oklch(0.65 0.25 266 / 1);
font-weight: 800;
}
}
}
.node-container {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
color: #000;
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 #ff7a7e;
background: #f9c2c5;
&:hover {
background: #ff7a7e;
}
}
.node-imported-module {
border-color: #8838f7;
background: #c79eff;
&:hover {
background: #8838f7;
}
}
.node-lazy {
border-color: oklch(0.65 0.25 266/1);
background: #8bc1ff;
&:hover {
background: #8bc1ff;
}
}
.node-element {
border-color: #28ab2c;
background: #a7d5a9;
&:hover {
background: #28ab2c;
}
}
.node-null {
border: 1px solid #8b8b8b;
background: white;
}
.node-label {
color: black;
font-weight: 300;
font-size: 18px;
text-align: center;
}
}
}
}
}
:host-context(.dark-theme) {
svg ::ng-deep {
.legend {
background: #2f2c2c;
}
.link {
stroke: #bcc5ce;
fill: none;
&.highlighted {
stroke: #4da1ff;
}
}
.arrow {
fill: white;
}
.node-label {
color: #000;
}
.legend-router-tree {
fill: #ffffff !important;
}
}
}