@import "css/mixins";

/*
 * Tipsy tooltip styles (custom, based on packaged css)
 */

.tipsy {
  font-size: 13px;
  position: absolute;
  padding: 5px;
  z-index: 1000;
}
.tipsy-inner {
  border-radius: 2px;
  background-color: $textColor;
  color: $almostWhite;
  max-width: 200px;
  padding: 5px 8px 4px 8px;
  text-align: center;
  font-family: $sansFont;
  code {
    font-family: $monoFont;
    text-shadow: -1px -1px 1px $textShadowColor;
  }
}

.tipsy-arrow {
  position: absolute;
  width: 0;
  height: 0;
  line-height: 0;
  border: 5px dashed $textColor;
}

/* Rules to colour arrows */
.tipsy-arrow-n {
  border-bottom-color: $textColor; }
.tipsy-arrow-s {
  border-top-color: $textColor; }
.tipsy-arrow-e {
  border-left-color: $textColor; }
.tipsy-arrow-w {
  border-right-color: $textColor; }

.tipsy-n .tipsy-arrow {
  top: 0px;
  left: 50%;
  margin-left: -5px;
  border-bottom-style: solid;
  border-top: none;
  border-left-color: transparent;
  border-right-color: transparent;
}
.tipsy-nw .tipsy-arrow {
  top: 0; left: 10px;
  border-bottom-style: solid;
  border-top: none;
  border-left-color: transparent;
  border-right-color: transparent;
}
.tipsy-ne .tipsy-arrow {
  top: 0;
  right: 10px;
  border-bottom-style: solid;
  border-top: none;
  border-left-color: transparent;
  border-right-color: transparent;
}
.tipsy-s .tipsy-arrow {
  bottom: 0;
  left: 50%;
  margin-left: -5px;
  border-top-style: solid;
  border-bottom: none;
  border-left-color: transparent;
  border-right-color: transparent;
}
.tipsy-sw .tipsy-arrow {
  bottom: 0;
  left: 10px;
  border-top-style: solid;
  border-bottom: none;
  border-left-color: transparent;
  border-right-color: transparent;
}
.tipsy-se .tipsy-arrow {
  bottom: 0;
  right: 10px;
  border-top-style: solid;
  border-bottom: none;
  border-left-color: transparent;
  border-right-color: transparent;
}
.tipsy-e .tipsy-arrow {
  right: 0;
  top: 50%;
  margin-top: -5px;
  border-left-style: solid;
  border-right: none;
  border-top-color: transparent;
  border-bottom-color: transparent;
}
.tipsy-w .tipsy-arrow {
  left: 0;
  top: 50%;
  margin-top: -5px;
  border-right-style: solid;
  border-left: none;
  border-top-color: transparent;
  border-bottom-color: transparent;
}
