2024-04-02 15:38:06 +08:00
|
|
|
$color-business: var(--el-color-business);
|
|
|
|
|
$color-primary: var(--el-text-color-primary);
|
|
|
|
|
$color-regular: var(--el-text-color-regular);
|
2023-07-30 23:29:32 +08:00
|
|
|
.graph-toolbar {
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 100px;
|
|
|
|
|
left: 0;
|
|
|
|
|
|
|
|
|
|
.toolbar__tools {
|
|
|
|
|
display: flex;
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
|
|
|
|
|
li {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 32px;
|
|
|
|
|
margin-right: 4px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
i {
|
2024-04-02 15:38:06 +08:00
|
|
|
color: $color-regular;
|
2023-07-30 23:29:32 +08:00
|
|
|
font-size: 18px;
|
|
|
|
|
}
|
2023-08-01 17:58:27 +08:00
|
|
|
|
|
|
|
|
&.toolbar--unactivated {
|
|
|
|
|
cursor: default;
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-08-01 17:58:27 +08:00
|
|
|
i {
|
|
|
|
|
opacity: .4;
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-07-30 23:29:32 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
.entity-graph {
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
.entity-graph__chart {
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
|
|
.graph-node {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
background-color: transparent !important;
|
2024-04-03 11:57:54 +08:00
|
|
|
transition: linear all var(--el-transition-duration-fast);
|
2023-07-30 23:29:32 +08:00
|
|
|
|
|
|
|
|
.graph-node__text {
|
|
|
|
|
width: 120px;
|
|
|
|
|
font-size: 12px;
|
2024-04-02 15:38:06 +08:00
|
|
|
color: $color-primary;
|
2023-07-30 23:29:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.graph-node--root {
|
|
|
|
|
padding-top: 18px;
|
|
|
|
|
width: 82px;
|
|
|
|
|
height: 82px;
|
|
|
|
|
border: 5px solid !important;
|
|
|
|
|
// 覆盖自带的node点击效果
|
|
|
|
|
&.rel-node-checked {
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
animation: none;
|
|
|
|
|
}
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
&.graph-node--ip {
|
2024-04-02 15:38:06 +08:00
|
|
|
border-color: var(--el-color-success-light-5) !important;
|
|
|
|
|
box-shadow: 0 0 0 8px rgba(126, 159, 84, 0.14);
|
|
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
i {
|
2024-04-02 15:38:06 +08:00
|
|
|
color: var(--el-color-success);
|
2023-07-30 23:29:32 +08:00
|
|
|
}
|
|
|
|
|
}
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
&.graph-node--domain {
|
2024-04-02 15:38:06 +08:00
|
|
|
border-color: var(--el-color-primary-light-7) !important;
|
|
|
|
|
box-shadow: 0 0 0 8px rgba(56, 172, 210, 0.14);
|
|
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
i {
|
2024-04-02 15:38:06 +08:00
|
|
|
color: $color-business;
|
2023-07-30 23:29:32 +08:00
|
|
|
}
|
|
|
|
|
}
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
&.graph-node--app {
|
2024-04-02 15:38:06 +08:00
|
|
|
border-color: var(--el-color-warning-light-5) !important;
|
|
|
|
|
box-shadow: 0 0 0 8px rgba(229, 162, 25, 0.14);
|
|
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
i {
|
2024-04-02 15:38:06 +08:00
|
|
|
color: var(--el-color-warning);
|
2023-07-30 23:29:32 +08:00
|
|
|
}
|
|
|
|
|
}
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
i {
|
|
|
|
|
font-size: 36px;
|
|
|
|
|
}
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
.graph-node__text {
|
|
|
|
|
padding-top: 30px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.graph-node--primary {
|
|
|
|
|
padding-top: 20px;
|
|
|
|
|
width: 66px;
|
|
|
|
|
height: 66px;
|
2024-04-02 15:38:06 +08:00
|
|
|
border: 1px solid #A7B0B9 !important; // 该class并未使用到
|
2023-07-30 23:29:32 +08:00
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
|
|
// 覆盖自带的node点击效果
|
|
|
|
|
&.rel-node-checked {
|
2024-04-02 15:38:06 +08:00
|
|
|
box-shadow: 0 0 0 5px rgba(151, 151, 151, 0.21);
|
2023-07-30 23:29:32 +08:00
|
|
|
animation: none;
|
2024-04-02 15:38:06 +08:00
|
|
|
border-color: $color-regular !important;
|
2023-07-30 23:29:32 +08:00
|
|
|
}
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
i {
|
|
|
|
|
font-size: 24px;
|
2024-04-02 15:38:06 +08:00
|
|
|
color: $color-regular;
|
2023-07-30 23:29:32 +08:00
|
|
|
}
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
.graph-node__text {
|
|
|
|
|
padding-top: 24px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.graph-node--entity {
|
|
|
|
|
width: 21px;
|
|
|
|
|
height: 21px;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
border: none !important;
|
|
|
|
|
|
|
|
|
|
&.graph-node--ip {
|
|
|
|
|
i {
|
2024-04-02 15:38:06 +08:00
|
|
|
color: var(--el-color-success);
|
2023-07-30 23:29:32 +08:00
|
|
|
}
|
|
|
|
|
}
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
&.graph-node--domain {
|
|
|
|
|
i {
|
2024-04-02 15:38:06 +08:00
|
|
|
color: $color-business;
|
2023-07-30 23:29:32 +08:00
|
|
|
}
|
|
|
|
|
}
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
&.graph-node--app {
|
|
|
|
|
i {
|
2024-04-02 15:38:06 +08:00
|
|
|
color: var(--el-color-warning);
|
2023-07-30 23:29:32 +08:00
|
|
|
}
|
|
|
|
|
}
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
i {
|
|
|
|
|
font-size: 21px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.entity-graph__right-box {
|
|
|
|
|
& > div {
|
|
|
|
|
left: unset !important;
|
|
|
|
|
right: 0 !important;
|
|
|
|
|
}
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
.entity-graph__detail {
|
|
|
|
|
height: calc(100% - 100px) !important;
|
|
|
|
|
top: 100px !important;
|
|
|
|
|
// border-left: 1px solid #E2E5EC;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.g6-component-tooltip {
|
2024-04-02 15:38:06 +08:00
|
|
|
box-shadow: -1px 1px 10px -1px rgba(205, 205, 205, 0.85);
|
2023-07-30 23:29:32 +08:00
|
|
|
|
|
|
|
|
.primary-node-tooltip {
|
|
|
|
|
padding: 5px;
|
|
|
|
|
|
|
|
|
|
.tooltip__header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
i {
|
2024-04-02 15:38:06 +08:00
|
|
|
color: $color-regular;
|
2023-07-30 23:29:32 +08:00
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
.tooltip__title {
|
|
|
|
|
padding-left: 6px;
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
line-height: 15px;
|
2024-04-02 15:38:06 +08:00
|
|
|
color: $color-primary;
|
2023-07-30 23:29:32 +08:00
|
|
|
}
|
|
|
|
|
}
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
.tooltip__content {
|
|
|
|
|
padding-top: 10px;
|
2024-04-02 15:38:06 +08:00
|
|
|
color: $color-primary;
|
2023-07-30 23:29:32 +08:00
|
|
|
font-size: 12px;
|
|
|
|
|
|
|
|
|
|
span:first-of-type {
|
|
|
|
|
padding-right: 20px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
.entity-node-tooltip {
|
|
|
|
|
width: 300px;
|
|
|
|
|
padding: 5px;
|
|
|
|
|
|
|
|
|
|
.tooltip__header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
|
|
|
|
.tooltip__title {
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
line-height: 15px;
|
2024-04-02 15:38:06 +08:00
|
|
|
color: $color-primary;
|
2023-07-30 23:29:32 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tooltip__content {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
|
|
.content-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
.header-icon {
|
|
|
|
|
width: 3px !important;
|
|
|
|
|
height: 12px !important;
|
2024-04-02 15:38:06 +08:00
|
|
|
background: $color-business;
|
2023-07-30 23:29:32 +08:00
|
|
|
border-radius: 1px;
|
|
|
|
|
margin-right: 6px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
.content-tag-list {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
|
|
.entity-tag {
|
|
|
|
|
margin: 10px 9px 10px 0;
|
|
|
|
|
padding: 0 8px;
|
|
|
|
|
height: 20px;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
border: 1px solid;
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
|
2024-04-02 15:38:06 +08:00
|
|
|
$normal-color: $color-regular;
|
|
|
|
|
$normal-light-color: var(--el-fill-color-light);
|
|
|
|
|
$negative-color: var(--el-color-danger);
|
|
|
|
|
$negative-light-color: var(--el-color-danger-light-9);
|
|
|
|
|
$positive-color: var(--el-color-success);
|
|
|
|
|
$positive-light-color: var(--el-color-success-light-9);
|
|
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
&.entity-tag--level-two-normal {
|
|
|
|
|
border-color: $normal-color;
|
|
|
|
|
color: $normal-color;
|
|
|
|
|
background-color: $normal-light-color;
|
|
|
|
|
}
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
&.entity-tag--level-two-negative {
|
|
|
|
|
border-color: $negative-color;
|
|
|
|
|
color: $negative-color;
|
|
|
|
|
background-color: $negative-light-color;
|
|
|
|
|
}
|
2024-04-02 15:38:06 +08:00
|
|
|
|
2023-07-30 23:29:32 +08:00
|
|
|
&.entity-tag--level-two-positive {
|
|
|
|
|
border-color: $positive-color;
|
|
|
|
|
color: $positive-color;
|
|
|
|
|
background-color: $positive-light-color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|