good-tab.wxss 1.03 KB
/* components/Tab/Tab.wxss */
@import "/assets/style/common.wxss";


.tab-box {
  display: flex;
  height: 68rpx;
  width: 100%;
  box-sizing: border-box;
}
.tab-box ::-webkit-scrollbar{
  display: none;
  width: 0;
  height: 0;
  color: transparent;
}
.tab-box.left {
  padding-left: 32rpx;
}

.left .tab {
  padding-right: 40rpx;
  flex-shrink: 0;
}

.flex .tab {
  flex: 1;
}

.tab {
  position: relative;
}

.tab .text {
  height: 44rpx;
  box-sizing: border-box;
  color: #23272F;
  font-size: 32rpx;
  margin-bottom: 8rpx;
  font-weight: 400;
}

.left .text {
  justify-content: flex-start;
}

.flex .tab .text {
  padding: 0;
}

.tab.active .text {
  font-weight: 500;
  transition: all .25s;
  color: #0A0D14;
}

.tab .line {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: all .25s;
}

.tab .line .line-image {
  width: 40rpx;
  height: 16rpx;
}

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

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