wizard.scss 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. // Core variables and mixins
  2. @import "../../bootstrap/functions";
  3. @import "../../bootstrap/mixins";
  4. // Core variables and mixins overrides
  5. @import "../../core/variables/variables";
  6. @import "../../bootstrap/variables";
  7. // Overrides user variable
  8. @import "../../core/variables/components-variables";
  9. .app-content .wizard {
  10. width: 100%;
  11. // overflow: hidden;
  12. .content{
  13. margin-left: 0 !important;
  14. }
  15. >.steps {
  16. .current-info {
  17. position: absolute;
  18. left: -99999px;
  19. }
  20. position: relative;
  21. display: block;
  22. width: 100%;
  23. >ul {
  24. display: table;
  25. width: 100%;
  26. table-layout: fixed;
  27. margin: 0;
  28. padding: 0;
  29. list-style: none;
  30. >li {
  31. display: table-cell;
  32. width: auto;
  33. vertical-align: top;
  34. text-align: center;
  35. position: relative;
  36. a {
  37. position: relative;
  38. padding-top: 52px;
  39. margin-top: 20px;
  40. margin-bottom: 20px;
  41. display: block;
  42. }
  43. &:before {
  44. content: '';
  45. display: block;
  46. position: absolute;
  47. z-index: 9;
  48. left: 0;
  49. }
  50. &:after {
  51. content: '';
  52. display: block;
  53. position: absolute;
  54. z-index: 9;
  55. right: 0;
  56. }
  57. &:last-child {
  58. &:after {
  59. content: none;
  60. }
  61. }
  62. }
  63. >li.current {
  64. >a {
  65. color: $primary;
  66. cursor: default;
  67. }
  68. .step {
  69. border-color: $primary;
  70. background-color: $primary;
  71. color: $white;
  72. }
  73. }
  74. >li.disabled {
  75. a {
  76. color: $gray-400;
  77. cursor: default;
  78. &:hover {
  79. color: $gray-400;
  80. cursor: default;
  81. }
  82. &:focus {
  83. color: $gray-400;
  84. cursor: default;
  85. }
  86. }
  87. .step{
  88. color: $gray-600;
  89. }
  90. }
  91. >li.done {
  92. a {
  93. color: $gray-400;
  94. &:hover {
  95. color: $gray-400;
  96. }
  97. &:focus {
  98. color: $gray-400;
  99. }
  100. }
  101. .step {
  102. background-color: $white;
  103. border-color: $primary;
  104. color: $gray-600;
  105. }
  106. &:last-child{
  107. .step{
  108. background-color: $primary;
  109. border-color: $primary;
  110. color: $white;
  111. }
  112. }
  113. }
  114. >li.error {
  115. > a{
  116. color: $danger;
  117. }
  118. .step {
  119. border-color: $danger;
  120. color: $white;
  121. background-color: $danger;
  122. }
  123. }
  124. }
  125. .step {
  126. background-color: #fff;
  127. display: inline-block;
  128. position: absolute;
  129. top: 0;
  130. left: 50%;
  131. margin-left: -24px;
  132. z-index: 10;
  133. text-align: center;
  134. i{
  135. position: relative;
  136. top: 2px;
  137. }
  138. }
  139. }
  140. >.content {
  141. >.title {
  142. position: absolute;
  143. left: -99999px;
  144. }
  145. // overflow: hidden;
  146. position: relative;
  147. width: auto;
  148. padding: 0;
  149. margin: 0;
  150. >.body {
  151. padding: 0 20px;
  152. }
  153. >iframe {
  154. border: 0 none;
  155. width: 100%;
  156. height: 100%;
  157. }
  158. }
  159. >.actions {
  160. position: relative;
  161. display: block;
  162. text-align: right;
  163. padding: 20px;
  164. padding-top: 0;
  165. >ul {
  166. // float: right;
  167. list-style: none;
  168. padding: 0;
  169. margin: 0;
  170. &:after {
  171. content: '';
  172. display: table;
  173. clear: both;
  174. }
  175. >li {
  176. float: left;
  177. + {
  178. li {
  179. margin-left: 10px;
  180. float: right;
  181. }
  182. }
  183. >a {
  184. background: $primary;
  185. color: #fff;
  186. display: block;
  187. padding: 7px 12px;
  188. border-radius: $btn-border-radius;
  189. border: 1px solid transparent;
  190. &:hover {
  191. -webkit-box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.05) inset;
  192. box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.05) inset;
  193. }
  194. &:focus {
  195. -webkit-box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.05) inset;
  196. box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.05) inset;
  197. }
  198. &:active {
  199. -webkit-box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.1) inset;
  200. box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.1) inset;
  201. }
  202. }
  203. >a[href="#previous"] {
  204. background-color: $primary;
  205. color: $white;
  206. border-radius: $btn-border-radius;
  207. &:hover {
  208. -webkit-box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.02) inset;
  209. box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.02) inset;
  210. }
  211. &:focus {
  212. -webkit-box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.02) inset;
  213. box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.02) inset;
  214. }
  215. &:active {
  216. -webkit-box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.04) inset;
  217. box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.04) inset;
  218. }
  219. }
  220. }
  221. >li.disabled {
  222. >a {
  223. color: $white;
  224. &:hover {
  225. color: $white;
  226. }
  227. &:focus {
  228. color: $white;
  229. }
  230. }
  231. >a[href="#previous"] {
  232. -webkit-box-shadow: none;
  233. box-shadow: none;
  234. &:hover {
  235. -webkit-box-shadow: none;
  236. box-shadow: none;
  237. }
  238. &:focus {
  239. -webkit-box-shadow: none;
  240. box-shadow: none;
  241. }
  242. }
  243. }
  244. }
  245. }
  246. &.wizard-circle{
  247. >.steps {
  248. >ul{
  249. >li{
  250. &:before, &:after{
  251. top: 43px;
  252. width: 50%;
  253. height: 3px;
  254. background-color: $primary;
  255. }
  256. }
  257. >li.current{
  258. &:after {
  259. background-color: transparent; //darken($body-bg, 5%);
  260. }
  261. ~ {
  262. li {
  263. &:before {
  264. background-color: transparent;
  265. }
  266. &:after {
  267. background-color: transparent;
  268. }
  269. }
  270. }
  271. }
  272. }
  273. .step{
  274. width: 50px;
  275. height: 50px;
  276. line-height: 3rem;
  277. border: 3px solid $gray-600;
  278. font-size: 1.5rem;
  279. font-weight: $headings-font-weight;
  280. border-radius: 50%;
  281. }
  282. }
  283. }
  284. }
  285. @media (max-width: 768px) {
  286. .app-content .wizard {
  287. >.steps {
  288. >ul {
  289. margin-bottom: 20px;
  290. >li {
  291. display: block;
  292. float: left;
  293. width: 33%;
  294. >a {
  295. margin-bottom: 0;
  296. }
  297. &:last-child {
  298. &:after {
  299. content: '';
  300. background-color: $primary;
  301. }
  302. }
  303. }
  304. }
  305. }
  306. }
  307. }
  308. @media (max-width: 480px) {
  309. .app-content .wizard {
  310. >.steps {
  311. >ul {
  312. >li.current {
  313. &:after {
  314. background-color: $primary;
  315. }
  316. }
  317. }
  318. }
  319. }
  320. }