<commit_before>@import "colors/index";

$tooltip-bg: rgba(0, 0, 0, .75);
$tooltip-color: $color-white;
$tooltip-caret-bg: $tooltip-bg;
$tooltip-border: transparent;
$tooltip-spacing: 10px;

$popover-bg: $color-white;
$popover-color: $color-bg-darkest;
$popover-caret-bg: $popover-bg;
$popover-border: $color-text-dark;
$popover-spacing: 10px;

.swui-tooltip-content {
  position: absolute;
  border-radius: 3px;
  z-index: 5000;
  display: block;
  font-weight: normal;
  opacity: 0;

  &.type-popover {
    background: $popover-bg;
    color: $popover-color;
    border: 1px solid $popover-border;
    box-shadow: $shadow-1;
    font-size: 12px;
    padding: 4px;

    .tooltip-caret {
      position: absolute;
      z-index: 5001;
      width: 0;
      height: 0;

      &.position-left {
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        border-left: 7px solid $popover-caret-bg;
      }

      &.position-top {
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 7px solid $popover-caret-bg;
      }

      &.position-right {
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        border-right: 7px solid $popover-caret-bg;
      }

      &.position-bottom {
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-bottom: 7px solid $popover-caret-bg;
      }
    }
  }

  &.type-tooltip {
    color: $tooltip-color;
    background: $tooltip-bg;
    font-size: 12px;
    padding: 4px;
    text-align: center;

    .tooltip-caret {
      &.position-left {
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        border-left: 7px solid $tooltip-caret-bg;
      }

      &.position-top {
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 7px solid $tooltip-caret-bg;
      }

      &.position-right {
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        border-right: 7px solid $tooltip-caret-bg;
      }

      &.position-bottom {
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-bottom: 7px solid $tooltip-caret-bg;
      }
    }
  }

  .tooltip-caret {
    position: absolute;<commit_msg>Disable pointer events on tooltips<commit_after>@import "colors/index";

$tooltip-bg: rgba(0, 0, 0, .75);
$tooltip-color: $color-white;
$tooltip-caret-bg: $tooltip-bg;
$tooltip-border: transparent;
$tooltip-spacing: 10px;

$popover-bg: $color-white;
$popover-color: $color-bg-darkest;
$popover-caret-bg: $popover-bg;
$popover-border: $color-text-dark;
$popover-spacing: 10px;

.swui-tooltip-content {
  position: absolute;
  border-radius: 3px;
  z-index: 5000;
  display: block;
  font-weight: normal;
  opacity: 0;

  &.type-popover {
    background: $popover-bg;
    color: $popover-color;
    border: 1px solid $popover-border;
    box-shadow: $shadow-1;
    font-size: 12px;
    padding: 4px;

    .tooltip-caret {
      position: absolute;
      z-index: 5001;
      width: 0;
      height: 0;

      &.position-left {
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        border-left: 7px solid $popover-caret-bg;
      }

      &.position-top {
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 7px solid $popover-caret-bg;
      }

      &.position-right {
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        border-right: 7px solid $popover-caret-bg;
      }

      &.position-bottom {
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-bottom: 7px solid $popover-caret-bg;
      }
    }
  }

  &.type-tooltip {
    color: $tooltip-color;
    background: $tooltip-bg;
    font-size: 12px;
    padding: 4px;
    text-align: center;
    pointer-events: none;

    .tooltip-caret {
      &.position-left {
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        border-left: 7px solid $tooltip-caret-bg;
      }

      &.position-top {
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 7px solid $tooltip-caret-bg;
      }

      &.position-right {
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        border-right: 7px solid $tooltip-caret-bg;
      }

      &.position-bottom {
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-bottom: 7px solid $tooltip-caret-bg;
      }
    }
  }

  .tooltip-caret {
    position: absolute;
{'fraction_non_alphanumeric': 0.12305457563809918, 'fraction_numerical': 0.02199626478522515, 'mean_word_length': 2.3013698630136985, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2870017', 'n_tokens_mistral': 1719, 'n_tokens_neox': 1589, 'n_words': 367}