feat(nodeContent): 增加新的节点样式,后续开发动态选择节点样式功能
parent
3dccccae21
commit
0d69ca06d5
@ -0,0 +1,93 @@
|
|||||||
|
.node-container {
|
||||||
|
color: white;
|
||||||
|
min-width: 150px;
|
||||||
|
font-size: 14px;
|
||||||
|
border: 2px solid transparent;
|
||||||
|
|
||||||
|
&.selected {
|
||||||
|
border-color: #1890ff;
|
||||||
|
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.node-header {
|
||||||
|
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
||||||
|
color: #000000;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.node-api-box,
|
||||||
|
.node-data-box {
|
||||||
|
//box-shadow: 3px 3px 5px #cccccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.node-data-box {
|
||||||
|
margin-top: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.node-split-line {
|
||||||
|
z-index: 230;
|
||||||
|
position: relative;
|
||||||
|
width: 90%;
|
||||||
|
background-color: #ffffff;
|
||||||
|
margin: -1px auto; // -1是为了遮住上面盒子的部分边框
|
||||||
|
color: #000000;
|
||||||
|
text-align: center;
|
||||||
|
height: 20px;
|
||||||
|
line-height: 20px;
|
||||||
|
font-size: 12px;
|
||||||
|
border: 1px solid #cccccc;
|
||||||
|
border-bottom-color: #ffffff;
|
||||||
|
border-top-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.node-content,
|
||||||
|
.node-content-api {
|
||||||
|
display: flex;
|
||||||
|
background-color: #ffffff;
|
||||||
|
color: #000000;
|
||||||
|
padding: 0 5px;
|
||||||
|
border: 1px solid #cccccc;
|
||||||
|
border-radius: 3px;
|
||||||
|
|
||||||
|
|
||||||
|
.node-inputs,
|
||||||
|
.node-outputs,
|
||||||
|
.node-outputs-api {
|
||||||
|
flex: 1;
|
||||||
|
|
||||||
|
.node-input-label {
|
||||||
|
font-size: 12px;
|
||||||
|
padding: 1px 0;
|
||||||
|
height: 20px;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.node-inputs {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
margin-right: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.node-outputs,
|
||||||
|
.node-outputs-api {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.node-content-api {
|
||||||
|
min-height: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.node-content {
|
||||||
|
min-height: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.node-footer {
|
||||||
|
background-color: #ffffff;
|
||||||
|
color: #000000;
|
||||||
|
padding: 5px 20px;
|
||||||
|
border-top: 1px solid rgba(204, 204, 204, 0.18);
|
||||||
|
min-height: 20px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue