@import '../../style/themes';
@import '../../style/mixins';

@mixin effect() {
  animation-duration: 0.3s;
  animation-fill-mode: both;
}

.x-tooltip {
  @include reset-component();
  
  position: absolute;
  min-width: 30px;
  padding: 6px 8px;
  box-sizing: border-box;
  color: $tooltip-color;
  background-color: $tooltip-bg;
  box-shadow: $box-shadow-base;

  &-enter-from, &-leave-to {
    opacity: 0;
    transform: scale(.8);
  }
  &-enter-active, &-leave-active {
    transition: all .3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  }
}