@use "sass:color";

.tabs {
  @include flexbox();
  position: relative;
  height: 2.7rem;
  background-color: $grey-dark;
  margin: 0 auto;
  width: calc(100% - 1px);
  white-space: nowrap;

  .tab {
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    display: block;
    float: left;
    text-align: center;
    line-height:  3rem;
    height:  2.7rem;
    padding: 0 20px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .8px;
    width: 15%;

    a {
      color: $tabs-text-color;
      display: block;
      width: 100%;
      height: 100%;
      @include transition( color .28s ease);
      &:hover {
        color: color.adjust($tabs-text-color, $lightness: 20%);
      }
    }

    &.disabled a {
      color: color.adjust($tabs-text-color, $lightness: 20%);
      cursor: default;
    }
  }
  .indicator {
    position: absolute;
    top: 0;
    height: 3px;
    background-color: white;
    will-change: left, right;
  }
}

.tabs .tab { padding: 0; }

