step-item.wxss 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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. }
  33. .t-steps-item__inner {
  34. position: relative;
  35. }
  36. .t-steps-item__icon {
  37. vertical-align: top;
  38. font-size: 28rpx;
  39. position: relative;
  40. color: #ddd;
  41. }
  42. .t-steps-item__icon-number {
  43. display: block;
  44. display: flex;
  45. justify-content: center;
  46. align-items: center;
  47. width: 24px;
  48. height: 24px;
  49. text-align: center;
  50. border: 1px solid #c5c5c5;
  51. border-radius: 50%;
  52. color: #c5c5c5;
  53. }
  54. .t-steps-item__content {
  55. text-align: center;
  56. }
  57. .t-steps-item__title {
  58. position: relative;
  59. color: rgba(0, 0, 0, 0.26);
  60. line-height: 22px;
  61. font-size: 28rpx;
  62. text-align: center;
  63. margin-bottom: 4px;
  64. font-weight: 700;
  65. }
  66. .t-steps-item__description {
  67. color: rgba(0, 0, 0, 0.4);
  68. line-height: 20px;
  69. font-size: 24rpx;
  70. }
  71. .t-steps-item__extra:not(:empty) {
  72. margin-top: 16rpx;
  73. }
  74. .t-step--horizontal .t-steps-item__content {
  75. max-width: 80px;
  76. margin-top: 16rpx;
  77. }
  78. .t-step--horizontal .t-steps-item__inner .t-steps-item-wrapper {
  79. display: flex;
  80. flex-direction: column;
  81. justify-content: center;
  82. align-items: center;
  83. }
  84. .t-step--horizontal .t-steps-item--finish .t-steps-item__icon-number {
  85. border-color: #0052d9;
  86. color: #0052d9;
  87. }
  88. .t-step--horizontal .t-steps-item--finish .t-steps-item__title {
  89. color: rgba(0, 0, 0, 0.9);
  90. }
  91. .t-step--horizontal .t-steps-item--process .t-steps-item__icon-number {
  92. background: #0052d9;
  93. color: #fff;
  94. border-color: #0052d9;
  95. }
  96. .t-step--horizontal .t-steps-item--process .t-steps-item__title {
  97. color: #0052d9;
  98. }
  99. .t-step--horizontal .t-steps-item--error .t-steps-item__icon-number {
  100. color: #e34d59;
  101. border-color: #e34d59;
  102. }
  103. .t-step--horizontal .t-steps-item--error .t-steps-item__title {
  104. color: #e34d59;
  105. }
  106. .t-step--horizontal .t-steps-item--default .t-steps-item__icon-number {
  107. border-color: #c5c5c5;
  108. color: #c5c5c5;
  109. }
  110. .t-step--horizontal .t-steps-item--default .t-steps-item__title,
  111. .t-step--horizontal .t-steps-item--default .t-steps-item__description {
  112. color: rgba(0, 0, 0, 0.26);
  113. }
  114. .t-step--horizontal.t-step--not-last-child .t-steps-item__inner:after {
  115. content: '';
  116. display: block;
  117. height: 1px;
  118. background: #0052d9;
  119. position: absolute;
  120. width: calc(100% - 24px - 2px);
  121. left: calc(50% + 24px / 2 + 1px);
  122. top: 13px;
  123. }
  124. .t-step--horizontal.t-step--not-last-child .t-steps-item__inner.t-steps-item__inner--large:after {
  125. top: calc(40px / 2);
  126. width: calc(100% - 40px - 2px);
  127. left: calc(50% + 40px / 2 + 1px);
  128. }
  129. .t-step--horizontal.t-step--not-last-child.t-step--readonly .t-steps-item--process .t-steps-item__inner:after,
  130. .t-step--horizontal.t-step--not-last-child.t-step--readonly .t-steps-item--error .t-steps-item__inner:after,
  131. .t-step--horizontal.t-step--not-last-child.t-step--readonly .t-steps-item--default .t-steps-item__inner:after {
  132. background: #c5c5c5;
  133. }
  134. .t-step--vertical .t-steps-item {
  135. position: relative;
  136. }
  137. .t-step--vertical .t-steps-item__inner :only-child.t-steps-item-wrapper {
  138. padding-bottom: 50rpx;
  139. }
  140. .t-step--vertical .t-steps-item-wrapper {
  141. display: flex;
  142. flex-direction: row;
  143. align-items: flex-start;
  144. justify-content: flex-start;
  145. }
  146. .t-step--vertical .t-steps-item-wrapper + .t-steps-item__sub-wrapper:not(:empty) {
  147. padding-top: 32rpx;
  148. padding-bottom: 48rpx;
  149. }
  150. .t-step--vertical .t-steps-item-sub {
  151. display: flex;
  152. width: 100%;
  153. height: 40rpx;
  154. align-items: center;
  155. padding-bottom: 8rpx;
  156. font-size: 24rpx;
  157. color: #0052d9;
  158. font-weight: 500;
  159. }
  160. .t-step--vertical .t-steps-item-sub-dot {
  161. display: flex;
  162. justify-content: center;
  163. width: 24px;
  164. text-align: center;
  165. border: 1px solid transparent;
  166. color: #c5c5c5;
  167. z-index: 2;
  168. }
  169. .t-step--vertical .t-steps-item-sub-dot-item {
  170. width: 8px;
  171. height: 8px;
  172. border-radius: 50%;
  173. background-color: #0052d9;
  174. }
  175. .t-step--vertical .t-steps-item-sub .t-steps-item-sub__content {
  176. margin-left: 16rpx;
  177. }
  178. .t-step--vertical .t-steps-item-sub-status--default {
  179. color: #c5c5c5;
  180. }
  181. .t-step--vertical .t-steps-item-sub-status--default .t-steps-item-sub-dot-item {
  182. background-color: #c5c5c5;
  183. }
  184. .t-step--vertical .t-steps-item-sub-status--finish {
  185. color: #000000;
  186. }
  187. .t-step--vertical .t-steps-item-sub-status--finish .t-steps-item-sub-dot-item {
  188. background-color: #0052d9;
  189. }
  190. .t-step--vertical .t-steps-item-sub-status--process {
  191. color: #0052d9;
  192. }
  193. .t-step--vertical .t-steps-item-sub-status--process .t-steps-item-sub-dot-item {
  194. background-color: #0052d9;
  195. }
  196. .t-step--vertical .t-steps-item-sub-status--error {
  197. color: #e34d59;
  198. }
  199. .t-step--vertical .t-steps-item-sub-status--error .t-steps-item-sub-dot-item {
  200. background-color: #e34d59;
  201. }
  202. .t-step--vertical .t-steps-item .t-steps-item-sub:last-child {
  203. padding-bottom: 0rpx;
  204. }
  205. .t-step--vertical .t-steps-item__content {
  206. margin-left: 16rpx;
  207. margin-right: 32rpx;
  208. flex: 1;
  209. }
  210. .t-step--vertical .t-steps-item__title {
  211. text-align: left;
  212. margin-top: 5px;
  213. line-height: 28rpx;
  214. margin-bottom: 16rpx;
  215. }
  216. .t-step--vertical .t-steps-item__description {
  217. text-align: left;
  218. }
  219. .t-step--vertical.t-step--default-anchor .t-steps-item--default .t-steps-item__icon-number {
  220. border-color: #c5c5c5;
  221. color: #c5c5c5;
  222. }
  223. .t-step--vertical.t-step--default-anchor .t-steps-item--finish .t-steps-item__icon-number {
  224. border-color: #0052d9;
  225. color: #0052d9;
  226. }
  227. .t-step--vertical.t-step--default-anchor .t-steps-item--finish .t-steps-item__title {
  228. color: rgba(0, 0, 0, 0.9);
  229. }
  230. .t-step--vertical.t-step--default-anchor .t-steps-item--process .t-steps-item__icon-number {
  231. background: #0052d9;
  232. color: #fff;
  233. border-color: #0052d9;
  234. }
  235. .t-step--vertical.t-step--default-anchor .t-steps-item--process .t-steps-item__title {
  236. color: #0052d9;
  237. }
  238. .t-step--vertical.t-step--default-anchor .t-steps-item--error .t-steps-item__icon-number {
  239. color: #e34d59;
  240. border-color: #e34d59;
  241. }
  242. .t-step--vertical.t-step--default-anchor .t-steps-item--error .t-steps-item__title {
  243. color: #e34d59;
  244. }
  245. .t-step--vertical.t-step--default-anchor.t-step--not-last-child .t-steps-item__inner::after {
  246. content: '';
  247. display: block;
  248. height: calc(100% - 24px - 2px);
  249. width: 1px;
  250. background: #c5c5c5;
  251. transform: translateX(-50%);
  252. position: absolute;
  253. left: 13px;
  254. top: 26px;
  255. }
  256. .t-step--vertical.t-step--default-anchor.t-step--not-last-child .t-steps-item--finish .t-steps-item__inner:after {
  257. background: #0052d9;
  258. }
  259. .t-step--vertical.t-step--default-anchor.t-step--not-last-child .t-steps-item--default .t-steps-item__inner:after {
  260. background: #c5c5c5;
  261. }
  262. .t-step--vertical.t-step--dot-anchor .t-steps-item__icon-dot {
  263. display: block;
  264. width: 12px;
  265. height: 12px;
  266. box-sizing: border-box;
  267. border: 2px solid #0052d9;
  268. border-radius: 50%;
  269. margin-top: 1px;
  270. }
  271. .t-step--vertical.t-step--dot-anchor .t-steps-item-sub-dot {
  272. width: 12px;
  273. box-sizing: border-box;
  274. border: 2px solid transparent;
  275. }
  276. .t-step--vertical.t-step--dot-anchor .t-steps-item__title {
  277. margin-top: 0;
  278. color: rgba(0, 0, 0, 0.9);
  279. }
  280. .t-step--vertical.t-step--dot-anchor.t-step--not-last-child .t-steps-item__inner::after {
  281. content: '';
  282. display: block;
  283. height: calc(100% - 12px);
  284. width: 1px;
  285. background: #ddd;
  286. transform: translateX(50%);
  287. position: absolute;
  288. left: 5px;
  289. top: 13px;
  290. }
  291. .t-steps-item__icon-number--large {
  292. width: 40px;
  293. height: 40px;
  294. }