@import "../scss/variable";
@mixin tab-base {
    flex: 1 1 80px;
    height: 1rem;
    line-height: 1rem;
    padding: 0;
    // font-size: .28rem;
    font-size: .3rem;
    vertical-align: middle;
    text-align: center;
    transition: all  $animation-duration-base ease-out;
    overflow: hidden;
    cursor: pointer;
    >a {
        display: inline-block;
        // width: 1.2rem;
        width: 1.3rem;
        height: 100%;
        font-weight: bold;
        text-align: center;
        color: #333333;
    }
}

@mixin ne-tab {
     .#{$prefix}-tab {
         @include tab-base;
         &:hover {
             color: $primary-color;
         }
         &.#{$prefix}-tab-selected {
             color: $primary-color;
             >a {
                 color: #DF3031;
                 border-bottom: .04rem solid $primary-color;
             }
         }
         &.#{$prefix}-tab-disabled {
             color: $light-gray;
             cursor: not-allowed;
         }
     }

}

@mixin tabs-base {
    // position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    padding: 0 .3rem;
    margin-bottom: .1rem;
    border-bottom: 1px solid $gray-white;
    border-radius: $global-radius;
    background-color: #fff;
    transition: all  $animation-duration-base ease-out;
}

@mixin ne-tabs {
    .#{$prefix}-tabs {
        @include tabs-base;
        @include ne-tab;
    }
    .#{$prefix}-tabs-inkbar {
        display: none;
        height: .04rem;
        background-color: $primary-color;
        transition: all  $animation-duration-base ease-out;
    }
}
