materialTab.sass 819 Bytes
/* packageStudy/pages/sceneMarket/components/materialTab/materialTab.wxss */
.scroll {
  width: 100%;
  height: 88rpx;
  border-bottom: 1rpx solid #eff0f2;
  background: #ffffff;
  box-shadow: inset 0 -2rpx 0 0 #0000001a;
  display: flex;

  .tab-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: 100%;
    flex-shrink: 0;
    font-size: 32rpx;
    color: #666;
    text-align: center;
    position: relative;
    padding: 0 24rpx;
    transition: all .15s;
  }

  .active {
    color: #2C66F7;
    font-weight: 500;
    &::after {
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      content: '';
      width: 40rpx;
      height: 8rpx;
      border-radius: 596rpx;
      background: #2C66F7;
    }
  }
}