您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
270 行
4.6 KiB
270 行
4.6 KiB
/* this class is added to all graphElement instances*/
|
|
.graphElement {
|
|
|
|
text-alignment:upper-center;
|
|
padding-top: 8;
|
|
padding-left: 8;
|
|
padding-bottom: 8;
|
|
padding-right: 8;
|
|
|
|
text-color:#8FC1DF;
|
|
|
|
font:path("Assets/Resources/Roboto/Roboto-Medium.ttf");
|
|
font-size:12;
|
|
|
|
/* currently border-XXX is only used for layout
|
|
where border-width is used to paint text and border.
|
|
They must keep in sync until we support variable border
|
|
thickness per edge */
|
|
border-radius: 4;
|
|
margin-top:8;
|
|
margin-bottom:8;
|
|
margin-left:8;
|
|
margin-right:8;
|
|
background-color: #2D2D2D;
|
|
border-width:1;
|
|
}
|
|
|
|
.graphElement.selected {
|
|
border-color: #f0f0f0;
|
|
border-width:1;
|
|
}
|
|
|
|
.node * {
|
|
font:path("Assets/Resources/Roboto/Roboto-Regular.ttf");
|
|
font-size:12;
|
|
}
|
|
|
|
.node.horizontal {
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
border-width: 2;
|
|
border-radius: 5;
|
|
}
|
|
|
|
.node.horizontal > #pane {
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
border-left: 4;
|
|
border-top: 4;
|
|
border-right: 4;
|
|
border-bottom: 4;
|
|
border-width: 2;
|
|
border-radius: 5;
|
|
}
|
|
|
|
.node.vertical > #pane {
|
|
flex:1;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.node.selected {
|
|
border-color: rgb(210, 152, 0);
|
|
}
|
|
|
|
.node.horizontal #pane > #left {
|
|
width: 208;
|
|
background-color: rgb(45, 45, 45);
|
|
border-radius: 2;
|
|
padding-left: 2;
|
|
}
|
|
|
|
.node.horizontal #pane > #right {
|
|
margin-left: 2;
|
|
padding-left: 8;
|
|
padding-right: 8;
|
|
border-radius: 2;
|
|
background-color: rgb(32, 33, 33);
|
|
}
|
|
|
|
.node #left > #title {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.node #left > #title > Label {
|
|
text-color: #FFFFFF;
|
|
font-style: bold;
|
|
text-alignment: middle-left;
|
|
flex: 2;
|
|
}
|
|
|
|
.node #left > #title > Button {
|
|
text-color: rgb(153, 153, 153);
|
|
flex: 1;
|
|
margin-right: 6;
|
|
padding-right: 0;
|
|
padding-left: 0;
|
|
text-alignment: middle-center;
|
|
}
|
|
|
|
.node.horizontal #left > #input {
|
|
flex:1;
|
|
padding-left: 6;
|
|
}
|
|
|
|
.node.vertical #left > #input {
|
|
flex:1;
|
|
}
|
|
|
|
.node #right > #output {
|
|
flex:1;
|
|
}
|
|
|
|
.node.horizontal #left > #controls {
|
|
padding-bottom: 8;
|
|
padding-left: 4;
|
|
padding-right: 6;
|
|
}
|
|
|
|
.node.horizontal #left > #controls > #element {
|
|
background-color: #FF0000;
|
|
margin-top: 5;
|
|
}
|
|
|
|
.node.horizontal #left > #preview {
|
|
background-color: rgb(45, 45, 45);
|
|
padding-left: 2;
|
|
padding-right: 2;
|
|
padding-bottom: 4;
|
|
margin-top: 5;
|
|
}
|
|
|
|
.node.vertical #pane > #left {
|
|
background-color: rgb(45, 45, 45);
|
|
flex:1;
|
|
}
|
|
|
|
.node.vertical #pane > #right {
|
|
background-color: rgb(32, 33, 33);
|
|
flex:1;
|
|
}
|
|
|
|
.node.horizontal NodeAnchor {
|
|
height: 26;
|
|
align-items: center;
|
|
}
|
|
|
|
.node.horizontal NodeAnchor #connector {
|
|
background-color: rgb(20, 21, 21);
|
|
border-color: rgb(20, 21, 21);
|
|
/* width is currently hard-coded */
|
|
border-width: 4;
|
|
margin-left: 5;
|
|
margin-right: 5;
|
|
width: 10;
|
|
height: 10;
|
|
border-radius: 15;
|
|
}
|
|
|
|
.node.vertical NodeAnchor {
|
|
margin-top:5;
|
|
margin-bottom:5;
|
|
}
|
|
|
|
.node.vertical NodeAnchor #connector {
|
|
background-color:#111212;
|
|
border-radius:24;
|
|
width:10;
|
|
height:10;
|
|
}
|
|
|
|
.node NodeAnchor #connector.anchorHighlight {
|
|
background-color: rgb(220, 220, 220);
|
|
border-color: rgb(220, 220, 220);
|
|
}
|
|
|
|
.node NodeAnchor #type {
|
|
text-color: rgb(153, 153, 153);
|
|
}
|
|
|
|
.node.vertical NodeAnchor #type {
|
|
flex:1;
|
|
}
|
|
|
|
.node.horizontal #output NodeAnchor #type {
|
|
text-alignment:middle-right;
|
|
}
|
|
|
|
.node.horizontal #input NodeAnchor #type {
|
|
text-alignment:middle-left;
|
|
}
|
|
|
|
.node.horizontal NodeAnchor #connector {
|
|
margin-left: 0;
|
|
margin-right: 4;
|
|
margin-top:2;
|
|
}
|
|
|
|
.node.horizontal #output NodeAnchor #connector {
|
|
margin-left: 4;
|
|
margin-right: 0;
|
|
}
|
|
|
|
.node.horizontal {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.node.horizontal #nodeMain{
|
|
flex-direction: row;
|
|
}
|
|
|
|
.node.horizontal #input NodeAnchor {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.node.horizontal #output NodeAnchor {
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
.node.vertical #input, Node.vertical #output {
|
|
flex: 1;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
}
|
|
|
|
.node.vertical NodeAnchor {
|
|
align-items: center;
|
|
}
|
|
|
|
/* there is currently an issue with text size evaluation
|
|
which causes layout to "shake", so this is a just to avoid the visual glitch */
|
|
.node.vertical NodeAnchor #type {
|
|
text-alignment:middle-center;
|
|
}
|
|
|
|
.node.vertical #input NodeAnchor {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.node.vertical #output NodeAnchor {
|
|
flex-direction: column-reverse;
|
|
}
|
|
|
|
.node.horizontal .hidden {
|
|
background-color: #ff0000;
|
|
position: absolute;
|
|
width: 0;
|
|
height: 0;
|
|
border-left: 0;
|
|
border-right: 0;
|
|
border-top: 0;
|
|
border-bottom: 0;
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* Example of dynamic properties
|
|
Read from the GridBackground decorator */
|
|
GridBackground {
|
|
grid-background-color:#141515;
|
|
line-color:#141515;
|
|
thick-line-color:#141515;
|
|
spacing:75.0;
|
|
thick-lines:0;
|
|
}
|