@import '../../style/';

.hiui-tabs {
  position: relative;
}

.hiui-tabs-bar {
  position: relative;
  margin-bottom: 15px;
  border-bottom: 1px solid _grey_light;
  white-space: nowrap;

  &-over {
    padding: 0 12px;
  }

  &-scroll {
    float: left;
    transition: transform .3s;
  }

  &-nav {
    width: 100%;
    overflow: hidden;
  }

  &-prev, &-next {
    position: absolute;
    top: 0;
    height: 100%;
    line-height: _tabs_height;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;

    &.disabled {
      opacity: .2;
      cursor: not-allowed;
    }
  }

  &-prev {
    left: 0;
  }

  &-next {
    right: 0;
  }
}

.hiui-tabs-bar-item {
  position: relative;
  height: _tabs_height;
  line-height: _tabs_height;
  display: inline-block;
  text-align: center;
  font-size: 14px;
  color: #777;
  cursor: pointer;

  &-padding {
    padding: 0 15px;
  }

  &-no_padding {
    padding: 0;

    &:not(:last-child) {
      margin-right: 30px;
    }
  }

  &-fix_width {
    padding: 0;
  }

  &:hover {
    color: #333;
  }

  &.active {
    color: _tabs_active_color;
    border-bottom: 2px solid _tabs_active_color;
  }

  &.disabled {
    opacity: .2;
    cursor: not-allowed;
  }

  .hiui-icon {
    font-size: 16px;
    margin-right: 6px;
  }
}