@import '../../src/style/tools.css';

.bx-tab {
  position: relative;
  font-size: 14px;
  line-height: 1.2;
  color: var(--tab-color);
  background-color: var(--tab-bg-color);

  &::after {
    content: '';
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.2px; /* android 0.5px flex-shrink 0 不显示 */
    background-color: #e5e5e5;
    transform-origin: 0 100%;
    transform: scaleY(0.5);
  }

  & .bx-tab-scroller {
    position: relative;
    overflow: scroll;

    &::-webkit-scrollbar {
      display: none;
    }
  }

  & .bx-tab-wrap {
    display: flex;
    position: relative;
  }

  & .bx-tab-adaptive {
    & .bx-tab-item {
      flex: 1;
    }
  }

  & .bx-tab-line {
    position: absolute;
    bottom: 0;
    width: 21px;
    height: 4px;
    border-radius: 999px;
    background-color: var(--tab-line-color);
    transition-duration: 200ms;
    transform: translate3d(0, 0, 0);
  }
}
