steps.scss 871 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. .cl-steps {
  2. padding: 20rpx 0;
  3. box-sizing: border-box;
  4. &::after,
  5. &::before {
  6. content: "";
  7. display: table;
  8. }
  9. &::after {
  10. clear: both;
  11. }
  12. }
  13. .cl-step {
  14. width: 25%;
  15. float: left;
  16. box-sizing: border-box;
  17. position: relative;
  18. &:not(.is-last)::after {
  19. content: "";
  20. display: block;
  21. height: 6rpx;
  22. width: calc(100% - 36rpx);
  23. position: absolute;
  24. top: calc(50% - 3rpx);
  25. left: calc(50% + 18rpx);
  26. background-color: #dfdfdf;
  27. border-radius: 6rpx;
  28. }
  29. &__title {
  30. font-size: 24rpx;
  31. }
  32. &__value {
  33. display: inline-block;
  34. height: 20rpx;
  35. width: 20rpx;
  36. border-radius: 50rpx;
  37. background-color: #dfdfdf;
  38. margin: 20rpx 0;
  39. justify-content: space-between;
  40. }
  41. &__description {
  42. font-size: 24rpx;
  43. }
  44. &.is-active {
  45. .cl-step__value {
  46. background-color: $uni-color-primary;
  47. }
  48. &:after {
  49. background-color: $uni-color-primary;
  50. }
  51. }
  52. }