/*
 * @Author: 焦质晔
 * @Date: 2021-02-09 09:27:46
 * @Last Modified by: 焦质晔
 * @Last Modified time: 2024-11-05 19:13:59
 */
@use '../../style/src/themes' as *;

$prefix: '#{$qm-prefix}-tabs';

.#{$prefix} {
  position: relative;
  .#{$prefix}__extra {
    position: absolute;
    display: flex;
    align-items: center;
    height: 34px;
    right: 0;
    top: 0;
    z-index: 2;
  }
  .el-tabs__header.is-top {
    margin-bottom: $margin-base;
  }
  .el-tabs__nav-wrap {
    .el-tabs__item {
      height: 34px;
      line-height: 34px;
      // &::before {
      //   content: ' ';
      //   display: inline-block;
      //   width: $margin-base;
      // }
      // &::after {
      //   content: ' ';
      //   display: inline-block;
      //   width: $margin-base;
      // }
    }
    &.is-top,
    &.is-bottom {
      &::after {
        height: 0;
        background: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
      }
    }
    &.is-left,
    &.is-right {
      &::after {
        width: 0;
        background: none;
        border-right: 1px solid rgba(0, 0, 0, 0.07);
      }
    }
  }
  .el-tabs__content {
    position: static;
  }
  // 40  36  32  28
  &--large {
    .#{$prefix}__extra {
      height: 40px;
    }
    .el-tabs__nav-wrap {
      .el-tabs__item {
        height: 40px;
        line-height: 40px;
      }
    }
  }
  &--small {
    .#{$prefix}__extra {
      height: 28px;
      font-size: $font-size-sm;
    }
    .el-tabs__nav-wrap {
      .el-tabs__item {
        height: 28px;
        line-height: 28px;
        font-size: $font-size-sm;
      }
    }
  }
}
