d3-flame-graphs
Version:
D3.js plugin for rendering flame graphs
77 lines (75 loc) • 1.91 kB
CSS
.flame-graph {
background-color: #FFF; }
.flame-graph .label {
font-family: Verdana;
font-weight: lighter;
cursor: default; }
.flame-graph .border-rect {
stroke: #0E0E0E;
fill: none; }
.flame-graph .node {
/* root is not clickable */ }
.flame-graph .node.clickable, .flame-graph .node.clickable .label {
cursor: pointer; }
.flame-graph .node.root {
cursor: auto;
/* clicking the base node is disabled as it does not make sense to zoom on it */ }
.flame-graph .node.root :hover {
cursor: auto; }
.flame-graph .ancestor {
cursor: pointer;
opacity: 0.6; }
.flame-graph rect {
stroke: #EEE;
fill-opacity: .8; }
.flame-graph rect.overlay {
fill-opacity: 0;
stroke-opacity: 0; }
.flame-graph g.highlight rect:first-child, .flame-graph g :hover rect:first-child {
fill: #FFD700;
fill-opacity: 1; }
.d3-tip {
line-height: 1;
font-family: Verdana;
font-size: 12px;
padding: 12px;
background: rgba(100, 50, 0, 0.8);
color: #FFF;
border-radius: 7px;
pointer-events: none;
/* Creates a small triangle extender for the tooltip */
/* Northward tooltips */
/* Eastward tooltips */
/* Southward tooltips */
/* Westward tooltips */ }
.d3-tip:after {
box-sizing: border-box;
display: inline;
font-size: 10px;
width: 100%;
line-height: 1;
color: rgba(100, 50, 0, 0.8);
position: absolute;
pointer-events: none; }
.d3-tip.n:after {
content: "\25BC";
margin: -1px 0 0 0;
top: 100%;
left: 0;
text-align: center; }
.d3-tip.e:after {
content: "\25C0";
margin: -4px 0 0 0;
top: 50%;
left: -8px; }
.d3-tip.s:after {
content: "\25B2";
margin: 0 0 1px 0;
top: -8px;
left: 0;
text-align: center; }
.d3-tip.w:after {
content: "\25B6";
margin: -4px 0 0 -1px;
top: 50%;
left: 100%; }