Newer
Older
/**
you should set syntax highlighting to CSS
this is a .js file, because we can then use static imports which ember-cli can properly build.
Notice that this is only pseudo-css for cytoscape. See the cytoscape.js docs for more info.
*/
text-valign: center;
text-halign: center;
$node > node { /* compounds. "Nodes" in meta model. $ selects the parent node that has a node instead of the node (as css would) */
padding-top: 10px;
padding-left: 10px;
padding-bottom: 10px;
padding-right: 10px;
text-valign: top;
text-halign: center;
[type="nodeGroup"] {
events: no; /* disable click, drag etc as this is just a frame */
}
background-color: ${theme.nodeColor};
color: ${theme.nodeTextColor};
border-color: ${theme.nodeBorderColor};
[type="service"] {
background-color: ${theme.serviceColor};
color: ${theme.nodeTextColor};
border-color: ${theme.nodeBorderColor};
border-width: 2px;
font-weight: bold;
z-index: 100;
background-color: ${theme.serviceColor};
color: ${theme.serviceTextColor};
border-color: ${theme.serviceBorderColor};
shadow-blur: 0;
shadow-color: #000;
shadow-offset-x: 2px;
shadow-offset-y: 2px;
shadow-opacity: 0.5;
target-arrow-color: ${theme.arrowColor};
/*text-background-color: ${theme.arrowLineColor};
text-background-opacity: 1;*/
/*text-background-shape: roundrectangle;*/
text-outline-color: ${theme.arrowColor};
text-outline-width: 1px;
font-size: 12pt;
width: data(workload);
}
[type="communication"] {
color: ${theme.arrowColor};
line-color: ${theme.arrowColor};
/*text-background-color: ${theme.arrowLineColor};
text-background-opacity: 1;*/
/*text-background-shape: roundrectangle;*/
text-outline-color: ${theme.arrowColor};
text-outline-width: 1px;
color: ${theme.nodeGroupTextColor};
background-color: ${theme.nodeGroupColor};
}
edge {
target-arrow-shape: triangle-backcurve;
curve-style: bezier; /* supports arrows */
background-color: yellow;
}
}
:selected {
background-color: black;
line-color: black;
target-arrow-color: black;
source-arrow-color: red;
}
:touch {
border-width: 2px;
}