/*
 * 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
 */

@tooltip-arrow: {
  display: inline;
  color: rgba(0, 0, 0, 0.8);
  position: absolute;
  text-align: center;
};

.d3-tip {
  z-index: 10;
  line-height: 1;
  font-size: 0.75em;
  border-radius: 5px;
  box-shadow: 4px 4px 12px rgba(0,0,0,.5);
  transition: opacity 300ms linear;

  &.top-arrow {
    &:after {
      @tooltip-arrow();
      top: -10px;
      left: 45%;
      content: "\25B2";
      line-height: 1;
    }
  }
  &.right-arrow {
    &:after {
      @tooltip-arrow();
      right: -10px;
      top: 50%;
      content: "\25BA";
      line-height: 0.5;
    }
  }
  &.bottom-arrow {
    &:after {
      @tooltip-arrow();
      bottom: -12px;
      left: 45%;
      content: "\25BC";
      line-height: 1;
    }
  }
  &.left-arrow {
    &:after {
      @tooltip-arrow();
      left: -10px;
      top: 50%;
      content: "\25C0";
      line-height: 0.5;
    }
  }
}
