.clearfix() {
  &::after {
    content: "";
    display: block;
    clear: both;
  }
}

.absolute() {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  top: 0;
}

.li-hover() {
  cursor: pointer;
  &:hover {
    background-color: @hover-background-color;
  }

  &.disabled{
    cursor: default;
    &:hover {
      background-color: transparent;
    }
  }
}

.text-hover() {
  cursor: pointer;
  transition: color @transition-time ease;
  &:hover {
    color: darken(@link-color, 10%);
  }
}

.link-hover() {
  color: @link-color;
  cursor: pointer;
  transition: color @transition-time ease;
  &:hover {
    color: darken(@link-color, 10%);
  }
}

.tag-span-func() {
  margin-bottom: 2px;
  display: inline-block;
  border-radius: @border-radius;
  transition: all linear @transition-time;
  background-color: @gray3-color;
  margin-right: 5px;
  >.@{select-close-prefix} {
    .text-hover();
    margin-left: 5px;
  }
}

.rotate-icon-down() {
  >.h-icon-down {
    position: absolute;
    right: 8px;
    top: 50%;
    height: 10px;
    line-height: 10px;
    transform: translate(0, -50%);
    transition: all @transition-time;
    color: @gray-color;
  }
  &:hover {
    >.h-icon-down {
      color: @primary-color;
    }
  }
  &.@{pop-ref-prefix}>.h-icon-down {
    transform: rotate(-180deg) translate(0, 50%);
    margin-top: -1px;
    color: @primary-color;
  }
}

.border-input() {
  cursor: default;
  background-color: @white-color;
  border-radius: @border-radius;
  border: @border;
  vertical-align: top;
  transition: all linear @transition-time;
  padding: 2px 2px 0px 2px;
  font-size: @font-size-mini;
  position: relative;
  line-height: 1.5;
  box-sizing: border-box;
  &:hover {
    border-color: lighten(@primary-color, 10%);
  }
  &.@{pop-ref-prefix}, &.focusing {
    border-color: @primary-color;
    box-shadow: 0 0 0 2px fade(@primary-color, 20%);
  }
}


.border-input-inside-input() {
  flex: 1;
  min-width: 80px;
  width: auto;
  max-width: 100%;
  border-color: transparent !important;
  line-height: 24px;
  height: 24px;
  margin-bottom: 2px;
  padding-left: 2px;
  &:focus{
    box-shadow: none !important;
  }
}

.border-input-disabled() {
  background-color: @gray4-color;
  color: @dark-color;
  border-color: @gray1-color;
  &:hover {
    border-color: @gray1-color;
  }
}