/*
 * code-forensics
 * Copyright (C) 2016-2021 Silvio Montanari
 * Distributed under the GNU General Public License v3.0
 * see http://www.gnu.org/licenses/gpl.html
 */

.treemap-diagram {
  padding: 5px;
  background: #333333;

  .root-tile {
    fill: #333333;
    rect {
      stroke: none;
    }

    text {
      font-size: 16px;
      fill: #FFFFFF;
      pointer-events: visible;
      cursor: pointer;
    }
  }

  .treemap-container {
    shape-rendering: crispEdges;

    rect {
      pointer-events: visibleFill;
      fill: none;
      stroke: #000000;
      stroke-width: 1px;

      &.parent-tile {
        fill: #F3F9FF;
        fill-opacity: 0.3;

        &:hover {
          cursor: auto;
          stroke-width: 3px;
          stroke: #FFFFFF;
          fill-opacity: 0.45;
        }

        &.last:hover {
          fill-opacity: 0;
        }
      }
    }

    text.tile-title {
      pointer-events: none;
      tspan.parent-tile {
        fill: #0044FF;
        font-weight: bold;
        font-size: 14px;
        text-shadow: 0 1px 0 #FFFFFF, 1px 0 0 #FFFFFF, -1px 0 0 #FFFFFF, 0 -1px 0 #FFFFFF;
      }

      tspan.child-tile, tspan.leaf-tile {
        font-size: 12px;
      }
    }
  }
}
