Skip to content

Instantly share code, notes, and snippets.

@maxkfranz
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxkfranz/9210c03a591f8736b82d to your computer and use it in GitHub Desktop.
Save maxkfranz/9210c03a591f8736b82d to your computer and use it in GitHub Desktop.
core {
active-bg-color: #fff;
active-bg-opacity: 0.333;
}
edge {
curve-style: haystack;
haystack-radius: 0;
opacity: 0.333;
width: 2;
z-index: 0;
overlay-opacity: 0;
}
node {
width: 40;
height: 40;
font-size: 10;
font-weight: bold;
min-zoomed-font-size: 4;
content: data(name);
text-valign: center;
text-halign: center;
color: #000;
text-outline-width: 2;
text-outline-color: #fff;
text-outline-opacity: 1;
overlay-color: #fff;
}
edge[interaction = "cc"] {
line-color: #FACD37;
opacity: 0.666;
z-index: 9;
width: 4;
}
node[NodeType = "Cheese"],
node[NodeType = "CheeseType"] {
background-color: #FACD37;
text-outline-color: #FACD37;
width: mapData(Quality, 70, 100, 20, 50);
height: mapData(Quality, 70, 100, 20, 50);
}
node[NodeType = "WhiteWine"] {
background-color: white;
text-outline-color: white;
}
edge[interaction = "cw"] {
line-color: white;
}
node[NodeType = "RedWine"] {
background-color: #DE3128;
text-outline-color: #DE3128;
}
edge[interaction = "cr"] {
line-color: #DE3128;
}
node[NodeType = "Cider"] {
background-color: #A4EB34;
text-outline-color: #A4EB34;
}
node.highlighted {
min-zoomed-font-size: 0;
font-size: 10;
text-outline-width: 2;
text-outline-opacity: 1;
z-index: 9999;
}
edge.highlighted {
opacity: 0.8;
width: 4;
z-index: 9999;
}
edge.faded {
opacity: 0.1;
}
node.faded {
opacity: 0.5;
text-opacity: 0;
}
node:selected {
width: 40;
height: 40;
border-color: rgb(187, 219, 247);
border-opacity: 0.5;
border-width: 10;
}
.filtered {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment