Skip to content
Snippets Groups Projects
style.js 2.02 KiB
Newer Older
Mathis Neumann's avatar
Mathis Neumann committed
/**
    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.
*/
Christoph Dornieden's avatar
Christoph Dornieden committed

/*https://color.adobe.com/anggo-djago-color-theme-2691053/*/
const arrowBorderColor = '#002A4A';
const arrowColor = arrowBorderColor;


const nodeTextColor = '#002A4A';
const nodeColor = '#17607D';

const serviceColor = '#ED8910';
const serviceTextColor = '#FFFEED';/* '#FFF1CE';*/

const nodeGroupTextColor = nodeTextColor;
const nodeGroupColor = 'white';
const borderColor = '#D64700';


Mathis Neumann's avatar
Mathis Neumann committed
* {
    font-size: 10pt;
}
Mathis Neumann's avatar
Mathis Neumann committed
node { /* all nodes */
    content: data(label);
Mathis Neumann's avatar
Mathis Neumann committed
    shape: roundrectangle;
    text-valign: center;
    text-halign: center;
Christoph Dornieden's avatar
Christoph Dornieden committed
    width: 100px;
    height: 60px;
    text-wrap: wrap;
    text-max-width: 90px;
Mathis Neumann's avatar
Mathis Neumann committed
$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;
Mathis Neumann's avatar
Mathis Neumann committed
}

[type="node"] {
Christoph Dornieden's avatar
Christoph Dornieden committed
    background-color: ${nodeColor};
    color: ${nodeTextColor};
    font-weight: bold;

}

[type="serviceInstance"] {
    background-color: ${serviceColor};
    color: ${serviceTextColor};
    font-weight: bold;
}
[type="communicationInstance"] {
    color: #F4EFDC;
    line-color: ${arrowBorderColor};
    target-arrow-color: ${arrowColor};
Mathis Neumann's avatar
Mathis Neumann committed
}

Mathis Neumann's avatar
Mathis Neumann committed
[type="nodeGroup"] {
Christoph Dornieden's avatar
Christoph Dornieden committed
    color: ${nodeGroupTextColor};
    background-color: ${nodeGroupColor};
Mathis Neumann's avatar
Mathis Neumann committed
    border-style: dotted;
Christoph Dornieden's avatar
Christoph Dornieden committed
    border-color: ${borderColor};
Mathis Neumann's avatar
Mathis Neumann committed
    border-width: 2px;
Christoph Dornieden's avatar
Christoph Dornieden committed
    font-weight: bold;
Mathis Neumann's avatar
Mathis Neumann committed
    label: data(label);
    target-arrow-shape: triangle-backcurve;
    curve-style: bezier; /* supports arrows */
    width: 2px;
}

:selected {
    background-color: black;
    line-color: black;
    target-arrow-color: black;
Mathis Neumann's avatar
Mathis Neumann committed
    source-arrow-color: red;
}

:touch {
    border-width: 2px;
Christoph Dornieden's avatar
Christoph Dornieden committed
`; /* js string end */