_wizard.scss 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  1. // WIZARD: TABS
  2. // -----------------------------------------------------------------------------
  3. .wizard-tabs {
  4. .panel-body & {
  5. margin: -15px -15px 15px;
  6. }
  7. .panel-body-nopadding & {
  8. margin: 0;
  9. }
  10. ul {
  11. display: table;
  12. width: 100%;
  13. padding: 0;
  14. margin: 0;
  15. list-style: none;
  16. & > li {
  17. display: table-cell;
  18. border-bottom: 1px solid $wizard-nav-item-border-color;
  19. &.active {
  20. border-bottom-color: transparent;
  21. & > a {
  22. &,
  23. &:hover,
  24. &:focus {
  25. background: $wizard-nav-item-background-active-hover;
  26. color: $wizard-nav-default-color;
  27. }
  28. &:after {
  29. border-left-color: $wizard-nav-item-background-active-hover;
  30. }
  31. }
  32. .badge {
  33. background-color: $color-primary;
  34. }
  35. }
  36. &.disabled {
  37. & > a {
  38. &,
  39. &:hover,
  40. &:focus {
  41. color: $wizard-nav-disabled-color;
  42. }
  43. }
  44. .badge {
  45. background-color: $wizard-nav-disabled-color;
  46. }
  47. }
  48. & > a {
  49. position: relative;
  50. display: block;
  51. padding: 5px;
  52. @include font-size($body-font-size);
  53. text-decoration: none;
  54. color: $wizard-nav-default-color;
  55. &,
  56. &:hover {
  57. background: $wizard-nav-item-background;
  58. color: $wizard-nav-default-color;
  59. }
  60. &:hover {
  61. box-shadow: none;
  62. }
  63. &:active,
  64. &:focus {
  65. border-bottom: 0;
  66. }
  67. // Chevron
  68. &:before,
  69. &:after {
  70. display: block;
  71. content: '';
  72. position: absolute;
  73. top: 0;
  74. right: -10px;
  75. z-index: 1;
  76. border: 17px solid transparent;
  77. border-right: 0;
  78. border-left: 10px solid transparent;
  79. width: 0;
  80. height: 0;
  81. }
  82. &:before {
  83. z-index: 1;
  84. right: -11px;
  85. border-left-color: $wizard-nav-item-chevron-border-color;
  86. }
  87. &:after {
  88. z-index: 2;
  89. border-left-color: $wizard-nav-item-background;
  90. }
  91. }
  92. &:last-child {
  93. & > a {
  94. &:before,
  95. &:after {
  96. display: none;
  97. }
  98. }
  99. }
  100. }
  101. }
  102. }
  103. // DARK - WIZARD: TABS
  104. // -----------------------------------------------------------------------------
  105. html.dark {
  106. .wizard-tabs {
  107. ul > li {
  108. border-color: $dark-color-3;
  109. &.active {
  110. border-color: $dark-color-4;
  111. a {
  112. &,
  113. &:hover,
  114. &:active {
  115. background: $dark-color-4;
  116. color: #EEE;
  117. }
  118. &:before {
  119. border-left-color: $dark-color-2;
  120. }
  121. &:after {
  122. border-left-color: $dark-color-4;
  123. }
  124. }
  125. }
  126. a {
  127. &,
  128. &:hover {
  129. background: $dark-color-3;
  130. color: #EEE;
  131. }
  132. &:before {
  133. border-left-color: $dark-color-2;
  134. }
  135. &:after {
  136. border-left-color: $dark-color-3;
  137. }
  138. }
  139. }
  140. }
  141. }
  142. // WIZARD: PROGRESS
  143. // -----------------------------------------------------------------------------
  144. html,
  145. html.dark {
  146. .wizard-progress {
  147. margin: 0 15px;
  148. .steps-progress {
  149. height: 2px;
  150. margin: 0 38px;
  151. position: relative;
  152. top: 15px;
  153. background: $wizard-progress-default-background;
  154. .progress-indicator {
  155. height: 100%;
  156. width: 0;
  157. background: $wizard-progress-completed-background;
  158. @include transition(width .2s ease-in);
  159. }
  160. }
  161. .wizard-steps {
  162. list-style: none;
  163. margin: 0;
  164. padding: 15px 0 0;
  165. display: inline-block;
  166. width: 100%;
  167. font-size: 0;
  168. text-align: justify;
  169. -ms-text-justify: distribute-all-lines; /* IE8+ */
  170. &:after {
  171. /*
  172. * We don't need IE6 and IE7 inline-block hack support here
  173. * since they don't support :after anyways (the text-justify
  174. * properties for them are above)... IE8 and above have native
  175. * inline-block support so for IE8+, both the text-justify and
  176. * :after will take effect but it doesn't have any negative
  177. * effects since this element is invisible
  178. */
  179. display: inline-block;
  180. width: 100%;
  181. content: '.';
  182. font-size: 0;
  183. height: 0;
  184. line-height: 0;
  185. visibility: hidden;
  186. }
  187. li {
  188. display: inline-block;
  189. vertical-align: top;
  190. min-width: 50px;
  191. max-width: 100px;
  192. a {
  193. position: relative;
  194. display: block;
  195. padding: 25px 8px 0;
  196. font-size: 11px;
  197. color: $wizard-progress-item-color;
  198. font-weight: bold;
  199. line-height: 1;
  200. text-align: center;
  201. text-decoration: none;
  202. word-break: break-all;
  203. span {
  204. position: absolute;
  205. top: 0;
  206. left: 50%;
  207. display: block;
  208. background: $wizard-progress-default-background;
  209. color: $wizard-progress-default-color;
  210. line-height: 26px;
  211. text-align: center;
  212. margin-top: -15px;
  213. margin-left: -15px;
  214. width: 30px;
  215. height: 30px;
  216. border-radius: 35px;
  217. font-size: 13px;
  218. text-indent: -1px;
  219. border: 2px solid $wizard-progress-default-border-color;
  220. @include transition(all .2s ease-in);
  221. }
  222. }
  223. // WIZARD PROGRESS ITEM: COMPLETED
  224. &.completed {
  225. a {
  226. span {
  227. background: $color-primary;
  228. color: $wizard-progress-completed-color;
  229. }
  230. }
  231. }
  232. // WIZARD PROGRESS ITEM: ACTIVE
  233. &.active {
  234. a {
  235. span {
  236. background: $wizard-progress-active-background;
  237. color: $wizard-progress-active-color;
  238. border-color: $wizard-progress-active-border-color;
  239. }
  240. }
  241. }
  242. &.completed.active {
  243. a {
  244. span {
  245. color: #FFF;
  246. }
  247. }
  248. }
  249. }
  250. }
  251. // PROGRESS SIZE: LARGE
  252. &.wizard-progress-lg {
  253. margin: 0 auto 30px;
  254. width: 80%;
  255. .steps-progress {
  256. margin: 0 52px;
  257. height: 4px;
  258. top: 34px;
  259. }
  260. .wizard-steps {
  261. padding-top: 30px;
  262. }
  263. ul {
  264. li {
  265. max-width: 135px;
  266. a {
  267. padding-top: 40px;
  268. font-size: 14px;
  269. span {
  270. width: 60px;
  271. height: 60px;
  272. margin-top: -30px;
  273. margin-left: -30px;
  274. border-radius: 60px;
  275. line-height: 52px;
  276. font-size: 22px;
  277. border-width: 4px;
  278. }
  279. }
  280. }
  281. }
  282. }
  283. }
  284. }
  285. // DARK - WIZARD: PROGRESS
  286. // -----------------------------------------------------------------------------
  287. html.dark {
  288. .wizard-progress .wizard-steps li a {
  289. color: $dark-default-text;
  290. }
  291. .wizard-progress.wizard-progress ul li a span {
  292. background: darken( $dark-color-3, 2% );
  293. border-color: darken( $dark-color-3, 2% );
  294. }
  295. .wizard-progress .wizard-steps li.active a span {
  296. background: darken( $dark-color-3, 2% );
  297. }
  298. .wizard-progress .steps-progress {
  299. background: darken( $dark-color-3, 2% );
  300. }
  301. }
  302. // WIZARD: PROGRESS RESPONSIVE
  303. // -----------------------------------------------------------------------------
  304. @media only screen and (max-width: 991px) {
  305. html, html.dark {
  306. .wizard-progress {
  307. &,
  308. &.wizard-progress-lg {
  309. width: auto;
  310. margin-bottom: 0;
  311. margin-left: -15px;
  312. margin-right: -15px;
  313. }
  314. // initial values
  315. .steps-progress {
  316. display: none;
  317. }
  318. .wizard-steps {
  319. display: block;
  320. font-size: 0;
  321. overflow: hidden;
  322. white-space: nowrap;
  323. text-align: left;
  324. width: 100%;
  325. li {
  326. @include transition( margin .5s linear );
  327. display: inline-block;
  328. float: none;
  329. position: relative;
  330. width: 100%;
  331. min-width: 0;
  332. max-width: none;
  333. a {
  334. position: relative;
  335. z-index: 2;
  336. }
  337. &:before,
  338. &:after {
  339. content: '';
  340. display: block;
  341. height: 2px;
  342. position: absolute;
  343. top: 0;
  344. width: 50%;
  345. }
  346. &:before {
  347. background: $wizard-progress-completed-background;
  348. left: 0;
  349. }
  350. &:after {
  351. background: $wizard-progress-default-background;
  352. right: 0;
  353. }
  354. &.active {
  355. margin-left: 0;
  356. }
  357. &.completed {
  358. margin-left: -100%;
  359. &:after {
  360. background: $wizard-progress-completed-background;
  361. }
  362. }
  363. &.completed.active {
  364. margin-left: 0;
  365. }
  366. &:first-child {
  367. &:before {
  368. display: none;
  369. }
  370. }
  371. &:last-child {
  372. &:after {
  373. display: none;
  374. }
  375. }
  376. }
  377. }
  378. }
  379. .wizard-progress.wizard-progress-lg {
  380. .wizard-steps {
  381. li {
  382. min-width: 0;
  383. max-width: none;
  384. &:before,
  385. &:after {
  386. height: 4px;
  387. }
  388. }
  389. }
  390. }
  391. }
  392. }
  393. // WIZARD: TAB CONTENT
  394. // -----------------------------------------------------------------------------
  395. .form-wizard {
  396. margin-bottom: 20px;
  397. .tabs {
  398. margin-bottom: 0;
  399. }
  400. .tab-content {
  401. background: none;
  402. border: 0 none;
  403. box-shadow: none;
  404. }
  405. ul.pager {
  406. .next,
  407. .previous,
  408. .first,
  409. .last,
  410. .finish {
  411. a {
  412. cursor: pointer;
  413. }
  414. }
  415. .disabled {
  416. a {
  417. cursor: not-allowed;
  418. }
  419. }
  420. }
  421. }
  422. // DARK - WIZARD PAGER
  423. // -----------------------------------------------------------------------------
  424. html.dark {
  425. .form-wizard {
  426. .pager {
  427. li > a,
  428. li > a:hover,
  429. li > a:focus,
  430. li > span {
  431. background: $dark-color-4;
  432. border-color: $dark-color-3;
  433. color: #EEE;
  434. }
  435. .disabled {
  436. & > a,
  437. & > a:hover,
  438. & > a:focus,
  439. & > span {
  440. background: $dark-color-3;
  441. border-color: $dark-color-3;
  442. color: #EEE;
  443. }
  444. }
  445. }
  446. }
  447. }