aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2015-01-20 10:45:29 +0000
committerAdam Spiers <git@adamspiers.org>2015-01-20 10:45:29 +0000
commiteee05786bb7a45ca2fff012cbe1a2e8fde1c1a02 (patch)
tree3ad23d31315ce3282c82b81fd46f0ba936011ab8
parente21f94e66ab624f53b801556da97a2caf1aa27a9 (diff)
downloadgit-deps-eee05786bb7a45ca2fff012cbe1a2e8fde1c1a02.tar.gz
give arrow lines rainbow colour scheme and thicken slightly
-rw-r--r--html/css/git-deps.css3
-rw-r--r--html/js/git-deps-graph.coffee1
2 files changed, 2 insertions, 2 deletions
diff --git a/html/css/git-deps.css b/html/css/git-deps.css
index 2e248cc..ea21821 100644
--- a/html/css/git-deps.css
+++ b/html/css/git-deps.css
@@ -73,8 +73,7 @@ g.node text {
.link {
fill: none;
- stroke: #000;
- stroke-width: 1.5px;
+ stroke-width: 2px;
opacity: 0.4;
marker-end: url(#end-arrow);
}
diff --git a/html/js/git-deps-graph.coffee b/html/js/git-deps-graph.coffee
index 59d5452..4bccfeb 100644
--- a/html/js/git-deps-graph.coffee
+++ b/html/js/git-deps-graph.coffee
@@ -194,6 +194,7 @@ draw_graph = (commitish) ->
.data(gdd.links, link_key)
paths.enter().append("svg:path")
.attr("class", "link")
+ .attr("stroke", (d) -> color(link_key(d)))
nodes = fg.selectAll(".node")
.data(gdd.nodes, (d) -> d.sha1)
global.nodes = nodes