step.scss 9.5 KB

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