TabBar.wxss 1.23 KB
/* components/TabBar/TabBar.wxss */
.tab {
  position: relative;
  background-color: #fff;
  height: var(--fontSize72);
  box-sizing: border-box;
  display: grid;
  align-items: center;
  font-size: var(--fontSize28);
  color: #999999;
}

.scroll {
  background-color: #fff;
  height: var(--fontSize72);
  box-sizing: border-box;
  color: #999999;
  width: 100%;
  display: flex;
  line-height: var(--fontSize72);
  font-size: 0;
}

.active {
  /* font-size: var(--fontSize32); */
  font-weight: 600;
  color: #2C66F7;
}

.tab .tab-item {
  position: relative;
  text-align: center;
}

.tab .tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -12rpx;
  left: 50%;
  transform: translateX(-50%);
  width: 64rpx;
  height: var(--fontSize4);
  background-color: #2c66f7;
  border-radius: var(--fontSize2) var(--fontSize2) 0 0;
}

.scroll .tab-item {
  width: fit-content;
  min-width: var(--fontSize144);
  height: 100%;
  flex-shrink: 0;
  font-size: var(--fontSize28);
  text-align: center;
  position: relative;
  padding: 0 var(--fontSize10);
}

.scroll .active::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64rpx;
  height: var(--fontSize4);
  background-color: #2C66F7;
  content: '';
}