progress.wxss 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. .t-float-left {
  2. float: left;
  3. }
  4. .t-float-right {
  5. float: right;
  6. }
  7. @keyframes tdesign-fade-out {
  8. from {
  9. opacity: 1;
  10. }
  11. to {
  12. opacity: 0;
  13. }
  14. }
  15. .hotspot-expanded.relative {
  16. position: relative;
  17. }
  18. .hotspot-expanded::after {
  19. content: '';
  20. display: block;
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. transform: scale(1.5);
  27. }
  28. .t-progress__inner {
  29. display: flex;
  30. align-items: center;
  31. min-height: 64rpx;
  32. }
  33. .t-progress__bar {
  34. position: relative;
  35. flex: 1;
  36. height: 8rpx;
  37. background: #e7e7e7;
  38. }
  39. .t-progress__bar-percent {
  40. position: absolute;
  41. top: 0;
  42. height: 100%;
  43. background: #0052d9;
  44. transition: all 0.3s ease-out;
  45. }
  46. .t-progress__label {
  47. display: inline-block;
  48. width: 84rpx;
  49. text-align: right;
  50. margin-left: 32rpx;
  51. font-size: 32rpx;
  52. color: rgba(0, 0, 0, 0.9);
  53. line-height: 48rpx;
  54. }
  55. .t-progress--status--active .t-progress__bar-percent::before {
  56. position: absolute;
  57. top: 0;
  58. right: 0;
  59. bottom: 0;
  60. left: 0;
  61. z-index: 1;
  62. content: '';
  63. animation: progress-active-animation 2s cubic-bezier(0.23, 0.99, 0.86, 0.2) infinite;
  64. background: #fff;
  65. opacity: 0.2;
  66. }
  67. .t-progress--status--success .t-progress__bar-percent {
  68. background: #078d5c;
  69. }
  70. .t-progress--status--warning .t-progress__bar-percent {
  71. background: #ed7b2f;
  72. }
  73. .t-progress--status--warning .t-progress__label {
  74. color: #ed7b2f;
  75. }
  76. .t-progress--status--error .t-progress__bar-percent {
  77. background: #e34d59;
  78. }
  79. .t-progress--status--error .t-progress__label {
  80. color: #e34d59;
  81. }
  82. @keyframes progress-active-animation {
  83. 0% {
  84. width: 0;
  85. opacity: 0.1;
  86. }
  87. 35% {
  88. width: 50%;
  89. opacity: 0.4;
  90. }
  91. 100% {
  92. width: 100%;
  93. opacity: 0;
  94. }
  95. }