@import "./../variable.scss";
.hx-tabbar {
  height: $height-regular;
  background-color: $color-gray-light;
  border-radius: $border-radius-md+1px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 6px rgba(0,0,0,.1);
  &.disabled {
    .item {
      cursor: not-allowed;
    }
  }
  .item {
    padding: 0 $pm-md;
    height: $height-regular;
    line-height: $height-regular;
    display: inline-block;
    border-radius: $border-radius-md;
    font-size: $font-sm;
    border: none;
    cursor: default;
    vertical-align: top;
    position: relative;
    z-index: 2;
    transition: color .4s;
    &:hover {
      color: #888;
    }
    &.selected {
      color: white;
      &:hover {
        color: white;
      }
    }
  }
  .move-item {
    z-index: 0;
    position: absolute;
    bottom: 0;
    border-radius: $border-radius-md;
    height: 100%;
    background-color: $color-main;
    transition: left .4s;
    display: block;
  }
  &.bar {
    background-color: transparent;
    box-shadow: inset 0 0 6px $color-main;
    .item.selected {
      color: $color-main;
    }
    .move-item {
      height: $pm-sm/2;
    }
  }
}
