Skip to content

Commit

Permalink
improvement:模版编辑左侧工具栏开始、结束节点样式重构 TencentBlueKing#85
Browse files Browse the repository at this point in the history
  • Loading branch information
luofann committed Apr 11, 2019
1 parent e22d6aa commit 0f0c2d7
Showing 1 changed file with 15 additions and 32 deletions.
47 changes: 15 additions & 32 deletions pipeline/blueflow/src/components/common/PipelineCanvas/MenuBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
:data-type="item.type"
v-bktooltips.right="item.name"
@click.stop="onSelectNode(item.type)">
<span
v-if="item.type === 'startpoint' || item.type === 'endpoint'">
<div
v-if="item.type === 'startpoint' || item.type === 'endpoint'"
class="node-circle">
{{i18n[item.type]}}
</span>
</div>
</li>
</ul>
</div>
Expand Down Expand Up @@ -290,22 +291,24 @@ export default {
}
}
}
.common-icon-node-startpoint,
.common-icon-node-endpoint{
display: flex;
.node-circle{
margin: 0 auto;
width: 32px;
height: 32px;
margin: 12px;
line-height: 32px;
font-size: 12px;
margin-bottom: 23px;
border-radius: 50%;
background-color: #ffffff;
border: 1px solid #546a9e;
justify-content: center;
align-items: center;
}
.node-endpoint {
margin-top: 20px;
.startpoint-unavailable,
.endpoint-unavailable {
opacity: 0.3;
pointer-events: none;
}
.common-icon-node-tasknode,
.common-icon-node-subflow {
font-size: 24px;
}
.node-list {
position: absolute;
Expand Down Expand Up @@ -434,24 +437,4 @@ export default {
}
}
.startpoint-unavailable, .endpoint-unavailable {
display: flex;
width: 32px;
height: 32px;
line-height: 32px;
border-radius: 50%;
background-color: #ffffff;
border: 1px solid #546a9e;
justify-content: center;
align-items: center;
opacity: 0.3;
pointer-events: none;
}
.endpoint-unavailable {
margin-bottom: 12px;
}
.common-icon-node-tasknode,
.common-icon-node-subflow {
font-size: 24px;
}
</style>

0 comments on commit 0f0c2d7

Please sign in to comment.