step.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  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. border-color: $primary
  102. }
  103. .active .dcat-step-icons > .dcat-step-icon {
  104. color: $primary
  105. }
  106. .active .dcat-step-icons > .dcat-step-icon .dcat-step-icon-dot {
  107. background: $primary
  108. }
  109. .active > .dcat-step-item-container > .dcat-step-content > .dcat-step-title {
  110. color: rgba(0, 0, 0, .85)
  111. }
  112. .active > .dcat-step-item-container > .dcat-step-content > .dcat-step-title:after {
  113. background-color: #e8e8e8
  114. }
  115. .active > .dcat-step-item-container > .dcat-step-content > .dcat-step-desc {
  116. color: rgba(0, 0, 0, .65)
  117. }
  118. .active > .dcat-step-item-container > .dcat-step-line:after {
  119. background-color: #e8e8e8
  120. }
  121. .active .dcat-step-icons {
  122. background: $primary
  123. }
  124. .active .dcat-step-icons > .dcat-step-icon {
  125. color: #fff
  126. }
  127. .active .dcat-step-title {
  128. font-weight: 500
  129. }
  130. .done .dcat-step-icons {
  131. background-color: #fff;
  132. border-color: $primary
  133. }
  134. .done .dcat-step-icons > .dcat-step-icon {
  135. color: $primary
  136. }
  137. .done .dcat-step-icons > .dcat-step-icon .dcat-step-icon-dot {
  138. background: $primary
  139. }
  140. .done > .dcat-step-item-container > .dcat-step-content > .dcat-step-title {
  141. color: rgba(0, 0, 0, .65)
  142. }
  143. .done > .dcat-step-item-container > .dcat-step-content > .dcat-step-title:after {
  144. background-color: $primary
  145. }
  146. .done > .dcat-step-item-container > .dcat-step-content > .dcat-step-desc {
  147. color: rgba(0, 0, 0, .45)
  148. }
  149. .done > .dcat-step-item-container > .dcat-step-line:after {
  150. background-color: $primary
  151. }
  152. .danger .dcat-step-icons {
  153. background-color: #fff;
  154. border-color: $red-darker
  155. }
  156. .danger .dcat-step-icons > .dcat-step-icon {
  157. color: $red-darker
  158. }
  159. .danger .dcat-step-icons > .dcat-step-icon .dcat-step-icon-dot {
  160. background: $red-darker
  161. }
  162. .danger > .dcat-step-item-container > .dcat-step-content > .dcat-step-title {
  163. color: $red-darker
  164. }
  165. .danger > .dcat-step-item-container > .dcat-step-content > .dcat-step-title:after {
  166. background-color: #e8e8e8
  167. }
  168. .danger > .dcat-step-item-container > .dcat-step-content > .dcat-step-desc {
  169. color: $red-darker
  170. }
  171. .danger > .dcat-step-item-container > .dcat-step-line:after {
  172. background-color: #e8e8e8
  173. }
  174. .dcat-step-item.dcat-step-next-error .dcat-step-title:after {
  175. background: $red-darker
  176. }
  177. .dcat-step .dcat-step-item:not(.active) > .dcat-step-item-container[role=button] {
  178. cursor: pointer
  179. }
  180. .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 {
  181. transition: color .3s
  182. }
  183. .dcat-step .dcat-step-item:not(.active) > .dcat-step-item-container[role=button]:hover .dcat-step-desc .dcat-step .dcat-step-item:not(.active) > .dcat-step-item-container[role=button]:hover .dcat-step-title {
  184. color: $primary
  185. }
  186. .dcat-step .dcat-step-item:not(.active) > .dcat-step-item-container[role=button]:hover .dcat-step-icons {
  187. border-color: $primary
  188. }
  189. .dcat-step .dcat-step-item:not(.active) > .dcat-step-item-container[role=button]:hover .dcat-step-icons .dcat-step-icon {
  190. color: $primary
  191. }
  192. .dcat-step-horizontal:not(.dcat-step-label-vertical) .dcat-step-item {
  193. margin-right: 16px;
  194. white-space: nowrap
  195. }
  196. .dcat-step-horizontal:not(.dcat-step-label-vertical) .dcat-step-item:last-child {
  197. margin-right: 0
  198. }
  199. .dcat-step-horizontal:not(.dcat-step-label-vertical) .dcat-step-item:last-child .dcat-step-title {
  200. padding-right: 0
  201. }
  202. .dcat-step-horizontal:not(.dcat-step-label-vertical) .dcat-step-line {
  203. display: none
  204. }
  205. .dcat-step-horizontal:not(.dcat-step-label-vertical) .dcat-step-desc {
  206. max-width: 140px;
  207. white-space: normal
  208. }
  209. .dcat-step-sm.dcat-step-horizontal:not(.dcat-step-label-vertical) .dcat-step-item {
  210. margin-right: 12px
  211. }
  212. .dcat-step-sm.dcat-step-horizontal:not(.dcat-step-label-vertical) .dcat-step-item:last-child {
  213. margin-right: 0
  214. }
  215. .dcat-step-sm .dcat-step-icons {
  216. width: 24px;
  217. height: 24px;
  218. font-size: 12px;
  219. line-height: 24px;
  220. text-align: center;
  221. border-radius: 24px
  222. }
  223. .dcat-step-sm .dcat-step-title {
  224. padding-right: 12px;
  225. font-size: 14px;
  226. line-height: 24px
  227. }
  228. .dcat-step-sm .dcat-step-title:after {
  229. top: 12px
  230. }
  231. .dcat-step-sm .dcat-step-desc {
  232. color: rgba(0, 0, 0, .45);
  233. font-size: 14px
  234. }
  235. .dcat-step-sm .dcat-step-line {
  236. top: 8px
  237. }
  238. @media (max-width: 540px) {
  239. .dcat-step-horizontal.dcat-step-label-horizontal {
  240. display: block
  241. }
  242. .dcat-step-box .nav-tabs > li {
  243. float: none;
  244. }
  245. .dcat-step-box .nav-tabs>li>a {
  246. padding: 0;
  247. }
  248. .dcat-step-horizontal.dcat-step-label-horizontal .dcat-step-item {
  249. display: block;
  250. overflow: visible
  251. }
  252. .dcat-step-horizontal.dcat-step-label-horizontal .dcat-step-icons {
  253. float: left;
  254. margin-right: 16px
  255. }
  256. .dcat-step-horizontal.dcat-step-label-horizontal .dcat-step-content {
  257. display: block;
  258. overflow: hidden
  259. }
  260. .dcat-step-horizontal.dcat-step-label-horizontal .dcat-step-title {
  261. line-height: 32px
  262. }
  263. .dcat-step-horizontal.dcat-step-label-horizontal .dcat-step-desc {
  264. padding-bottom: 12px
  265. }
  266. .dcat-step-horizontal.dcat-step-label-horizontal > .dcat-step-item > .dcat-step-item-container > .dcat-step-line {
  267. position: absolute;
  268. top: 0;
  269. left: 16px;
  270. width: 1px;
  271. height: 100%;
  272. padding: 38px 0 6px
  273. }
  274. .dcat-step-horizontal.dcat-step-label-horizontal > .dcat-step-item > .dcat-step-item-container > .dcat-step-line:after {
  275. width: 1px;
  276. height: 100%
  277. }
  278. .dcat-step-horizontal.dcat-step-label-horizontal > .dcat-step-item:not(:last-child) > .dcat-step-item-container > .dcat-step-line {
  279. display: none;
  280. }
  281. .dcat-step-horizontal.dcat-step-label-horizontal > .dcat-step-item > .dcat-step-item-container > .dcat-step-content > .dcat-step-title:after {
  282. display: none;
  283. }
  284. .dcat-step-horizontal.dcat-step-label-horizontal.dcat-step-sm .dcat-step-item-container .dcat-step-title {
  285. line-height: 24px
  286. }
  287. }
  288. .dcat-step-label-vertical .dcat-step-item {
  289. overflow: visible
  290. }
  291. .dcat-step-label-vertical .dcat-step-line {
  292. margin-left: 51px;
  293. padding: 3.5px 24px;
  294. left: 18px;
  295. top: 23px;
  296. }
  297. .dcat-step-label-vertical .dcat-step-content {
  298. display: block;
  299. width: 104px;
  300. margin-top: 8px;
  301. text-align: center
  302. }
  303. .dcat-step-label-vertical .dcat-step-icons {
  304. display: inline-block;
  305. margin-left: 36px
  306. }
  307. .dcat-step-label-vertical .dcat-step-title {
  308. padding-right: 0
  309. }
  310. .dcat-step-label-vertical .dcat-step-title:after {
  311. display: none
  312. }
  313. .dcat-step-label-vertical.dcat-step-sm:not(.dcat-step-dot) .dcat-step-icons {
  314. margin-left: 40px
  315. }
  316. .dcat-step-dot .dcat-step-title, .dcat-step-dot.dcat-step-sm .dcat-step-title {
  317. line-height: 1.5
  318. }
  319. .dcat-step-dot .dcat-step-line, .dcat-step-dot.dcat-step-sm .dcat-step-line {
  320. top: 2px;
  321. width: 100%;
  322. margin: 0 0 0 70px;
  323. padding: 0
  324. }
  325. .dcat-step-dot .dcat-step-line:after, .dcat-step-dot.dcat-step-sm .dcat-step-line:after {
  326. width: calc(100% - 20px);
  327. height: 3px;
  328. margin-left: 12px
  329. }
  330. .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 {
  331. left: 2px
  332. }
  333. .dcat-step-dot .dcat-step-icons, .dcat-step-dot.dcat-step-sm .dcat-step-icons {
  334. width: 8px;
  335. height: 8px;
  336. margin-left: 67px;
  337. padding-right: 0;
  338. line-height: 8px;
  339. background: 0 0;
  340. border: 0
  341. }
  342. .dcat-step-dot .dcat-step-icons .dcat-step-icon-dot, .dcat-step-dot.dcat-step-sm .dcat-step-icons .dcat-step-icon-dot {
  343. position: relative;
  344. float: left;
  345. width: 100%;
  346. height: 100%;
  347. border-radius: 100px;
  348. transition: all .3s
  349. }
  350. .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 {
  351. position: absolute;
  352. top: -12px;
  353. left: -26px;
  354. width: 60px;
  355. height: 32px;
  356. background: rgba(0, 0, 0, .001);
  357. content: ""
  358. }
  359. .dcat-step-dot .dcat-step-content, .dcat-step-dot.dcat-step-sm .dcat-step-content {
  360. width: 140px
  361. }
  362. .dcat-step-dot .active .dcat-step-icons, .dcat-step-dot.dcat-step-sm .active .dcat-step-icons {
  363. width: 10px;
  364. height: 10px;
  365. line-height: 10px
  366. }
  367. .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 {
  368. top: -1px
  369. }
  370. .dcat-step-item a {
  371. font-weight: normal!important;
  372. }