step.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  1. .sw-toolbar-bottom {
  2. margin-top: 20px;
  3. margin-left: 5px;
  4. }
  5. /* ---------------------------------------------------------------------------------------------------------------- */
  6. .la-step-box {
  7. margin: 0 auto;
  8. }
  9. .la-step {
  10. box-sizing: border-box;
  11. padding: 0;
  12. color: rgba(0, 0, 0, .65);
  13. /*font-variant: tabular-nums;*/
  14. line-height: 1.5;
  15. list-style: none;
  16. /*font-feature-settings: "tnum";*/
  17. display: flex;
  18. width: 100%;
  19. font-size: 0;
  20. margin: 0 auto 30px;
  21. }
  22. .la-step-item {
  23. position: relative;
  24. display: inline-block;
  25. flex: 1 1;
  26. overflow: hidden;
  27. vertical-align: top
  28. }
  29. .la-step-item-container {
  30. outline: 0;
  31. border: 0!important;
  32. }
  33. .la-step-item:last-child {
  34. flex: none
  35. }
  36. .la-step-item:last-child > .la-step-item-container > .la-step-content > .la-step-title:after, .la-step-item:last-child > .la-step-item-container > .la-step-line {
  37. display: none
  38. }
  39. .la-step-content, .la-step-icons {
  40. display: inline-block;
  41. vertical-align: top
  42. }
  43. .la-step-icons {
  44. width: 32px;
  45. height: 32px;
  46. margin-right: 8px;
  47. font-size: 16px;
  48. line-height: 32px;
  49. text-align: center;
  50. border: 1px solid rgba(0, 0, 0, .25);
  51. border-radius: 32px;
  52. transition: background-color .3s, border-color .3s
  53. }
  54. .la-step-icons > .la-step-icon {
  55. position: relative;
  56. top: -1px;
  57. color: rgba(0,0,0,.25);
  58. line-height: 1
  59. }
  60. .la-step-line {
  61. position: absolute;
  62. top: 12px;
  63. left: 0;
  64. width: 100%;
  65. padding: 0 10px
  66. }
  67. .la-step-line:after {
  68. display: inline-block;
  69. width: 100%;
  70. height: 1px;
  71. background: #e8e8e8;
  72. border-radius: 1px;
  73. transition: background .3s;
  74. content: ""
  75. }
  76. .la-step-title {
  77. position: relative;
  78. display: inline-block;
  79. padding-right: 16px;
  80. color: rgba(0, 0, 0, .65);
  81. font-size: 16px;
  82. line-height: 32px
  83. }
  84. .la-step-title:after {
  85. position: absolute;
  86. top: 16px;
  87. left: 100%;
  88. display: block;
  89. width: 9999px;
  90. height: 1px;
  91. background: #e8e8e8;
  92. content: ""
  93. }
  94. .la-step-desc {
  95. color: rgba(0, 0, 0, .45);
  96. font-size: 14px
  97. }
  98. .active .la-step-icons {
  99. background-color: #fff;
  100. border-color: var(--primary)
  101. }
  102. .active .la-step-icons > .la-step-icon {
  103. color: var(--primary)
  104. }
  105. .active .la-step-icons > .la-step-icon .la-step-icon-dot {
  106. background: var(--primary)
  107. }
  108. .active > .la-step-item-container > .la-step-content > .la-step-title {
  109. color: rgba(0, 0, 0, .85)
  110. }
  111. .active > .la-step-item-container > .la-step-content > .la-step-title:after {
  112. background-color: #e8e8e8
  113. }
  114. .active > .la-step-item-container > .la-step-content > .la-step-desc {
  115. color: rgba(0, 0, 0, .65)
  116. }
  117. .active > .la-step-item-container > .la-step-line:after {
  118. background-color: #e8e8e8
  119. }
  120. .active .la-step-icons {
  121. background: var(--primary)
  122. }
  123. .active .la-step-icons > .la-step-icon {
  124. color: #fff
  125. }
  126. .active .la-step-title {
  127. font-weight: 500
  128. }
  129. .done .la-step-icons {
  130. background-color: #fff;
  131. border-color: var(--primary)
  132. }
  133. .done .la-step-icons > .la-step-icon {
  134. color: var(--primary)
  135. }
  136. .done .la-step-icons > .la-step-icon .la-step-icon-dot {
  137. background: var(--primary)
  138. }
  139. .done > .la-step-item-container > .la-step-content > .la-step-title {
  140. color: rgba(0, 0, 0, .65)
  141. }
  142. .done > .la-step-item-container > .la-step-content > .la-step-title:after {
  143. background-color: var(--primary)
  144. }
  145. .done > .la-step-item-container > .la-step-content > .la-step-desc {
  146. color: rgba(0, 0, 0, .45)
  147. }
  148. .done > .la-step-item-container > .la-step-line:after {
  149. background-color: var(--primary)
  150. }
  151. .danger .la-step-icons {
  152. background-color: #fff;
  153. border-color: var(--danger-dark)
  154. }
  155. .danger .la-step-icons > .la-step-icon {
  156. color: var(--danger-dark)
  157. }
  158. .danger .la-step-icons > .la-step-icon .la-step-icon-dot {
  159. background: var(--danger-dark)
  160. }
  161. .danger > .la-step-item-container > .la-step-content > .la-step-title {
  162. color: var(--danger-dark)
  163. }
  164. .danger > .la-step-item-container > .la-step-content > .la-step-title:after {
  165. background-color: #e8e8e8
  166. }
  167. .danger > .la-step-item-container > .la-step-content > .la-step-desc {
  168. color: var(--danger-dark)
  169. }
  170. .danger > .la-step-item-container > .la-step-line:after {
  171. background-color: #e8e8e8
  172. }
  173. .la-step-item.la-step-next-error .la-step-title:after {
  174. background: var(--danger-dark)
  175. }
  176. .la-step .la-step-item:not(.active) > .la-step-item-container[role=button] {
  177. cursor: pointer
  178. }
  179. .la-step .la-step-item:not(.active) > .la-step-item-container[role=button] .la-step-desc, .la-step .la-step-item:not(.active) > .la-step-item-container[role=button] .la-step-icons .la-step-icon, .la-step .la-step-item:not(.active) > .la-step-item-container[role=button] .la-step-title {
  180. transition: color .3s
  181. }
  182. .la-step .la-step-item:not(.active) > .la-step-item-container[role=button]:hover .la-step-desc .la-step .la-step-item:not(.active) > .la-step-item-container[role=button]:hover .la-step-title {
  183. color: var(--primary)
  184. }
  185. .la-step .la-step-item:not(.active) > .la-step-item-container[role=button]:hover .la-step-icons {
  186. border-color: var(--primary)
  187. }
  188. .la-step .la-step-item:not(.active) > .la-step-item-container[role=button]:hover .la-step-icons .la-step-icon {
  189. color: var(--primary)
  190. }
  191. .la-step-horizontal:not(.la-step-label-vertical) .la-step-item {
  192. margin-right: 16px;
  193. white-space: nowrap
  194. }
  195. .la-step-horizontal:not(.la-step-label-vertical) .la-step-item:last-child {
  196. margin-right: 0
  197. }
  198. .la-step-horizontal:not(.la-step-label-vertical) .la-step-item:last-child .la-step-title {
  199. padding-right: 0
  200. }
  201. .la-step-horizontal:not(.la-step-label-vertical) .la-step-line {
  202. display: none
  203. }
  204. .la-step-horizontal:not(.la-step-label-vertical) .la-step-desc {
  205. max-width: 140px;
  206. white-space: normal
  207. }
  208. .la-step-sm.la-step-horizontal:not(.la-step-label-vertical) .la-step-item {
  209. margin-right: 12px
  210. }
  211. .la-step-sm.la-step-horizontal:not(.la-step-label-vertical) .la-step-item:last-child {
  212. margin-right: 0
  213. }
  214. .la-step-sm .la-step-icons {
  215. width: 24px;
  216. height: 24px;
  217. font-size: 12px;
  218. line-height: 24px;
  219. text-align: center;
  220. border-radius: 24px
  221. }
  222. .la-step-sm .la-step-title {
  223. padding-right: 12px;
  224. font-size: 14px;
  225. line-height: 24px
  226. }
  227. .la-step-sm .la-step-title:after {
  228. top: 12px
  229. }
  230. .la-step-sm .la-step-desc {
  231. color: rgba(0, 0, 0, .45);
  232. font-size: 14px
  233. }
  234. .la-step-sm .la-step-line {
  235. top: 8px
  236. }
  237. @media (max-width: 540px) {
  238. .la-step-horizontal.la-step-label-horizontal {
  239. display: block
  240. }
  241. .la-step-box .nav-tabs > li {
  242. float: none;
  243. }
  244. .la-step-box .nav-tabs>li>a {
  245. padding: 0;
  246. }
  247. .la-step-horizontal.la-step-label-horizontal .la-step-item {
  248. display: block;
  249. overflow: visible
  250. }
  251. .la-step-horizontal.la-step-label-horizontal .la-step-icons {
  252. float: left;
  253. margin-right: 16px
  254. }
  255. .la-step-horizontal.la-step-label-horizontal .la-step-content {
  256. display: block;
  257. overflow: hidden
  258. }
  259. .la-step-horizontal.la-step-label-horizontal .la-step-title {
  260. line-height: 32px
  261. }
  262. .la-step-horizontal.la-step-label-horizontal .la-step-desc {
  263. padding-bottom: 12px
  264. }
  265. .la-step-horizontal.la-step-label-horizontal > .la-step-item > .la-step-item-container > .la-step-line {
  266. position: absolute;
  267. top: 0;
  268. left: 16px;
  269. width: 1px;
  270. height: 100%;
  271. padding: 38px 0 6px
  272. }
  273. .la-step-horizontal.la-step-label-horizontal > .la-step-item > .la-step-item-container > .la-step-line:after {
  274. width: 1px;
  275. height: 100%
  276. }
  277. .la-step-horizontal.la-step-label-horizontal > .la-step-item:not(:last-child) > .la-step-item-container > .la-step-line {
  278. display: none;
  279. }
  280. .la-step-horizontal.la-step-label-horizontal > .la-step-item > .la-step-item-container > .la-step-content > .la-step-title:after {
  281. display: none;
  282. }
  283. .la-step-horizontal.la-step-label-horizontal.la-step-sm .la-step-item-container .la-step-title {
  284. line-height: 24px
  285. }
  286. }
  287. .la-step-label-vertical .la-step-item {
  288. overflow: visible
  289. }
  290. .la-step-label-vertical .la-step-line {
  291. margin-left: 51px;
  292. padding: 3.5px 24px;
  293. left: 18px;
  294. top: 23px;
  295. }
  296. .la-step-label-vertical .la-step-content {
  297. display: block;
  298. width: 104px;
  299. margin-top: 8px;
  300. text-align: center
  301. }
  302. .la-step-label-vertical .la-step-icons {
  303. display: inline-block;
  304. margin-left: 36px
  305. }
  306. .la-step-label-vertical .la-step-title {
  307. padding-right: 0
  308. }
  309. .la-step-label-vertical .la-step-title:after {
  310. display: none
  311. }
  312. .la-step-label-vertical.la-step-sm:not(.la-step-dot) .la-step-icons {
  313. margin-left: 40px
  314. }
  315. .la-step-dot .la-step-title, .la-step-dot.la-step-sm .la-step-title {
  316. line-height: 1.5
  317. }
  318. .la-step-dot .la-step-line, .la-step-dot.la-step-sm .la-step-line {
  319. top: 2px;
  320. width: 100%;
  321. margin: 0 0 0 70px;
  322. padding: 0
  323. }
  324. .la-step-dot .la-step-line:after, .la-step-dot.la-step-sm .la-step-line:after {
  325. width: calc(100% - 20px);
  326. height: 3px;
  327. margin-left: 12px
  328. }
  329. .la-step-dot .la-step-item:first-child .la-step-icon-dot, .la-step-dot.la-step-sm .la-step-item:first-child .la-step-icon-dot {
  330. left: 2px
  331. }
  332. .la-step-dot .la-step-icons, .la-step-dot.la-step-sm .la-step-icons {
  333. width: 8px;
  334. height: 8px;
  335. margin-left: 67px;
  336. padding-right: 0;
  337. line-height: 8px;
  338. background: 0 0;
  339. border: 0
  340. }
  341. .la-step-dot .la-step-icons .la-step-icon-dot, .la-step-dot.la-step-sm .la-step-icons .la-step-icon-dot {
  342. position: relative;
  343. float: left;
  344. width: 100%;
  345. height: 100%;
  346. border-radius: 100px;
  347. transition: all .3s
  348. }
  349. .la-step-dot .la-step-icons .la-step-icon-dot:after, .la-step-dot.la-step-sm .la-step-icons .la-step-icon-dot:after {
  350. position: absolute;
  351. top: -12px;
  352. left: -26px;
  353. width: 60px;
  354. height: 32px;
  355. background: rgba(0, 0, 0, .001);
  356. content: ""
  357. }
  358. .la-step-dot .la-step-content, .la-step-dot.la-step-sm .la-step-content {
  359. width: 140px
  360. }
  361. .la-step-dot .active .la-step-icons, .la-step-dot.la-step-sm .active .la-step-icons {
  362. width: 10px;
  363. height: 10px;
  364. line-height: 10px
  365. }
  366. .la-step-dot .active .la-step-icons .la-step-icon-dot, .la-step-dot.la-step-sm .active .la-step-icons .la-step-icon-dot {
  367. top: -1px
  368. }
  369. .la-step-item a {
  370. font-weight: normal!important;
  371. }