step-item.wxss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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-steps-item {
  29. flex: 1;
  30. vertical-align: top;
  31. position: relative;
  32. display: flex;
  33. }
  34. .t-steps-item__circle--default {
  35. color: var(--td-step-item-default-circle-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  36. background-color: var(--td-step-item-default-circle-bg, var(--td-gray-color-1, #f3f3f3));
  37. }
  38. .t-steps-item__title--default {
  39. color: var(--td-step-item-default-title-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  40. }
  41. .t-steps-item__icon--default {
  42. color: var(--td-step-item-default-icon-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  43. }
  44. .t-steps-item__dot--default {
  45. border-color: var(--td-step-item-default-dot-border-color, var(--td-gray-color-5, #c5c5c5));
  46. }
  47. .t-steps-item__circle--process {
  48. color: var(--td-step-item-process-circle-color, var(--td-white-color-1, #fff));
  49. background-color: var(--td-step-item-process-circle-bg, var(--td-primary-color, #0052d9));
  50. }
  51. .t-steps-item__title--process {
  52. color: var(--td-step-item-process-title-color, var(--td-primary-color, #0052d9));
  53. }
  54. .t-steps-item__icon--process {
  55. color: var(--td-step-item-process-icon-color, var(--td-primary-color, #0052d9));
  56. }
  57. .t-steps-item__dot--process {
  58. border-color: var(--td-step-item-process-dot-border-color, var(--td-primary-color, #0052d9));
  59. }
  60. .t-steps-item__circle--finish {
  61. color: var(--td-step-item-finish-circle-color, var(--td-primary-color, #0052d9));
  62. background-color: var(--td-step-item-finish-circle-bg, var(--td-primary-color-1, #ecf2fe));
  63. }
  64. .t-steps-item__title--finish {
  65. color: var(--td-step-item-finish-title-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9)));
  66. }
  67. .t-steps-item__icon--finish {
  68. color: var(--td-step-item-finish-icon-color, var(--td-primary-color, #0052d9));
  69. }
  70. .t-steps-item__dot--finish {
  71. border-color: var(--td-step-item-finish-dot-border-color, var(--td-primary-color, #0052d9));
  72. }
  73. .t-steps-item__circle--error {
  74. color: var(--td-step-item-error-circle-color, var(--td-error-color, var(--td-error-color-6, #e34d59)));
  75. background-color: var(--td-step-item-error-circle-bg, var(--td-error-color-1, #fdecee));
  76. }
  77. .t-steps-item__title--error {
  78. color: var(--td-step-item-error-title-color, var(--td-error-color, var(--td-error-color-6, #e34d59)));
  79. }
  80. .t-steps-item__icon--error {
  81. color: var(--td-step-item-error-icon-color, var(--td-error-color, var(--td-error-color-6, #e34d59)));
  82. }
  83. .t-steps-item__dot--error {
  84. border-color: var(--td-step-item-error-dot-border-color, var(--td-error-color, var(--td-error-color-6, #e34d59)));
  85. }
  86. .t-steps-item--horizontal {
  87. flex-direction: column;
  88. justify-content: center;
  89. align-items: center;
  90. }
  91. .t-steps-item__anchor {
  92. display: flex;
  93. align-items: center;
  94. justify-content: center;
  95. }
  96. .t-steps-item__anchor--vertical {
  97. width: var(--td-step-item-circle-size, 44rpx);
  98. height: var(--td-step-item-circle-size, 44rpx);
  99. }
  100. .t-steps-item__circle {
  101. display: flex;
  102. justify-content: center;
  103. align-items: center;
  104. width: var(--td-step-item-circle-size, 44rpx);
  105. height: var(--td-step-item-circle-size, 44rpx);
  106. text-align: center;
  107. border-radius: 50%;
  108. font-size: var(--td-step-item-circle-font-size, 28rpx);
  109. }
  110. .t-steps-item__icon {
  111. z-index: 1;
  112. vertical-align: top;
  113. font-size: var(--td-font-size-base, 28rpx);
  114. position: relative;
  115. }
  116. .t-steps-item__icon--finsh,
  117. .t-steps-item__icon--process {
  118. color: var(--td-primary-color, #0052d9);
  119. }
  120. .t-steps-item__dot {
  121. width: var(--td-step-item-dot-size, 16rpx);
  122. height: var(--td-step-item-dot-size, 16rpx);
  123. border-radius: 50%;
  124. border-width: 1px;
  125. border-style: solid;
  126. box-sizing: border-box;
  127. }
  128. .t-steps-item__dot--finish {
  129. background-color: var(--td-step-item-process-dot-border-color, var(--td-primary-color, #0052d9));
  130. }
  131. .t-steps-item__dot--error {
  132. background-color: var(--td-step-item-error-dot-border-color, var(--td-error-color, var(--td-error-color-6, #e34d59)));
  133. }
  134. .t-steps-item__content {
  135. text-align: center;
  136. }
  137. .t-steps-item__content--horizontal {
  138. max-width: 80px;
  139. margin-top: 16rpx;
  140. }
  141. .t-steps-item__content--vertical {
  142. margin-left: 16rpx;
  143. flex: 1;
  144. padding-bottom: 32rpx;
  145. }
  146. .t-steps-item__content--vertical.t-steps-item__content--last {
  147. padding-bottom: 0;
  148. }
  149. .t-steps-item__title {
  150. position: relative;
  151. line-height: var(--td-step-item-circle-size, 44rpx);
  152. font-size: var(--td-font-size-base, 28rpx);
  153. }
  154. .t-steps-item__title--process {
  155. font-weight: 600;
  156. }
  157. .t-steps-item__title--vertical {
  158. text-align: left;
  159. display: flex;
  160. align-items: center;
  161. justify-content: space-between;
  162. margin-bottom: 8rpx;
  163. }
  164. .t-steps-item__description {
  165. color: var(--td-step-item-descrition-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  166. line-height: 40rpx;
  167. font-size: var(--td-font-size-s, 24rpx);
  168. }
  169. .t-steps-item__description--vertical {
  170. text-align: left;
  171. }
  172. .t-steps-item__extra:not(:empty) {
  173. margin-top: 16rpx;
  174. }
  175. .t-steps-item__line {
  176. background-color: var(--td-step-item-line-color, var(--td-gray-color-4, #dcdcdc));
  177. content: '';
  178. display: block;
  179. position: absolute;
  180. }
  181. .t-steps-item__line--horizontal {
  182. height: 1px;
  183. transform: translateY(-50%);
  184. width: calc(100% - 32rpx - var(--td-step-item-circle-size, 44rpx));
  185. top: calc(var(--td-step-item-circle-size, 44rpx) / 2 + 1px);
  186. left: calc(50% + var(--td-step-item-circle-size, 44rpx) / 2 + 16rpx);
  187. }
  188. .t-steps-item__line--horizontal.t-steps-item__line--dot {
  189. top: calc(var(--td-step-item-dot-size, 16rpx) / 2);
  190. }
  191. .t-steps-item__line--finish {
  192. background-color: var(--td-step-item-finish-line-color, var(--td-primary-color, #0052d9));
  193. }
  194. .t-steps-item__line--vertical {
  195. height: calc(100% - 32rpx - var(--td-step-item-circle-size, 44rpx));
  196. width: 1px;
  197. transform: translateX(-50%);
  198. left: calc(var(--td-step-item-circle-size, 44rpx) / 2);
  199. top: calc(var(--td-step-item-circle-size, 44rpx) + 16rpx);
  200. }
  201. .t-steps-item__line--vertical.t-steps-item__line--dot {
  202. top: var(--td-step-item-circle-size, 44rpx);
  203. height: calc(100% - var(--td-step-item-circle-size, 44rpx));
  204. }
  205. :host {
  206. flex: 1;
  207. vertical-align: top;
  208. position: relative;
  209. align-self: flex-start;
  210. width: inherit;
  211. }