@import '../../style/themes/index';
@import '../../style/mixins/index';

@tab-prefix-cls: ~'@{wd-prefix}-tabs';
@btn-prefix-cls: ~'@{wd-prefix}-btn';
// 文字型页签样式
.@{tab-prefix-cls}-text {
  > .@{tab-prefix-cls}-nav,
  > div > .@{tab-prefix-cls}-nav {
    .@{tab-prefix-cls}-tab {
      margin: 0;
      transition: all @animation-duration-slow @ease-in-out;
      color: @text-secondary;
      margin-left: @tabs-text-tab-margin-left;
      padding: @tabs-text-tab-padding;
      font-size: @font-size-sm;

      &-active {
        .@{tab-prefix-cls}-tab-btn {
          color: @text-primary;
        }
      }

      &-btn {
        line-height: @tabs-text-tab-btn-line-height;
      }

      &-disabled {
        .@{tab-prefix-cls}-tab-btn {
          color: @text-disable;
        }
      }

      &:not(.@{tab-prefix-cls}-tab-active):not(.@{tab-prefix-cls}-tab-disabled) {
        &:hover {
          .@{tab-prefix-cls}-tab-btn {
            color: @brand-text;

            &::before {
              display: none;
            }
          }
        }
      }
    }

    .@{btn-prefix-cls}.@{tab-prefix-cls}-nav-more,
    .@{btn-prefix-cls}.@{tab-prefix-cls}-nav-add {
      width: @tabs-text-nav-operations-nav-more-width;
      height: @tabs-text-nav-operations-nav-more-height;
      font-size: @tabs-text-nav-operations-nav-more-font-size;
    }

    .@{tab-prefix-cls}-ink-bar {
      visibility: hidden;
    }

    &::before {
      display: none;
    }
  }

  // ========================== Top & Bottom ==========================
  &.@{tab-prefix-cls}-top {
    > .@{tab-prefix-cls}-nav,
    > div > .@{tab-prefix-cls}-nav {
      .@{tab-prefix-cls}-tab {
        &:first-of-type {
          margin-left: 0;
        }
      }
    }
  }
  &.@{tab-prefix-cls}-bottom {
    > .@{tab-prefix-cls}-nav,
    > div > .@{tab-prefix-cls}-nav {
      .@{tab-prefix-cls}-tab {
        border-radius: @border-radius-base;
      }
    }
  }

  // ========================== Left & Right ==========================
  &.@{tab-prefix-cls}-left,
  &.@{tab-prefix-cls}-right {
    > .@{tab-prefix-cls}-nav {
      .@{tab-prefix-cls}-tab {
        justify-content: center;
        border-radius: @border-radius-base;
      }
    }
    > .@{tab-prefix-cls}-content-holder {
      border-left: 0;
      border-right: 0;
    }
  }
}
