index.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
  2. /* stylelint-disable no-duplicate-selectors */
  3. .ant-progress {
  4. box-sizing: border-box;
  5. margin: 0;
  6. padding: 0;
  7. color: rgba(0, 0, 0, 0.85);
  8. font-size: 14px;
  9. font-variant: tabular-nums;
  10. line-height: 1.5715;
  11. list-style: none;
  12. font-feature-settings: 'tnum';
  13. display: inline-block;
  14. }
  15. .ant-progress-line {
  16. position: relative;
  17. width: 100%;
  18. font-size: 14px;
  19. }
  20. .ant-progress-steps {
  21. display: inline-block;
  22. }
  23. .ant-progress-steps-outer {
  24. display: flex;
  25. flex-direction: row;
  26. align-items: center;
  27. }
  28. .ant-progress-steps-item {
  29. flex-shrink: 0;
  30. min-width: 2px;
  31. margin-right: 2px;
  32. background: #f3f3f3;
  33. transition: all 0.3s;
  34. }
  35. .ant-progress-steps-item-active {
  36. background: #1890ff;
  37. }
  38. .ant-progress-small.ant-progress-line,
  39. .ant-progress-small.ant-progress-line .ant-progress-text .anticon {
  40. font-size: 12px;
  41. }
  42. .ant-progress-outer {
  43. display: inline-block;
  44. width: 100%;
  45. margin-right: 0;
  46. padding-right: 0;
  47. }
  48. .ant-progress-show-info .ant-progress-outer {
  49. margin-right: calc(-2em - 8px);
  50. padding-right: calc(2em + 8px);
  51. }
  52. .ant-progress-inner {
  53. position: relative;
  54. display: inline-block;
  55. width: 100%;
  56. overflow: hidden;
  57. vertical-align: middle;
  58. background-color: #f5f5f5;
  59. border-radius: 100px;
  60. }
  61. .ant-progress-circle-trail {
  62. stroke: #f5f5f5;
  63. }
  64. .ant-progress-circle-path {
  65. animation: ant-progress-appear 0.3s;
  66. }
  67. .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path {
  68. stroke: #1890ff;
  69. }
  70. .ant-progress-success-bg,
  71. .ant-progress-bg {
  72. position: relative;
  73. background-color: #1890ff;
  74. border-radius: 100px;
  75. transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;
  76. }
  77. .ant-progress-success-bg {
  78. position: absolute;
  79. top: 0;
  80. left: 0;
  81. background-color: #52c41a;
  82. }
  83. .ant-progress-text {
  84. display: inline-block;
  85. width: 2em;
  86. margin-left: 8px;
  87. color: rgba(0, 0, 0, 0.85);
  88. font-size: 1em;
  89. line-height: 1;
  90. white-space: nowrap;
  91. text-align: left;
  92. vertical-align: middle;
  93. word-break: normal;
  94. }
  95. .ant-progress-text .anticon {
  96. font-size: 14px;
  97. }
  98. .ant-progress-status-active .ant-progress-bg::before {
  99. position: absolute;
  100. top: 0;
  101. right: 0;
  102. bottom: 0;
  103. left: 0;
  104. background: #fff;
  105. border-radius: 10px;
  106. opacity: 0;
  107. animation: ant-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
  108. content: '';
  109. }
  110. .ant-progress-status-exception .ant-progress-bg {
  111. background-color: #ff4d4f;
  112. }
  113. .ant-progress-status-exception .ant-progress-text {
  114. color: #ff4d4f;
  115. }
  116. .ant-progress-status-exception .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path {
  117. stroke: #ff4d4f;
  118. }
  119. .ant-progress-status-success .ant-progress-bg {
  120. background-color: #52c41a;
  121. }
  122. .ant-progress-status-success .ant-progress-text {
  123. color: #52c41a;
  124. }
  125. .ant-progress-status-success .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path {
  126. stroke: #52c41a;
  127. }
  128. .ant-progress-circle .ant-progress-inner {
  129. position: relative;
  130. line-height: 1;
  131. background-color: transparent;
  132. }
  133. .ant-progress-circle .ant-progress-text {
  134. position: absolute;
  135. top: 50%;
  136. left: 50%;
  137. width: 100%;
  138. margin: 0;
  139. padding: 0;
  140. color: rgba(0, 0, 0, 0.85);
  141. font-size: 1em;
  142. line-height: 1;
  143. white-space: normal;
  144. text-align: center;
  145. transform: translate(-50%, -50%);
  146. }
  147. .ant-progress-circle .ant-progress-text .anticon {
  148. font-size: 1.16666667em;
  149. }
  150. .ant-progress-circle.ant-progress-status-exception .ant-progress-text {
  151. color: #ff4d4f;
  152. }
  153. .ant-progress-circle.ant-progress-status-success .ant-progress-text {
  154. color: #52c41a;
  155. }
  156. @keyframes ant-progress-active {
  157. 0% {
  158. transform: translateX(-100%) scaleX(0);
  159. opacity: 0.1;
  160. }
  161. 20% {
  162. transform: translateX(-100%) scaleX(0);
  163. opacity: 0.5;
  164. }
  165. 100% {
  166. transform: translateX(0) scaleX(1);
  167. opacity: 0;
  168. }
  169. }
  170. .ant-progress-rtl {
  171. direction: rtl;
  172. }
  173. .ant-progress-rtl.ant-progress-show-info .ant-progress-outer {
  174. margin-right: 0;
  175. margin-left: calc(-2em - 8px);
  176. padding-right: 0;
  177. padding-left: calc(2em + 8px);
  178. }
  179. .ant-progress-rtl .ant-progress-success-bg {
  180. right: 0;
  181. left: auto;
  182. }
  183. .ant-progress-rtl.ant-progress-line .ant-progress-text,
  184. .ant-progress-rtl.ant-progress-steps .ant-progress-text {
  185. margin-right: 8px;
  186. margin-left: 0;
  187. text-align: right;
  188. }