angular/devtools/projects/ng-devtools/src/lib/devtools-tabs/tree-visualizer-host/tree-visualizer-host.component.scss
hawkgs 77b5eed024 refactor(devtools): extract and organize colors into themes (#60374)
Extract all colors from the stylesheets, reduce their number by merging the similar ones and organize them into themes represented by CSS variables.

PR Close #60374
2025-03-27 18:10:28 +00:00

144 lines
2.8 KiB
SCSS

:host {
display: block;
height: 100%;
svg {
cursor: grab;
&.panning {
cursor: grabbing;
}
::ng-deep {
.node-hidden,
.link-hidden {
display: none;
}
.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;
.node-container {
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;
&:hover {
color: white;
}
}
&.highlighted {
.node-container,
.node-container:hover {
background: var(--blue-02);
border-color: white;
color: white;
font-weight: 400;
}
&.selected {
.node-container,
.node-container:hover {
color: var(--blue-02);
background: white;
border-width: 3px;
border-color: var(--blue-02);
font-weight: 800;
}
}
}
.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;
}
}
.node-label {
color: black;
font-weight: 300;
font-size: 18px;
text-align: center;
}
}
}
}
}