progress.scss 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. .cl-progress {
  2. display: flex;
  3. align-items: center;
  4. min-height: 34rpx;
  5. &-bar {
  6. box-sizing: border-box;
  7. flex: 1;
  8. margin-right: 10rpx;
  9. &__outer {
  10. border-radius: 50rpx;
  11. background-color: #ebeef5;
  12. overflow: hidden;
  13. position: relative;
  14. }
  15. &__inner {
  16. position: absolute;
  17. left: 0;
  18. top: 0;
  19. height: 100%;
  20. background-color: $cl-color-primary;
  21. text-align: right;
  22. border-radius: 50rpx;
  23. line-height: 1;
  24. white-space: nowrap;
  25. transition: width 0.6s ease;
  26. }
  27. }
  28. &__text {
  29. display: inline-block;
  30. height: 34rpx;
  31. width: 100rpx;
  32. line-height: 34rpx;
  33. color: #606266;
  34. font-size: 24rpx;
  35. text-align: left;
  36. }
  37. &__icon {
  38. font-size: 30rpx;
  39. }
  40. &.is-success {
  41. .cl-progress-bar__inner {
  42. background-color: $cl-color-success;
  43. }
  44. .cl-progress__text {
  45. color: $cl-color-success;
  46. }
  47. }
  48. &.is-warning {
  49. .cl-progress-bar__inner {
  50. background-color: $cl-color-warning;
  51. }
  52. .cl-progress__text {
  53. color: $cl-color-warning;
  54. }
  55. }
  56. &.is-error {
  57. .cl-progress-bar__inner {
  58. background-color: $cl-color-error;
  59. }
  60. .cl-progress__text {
  61. color: $cl-color-error;
  62. }
  63. }
  64. }