step-item.wxss 7.6 KB

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