Skip to content
Snippets Groups Projects
style.js 1.17 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.
*/
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;
}

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"] {
Mathis Neumann's avatar
Mathis Neumann committed
    background-color: #CCC;
}

Mathis Neumann's avatar
Mathis Neumann committed
[type="nodeGroup"] {
    background-color: white;
    border-style: dotted;
    border-color: #999;
    border-width: 2px;
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;
Mathis Neumann's avatar
Mathis Neumann committed
`; /* js string end */