From 85cd7cec6c2e0b5f6d17e076b71b98372d69db09 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 23 Apr 2015 09:50:47 +0000 Subject: [PATCH] adjust the style of the LOC-by-file graph --- codepot/src/css/code.css | 32 ++++++++++++++++++++++++++++++++ codepot/src/js/CodeFlower.js | 3 +-- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/codepot/src/css/code.css b/codepot/src/css/code.css index bc0ddf2e..c6df0fbb 100644 --- a/codepot/src/css/code.css +++ b/codepot/src/css/code.css @@ -31,6 +31,38 @@ border-radius: 3px; } +#code_folder_mainarea_result_loc_by_file_graph { + overflow: auto; +} + +#code_folder_mainarea_result_info_loc_by_file_graph circle.node { + cursor: pointer; + stroke: #000; + stroke-width: .5px; +} + +#code_folder_mainarea_result_info_loc_by_file_graph circle.node.directory { + stroke: #9ecae1; + stroke-width: 2px; +} + +#code_folder_mainarea_result_info_loc_by_file_graph circle.node.collapsed { + stroke: #555; +} + +#code_folder_mainarea_result_info_loc_by_file_graph .nodetext { + fill: #252929; + font-weight: bold; + text-shadow: 0 0 0.2em white; + font-size: 0.9em; +} + +#code_folder_mainarea_result_info_loc_by_file_graph line.link { + fill: none; + stroke: #9ecae1; + stroke-width: 1.5px; +} + /*----------------------------------------------- * project source file view *-----------------------------------------------*/ diff --git a/codepot/src/js/CodeFlower.js b/codepot/src/js/CodeFlower.js index 73d3f5d6..643131f1 100644 --- a/codepot/src/js/CodeFlower.js +++ b/codepot/src/js/CodeFlower.js @@ -123,8 +123,7 @@ CodeFlower.prototype.click = function(d) { CodeFlower.prototype.mouseover = function(d) { this.text.attr('transform', 'translate(' + d.x + ',' + (d.y - 5 - (d.children ? 3.5 : Math.sqrt(d.size) / 2)) + ')') .text(d.name + ": " + d.size) - .style('display', null) - .style('font-size', '0.9em'); + .style('display', null); }; CodeFlower.prototype.mouseout = function(d) {