_tooltips.scss 1.26 KB
Newer Older
1
.ui-tooltip.qtip .ui-tooltip-content {
2
  background: rgba($pink, 0.8);
3
  border: 0;
4
  color: $white;
5
  font: bold 12px $font-family-sans-serif;
6 7 8 9 10 11 12
  margin-bottom: 6px;
  margin-right: 0;
  overflow: visible;
  padding: 4px;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}
muzaffaryousaf committed
13 14 15 16 17 18


// custom tool tip style.
@mixin tooltip-hover-style ($margin-top) {
  p {
    @extend %ui-depth2;
19 20 21 22

    background: $dark-gray;
    border-radius: ($baseline/5);
    color: $white;
23
    font-family: $font-family-sans-serif;
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
    line-height: lh();
    opacity: 0;
    padding: 6px;
    position: absolute;
    text-shadow: 0 -1px 0 $black;

    @include transition(all .1s $ease-in-out-quart 0s);

    white-space: pre;
    visibility: hidden;
    pointer-events: none;
    right: 0;

    &:empty {
      background: none;
muzaffaryousaf committed
39 40

      &::after {
41
        display: none;
muzaffaryousaf committed
42
      }
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
    }

    &::after {
      background: $dark-gray;
      content: " ";
      display: block;
      height: ($baseline/2);
      right: 18px;
      position: absolute;
      top: ($baseline + ($baseline/4));

      @include transform(rotate(45deg));

      width: ($baseline/2);
    }
muzaffaryousaf committed
58 59 60 61 62 63
  }

  &:hover, &:focus {
    p {
      display: block;
      margin-top: $margin-top;
64
      opacity: 1;
muzaffaryousaf committed
65 66 67 68
      visibility: visible;
    }
  }
}