index.scss 712 B

123456789101112131415161718192021222324252627282930313233343536
  1. .switch-box {
  2. position: relative;
  3. display: flex;
  4. width: 170rpx;
  5. height: 60rpx;
  6. background: #F5F5F5;
  7. border-radius: 30rpx;
  8. view {
  9. flex: 1;
  10. height: 60rpx;
  11. text-align: center;
  12. line-height: 60rpx;
  13. z-index: 2;
  14. font-size: 24rpx;
  15. font-family: PingFang SC-Regular, PingFang SC;
  16. color: #999999;
  17. }
  18. .active {
  19. font-size: 24rpx;
  20. color: #FFFFFF;
  21. }
  22. .bg {
  23. /* width: ;
  24. height: 52px; */
  25. position: absolute;
  26. width: calc(50% - 4px);
  27. height: calc(100% - 8rpx);
  28. background: #FA8C16;
  29. border-radius: 30rpx;
  30. top: 4rpx;
  31. z-index: 1;
  32. }
  33. }