@white: #fff;
@primaryColor: #9fa7b1;
@darkGray: #455263;
@lightGray: #60738c;

// canvas variables
@fontFamily: Arial;
@canvasBgColor: #f2f4f8;

// node variables
@nodeBorderColor: @primaryColor;
@nodeBackgroundColor: #fff;
@nodeFontColor: #333;
@nodeBorderWidth: 1;
@nodeLabelColor: #a8b7c7;

// slot variables
@slotBackgroundColor: @primaryColor;
@slotCompatColor: #36b37e;
@slotIncompatColor: #cc1b1b;

.x-canvas {
    display: block;
    width: 100%;
    height: 100%;
    background-color: @canvasBgColor;
    user-select: none;
    font-family: @fontFamily;
}
.x-canvas:focus {
    outline: none;
}

.x-node {
    cursor: pointer;
}
.x-node.select .x-node-body {
    fill: @darkGray;
    stroke-width: 2
}
.x-node.select .x-node-body-function {
    fill: @darkGray;
    stroke-width: 2
}
.x-node.select .x-node-title {
    fill: #333;
}
.x-node.select .x-slot {
    fill: @lightGray;
}
.x-node-body {
    stroke: @nodeBorderColor;
    stroke-width: @nodeBorderWidth;
    color: @nodeFontColor;
    fill: @white;
}
.x-node-title {
    font-size: 12px;
    line-height: 1.33;
    fill: @nodeFontColor;
}

.x-node-start-title {
    font-size: 14px;
    line-height: 1.33;
    fill: @nodeFontColor;
}

.x-node-label {
    font-size: 10px;
    color: #fff;
}
.x-node-label rect {
    fill: @nodeLabelColor;
}

.x-slot {
    fill: @slotBackgroundColor;
    stroke-width: 10; // add transparent stroke to enlarge slot selection area
    stroke: transparent;
    &:hover {
        fill: @lightGray;
        stroke: rgba(96, 115, 140, 0.3);
    }
}
.x-slot.connectable {
    fill: @slotCompatColor;
}
.x-slot.unconnectable {
    fill: @slotIncompatColor;
}
.x-slot.connected {
    fill: @slotCompatColor;
}
.x-slot.active {
    display: inherit;
    stroke: rgba(73, 210, 153, 0.4);
    stroke-width: 10;
    fill: @slotCompatColor;
}

.x-tracker path {
    cursor: pointer;
    fill: none;
    stroke: #a3d7ef;
    stroke-width: 2;
}
.x-tracker.matched path {
    fill: none;
}

.x-edge path {
    cursor: pointer;
}
.x-edge.selected path:first-child {
    stroke: @darkGray;
    stroke-width: 3;
}
.x-edge path {
    fill: none;
    stroke-width: 1;
    stroke: @nodeLabelColor;
}
.x-edge .x-edge-virtual {
    stroke: #fff;
    opacity: 0;
    stroke-width: 50;
}

// 流式编排节点样式修改
.x-sourcetable-node,
.x-targettable-node {
    .x-node-body {
        fill: rgba(53, 142, 223, 0.2);
    }
}
.x-sourcetable-node:hover,
.x-targettable-node:hover,
.x-streamjob-node:hover {
    .x-node-body {
        stroke-width: 2px;
        stroke: #60738c;
    }
}
.x-sourcetable-node.select,
.x-targettable-node.select,
.x-streamjob-node.select {
    .x-node-body {
        fill: @darkGray;
        stroke: @darkGray;
    }
    .x-node-title {
        fill: @white;
    }
    .x-slot {
        fill: @lightGray;
    }
}

