Tab.wxss 1.07 KB
/* components/Tab/Tab.wxss */
@import "../../common.wxss";

.tab-box {
  display: flex;
  width: 100%;
  height: 92rpx;
  box-sizing: border-box;
  border-bottom: 1rpx solid #EAEBEF;
}
.tab-box.left{
  padding-left: 32rpx;
}
.left .tab{
  padding-right:40rpx;
}
.flex .tab {
  flex: 1;
}
.tab {
  position: relative;
  flex-shrink: 0;
}
.tab .text {
  height: 84rpx;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  color: #8A8C90;
  justify-content: center;
  margin: 0 24rpx;
  font-weight: 400;
  font-size: 28rpx;
  font-family: PingFangSC-Medium;
}
.left .text{
  justify-content: flex-start;
}
.flex .tab .text {
  padding: 0;
}

.tab.active .text {
  font-weight: 500;
  font-size: 28rpx;
  transition: all .25s;
  color: var(--btnColor);
}

.tab .line {
  width: 48rpx;
  height: var(--borderRadius);
  background: var(--btnColor);
  border-radius: 8rpx 8rpx 0 0;
  margin: 0 auto;
  transform: scale(0);
  transition: all .25s;
}

.tab.active .line {
  transform: scale(1);
}

.tab-box::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  color: transparent;
}