@import "../style/var.less";
@import "../style/base.less";
.fe-tab {
  position: relative;
  overflow-x: hidden;
  user-select: none;
}
.fe-tab-wrap {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 99;
  overflow: hidden;
  scroll-behavior: smooth;
  height: @tab-default-height;
  &.line {
    &::after {
      border-width: 0px 0px @tab-line-width 0;
      border-color: @tab-line-color;
    }
  }
}
.fe-hairline {
  position: relative;

  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    pointer-events: none;
    box-sizing: border-box;
    border: 0 solid #e5e5e5;
  }
}
.fe-tab-nav {
  position: relative;
  display: flex;
  background: @tab-nav-color;
  font-size: @tab-nav-font-size;
  color: #333;
  text-align: center;
  overflow: hidden;
  overflow-x: auto;
  box-sizing: content-box;
  height: 100%;
  padding-bottom: 15px;
  &::-webkit-scrollbar {
    display: none;
  }
  .fe-tab-item {
    flex: 1;
    overflow-y: hidden;
    .fe-ellipsis;
    .fe-tab-item-label {
      position: relative;
      padding: 0 10%;
      .fe-tab-item-badge {
        position: absolute;
        height: 14px;
        line-height: 14px;
        background: @tab-badge-bg;
        border-radius: 12px;
        padding: 0px 4px;
        color: white;
        font-size: 12px;
        right: 0px;
        top: 1px;
        transform: scale(0.9);
      }
      .fe-tab-item-badge-dot {
        position: absolute;
        height: 10px;
        width: 10px;
        background: @tab-badge-bg;
        border-radius: 100%;
        right: 10%;
        top: 10%;
      }
    }
    span {
      box-sizing: content-box;
      display: inline-block;
    }
    &.fe-tab-item-active .fe-tab-item-label {
      position: relative;
      &::before {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        content: "";
        display: inline-block;
        height: 2px;
        background: @tab-default-color;
      }
      &.fe-tab-item-label-animated::before {
        content: none;
      }
      &.fe-tab-item-label-min {
        padding: 0;
      }
    }
    &.fe-tab-item-disabled {
      pointer-events: none;
      cursor: not-allowed;
      color: #ccc;
    }
  }
}
.fe-tab-line {
  // padding-top: @tab-default-height;
  .fe-tab-nav {
    .fe-tab-item {
      height: @tab-default-height;
      line-height: @tab-default-height;
      &.fe-tab-item-active {
        color: @tab-default-color;
      }
    }
  }
}
.fe-tab-card {
  padding-top: 32px;
  .fe-tab-wrap {
    height: 32px;
  }
  .fe-tab-nav {
    font-size: 14px;
    .fe-tab-item {
      height: @tab-card-height;
      line-height: @tab-card-height;
      color: @tab-default-color;
      border: 1px solid @tab-default-color;
      border-left: 0;
      &:first-child {
        border-left: 1px solid @tab-default-color;
      }
      &.fe-tab-item-active {
        background: @tab-default-color;
        color: @tab-card-active-color;
      }
      &.fe-tab-item-disabled {
        color: #ccc;
      }
    }
  }
}
.fe-tab-bar {
  height: 2px;
  box-sizing: border-box;
  background-color: @tab-default-color;
  position: absolute;
  left: 0;
  bottom: 15px;
  z-index: 1;
  transition: transform 0.3s ease-in-out;
  transform-origin: 0 0;
}
.fe-tab-main {
  font-size: 14px;
  &.fe-tab-main-animated {
    display: flex;
    -ms-flex-direction: row;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row;
    will-change: transform;
    transition: transform 0.3s ease-in-out;
    .fe-tab-content {
      flex-shrink: 0;
      width: 100%;
      transition: opacity 0.3s;
      opacity: 1;
    }
  }
}
