Fade out rank border color for more emphesis on metric

- Fade out rank color opacity when showing metric
This commit is contained in:
Simon Howe
2016-03-14 12:46:20 +01:00
parent 439b3aaed8
commit 13a625a2b3
3 changed files with 5 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ export default class Node extends React.Component {
}
let labelOffsetY = 18;
let subLabelOffsetY = 35;
// const color = this.props.metric ? '#e2e2ec' : getNodeColor(
// const color = this.props.metric ? '#e2e2ec' : getNodeColor(
const color = getNodeColor(
this.props.rank, this.props.label, this.props.pseudo);
const onMouseEnter = this.handleMouseEnter;

View File

@@ -138,7 +138,7 @@ export function getMetricColor() {
} else if (/files/.test(selectedMetric)) {
return '#9467bd';
} else if (/load/.test(selectedMetric)) {
return '#17becf';
return '#e6550d';
}
return 'steelBlue';
}

View File

@@ -403,10 +403,13 @@ h2 {
&:not(.shape-cloud) .border {
stroke-width: @node-border-stroke-width;
fill: @background-color;
transition: stroke-opacity 0.5s cubic-bezier(0,0,0.21,1), fill 0.5s cubic-bezier(0,0,0.21,1);
stroke-opacity: 1;
}
&.metrics .border {
fill: @background-lighter-color;
stroke-opacity: 0.3;
}
.metric-fill {