Skip to content

Instantly share code, notes, and snippets.

@maxkfranz
Last active December 12, 2016 18:21
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/2c23fe9a23d0cc8d43af to your computer and use it in GitHub Desktop.
Save maxkfranz/2c23fe9a23d0cc8d43af to your computer and use it in GitHub Desktop.
tokyo-railways-style.cycss
node {
background-color: white;
border-color: black;
content: data(station_name);
width: 20;
height: 20;
min-zoomed-font-size: 12;
color: #fff;
font-size: 16;
z-index: 1;
}
node:selected,
node.start,
node.end {
height: 60;
width: 60;
min-zoomed-font-size: 0;
font-size: 48;
border-color: #000;
border-width: 10px;
text-outline-color: #000;
text-outline-width: 10px;
z-index: 9999;
}
node.start,
node.end {
background-color: #FC4C4C;
color: #FC4C4C;
}
edge {
min-zoomed-font-size: 12;
font-size: 8;
color: #fff;
content: data(line_name);
line-color: green;
width: 20;
curve-style: haystack;
haystack-radius: 0;
opacity: 0.5;
}
edge[company_type = 0] {
line-color: #00FFFF;
}
edge[company_type = 1] {
line-color: #00FF33;
}
edge[company_type = 2] {
line-color: white;
}
edge[company_type = 3] {
line-color: red;
}
edge[?is_walking] {
line-color: #555;
}
core {
active-bg-color: #fff;
active-bg-opacity: 0.333;
}
edge.not-path {
opacity: 0.1;
z-index: 0;
}
node.not-path {
opacity: 0.333;
z-index: 0;
}
edge.path {
opacity: 0.666;
z-index: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment