index.scss 735 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. .tab-radio-container {
  2. display: grid;
  3. gap: 16rpx;
  4. align-items: center;
  5. background-color: #ffffff;
  6. border-radius: 8rpx;
  7. padding: 4rpx;
  8. margin: 10rpx 0;
  9. width: 100%;
  10. box-sizing: border-box;
  11. }
  12. .tab-item {
  13. flex: 1;
  14. display: flex;
  15. justify-content: center;
  16. align-items: center;
  17. transition: all 0.3s ease;
  18. cursor: pointer;
  19. background-color: #f9f9f9;
  20. border:1px solid transparent;
  21. border-radius: 40rpx;
  22. padding:14rpx 20rpx;
  23. font-size: 24rpx;
  24. .tab-item__text {
  25. color: #484848;
  26. font-weight: 400;
  27. transition: all 0.3s ease;
  28. }
  29. }
  30. .tab-item--active {
  31. border:1px solid #2563eb;
  32. background-color: rgba(37, 99, 235, 0.1);
  33. .tab-item__text {
  34. color: #2563eb;
  35. font-weight: 500;
  36. }
  37. }