_formwizard.scss 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. .wizard,
  2. .tabcontrol {
  3. display: block;
  4. width: 100%;
  5. overflow: hidden;
  6. }
  7. .wizard a,
  8. .tabcontrol a {
  9. outline: 0;
  10. }
  11. .wizard ul,
  12. .tabcontrol ul {
  13. list-style: none !important;
  14. padding: 0;
  15. margin: 0;
  16. }
  17. .wizard ul > li, .tabcontrol ul > li {
  18. display: block;
  19. padding: 0;
  20. }
  21. /* Accessibility */
  22. .wizard > .steps .current-info,
  23. .tabcontrol > .steps .current-info,
  24. .wizard > .content > .title,
  25. .tabcontrol > .content > .title {
  26. position: absolute;
  27. left: -999em;
  28. }
  29. .wizard {
  30. > .steps {
  31. position: relative;
  32. display: block;
  33. width: 100%;
  34. }
  35. &.vertical {
  36. > .steps {
  37. float: left;
  38. width: 30%;
  39. }
  40. > .steps > ul > li {
  41. float: none;
  42. width: 100%;
  43. }
  44. > .content {
  45. float: left;
  46. margin: 0 0 0.5em 0;
  47. width: 70%;
  48. }
  49. > .actions {
  50. float: right;
  51. width: 100%;
  52. }
  53. > .actions > ul > li {
  54. margin: 0 0 0 1em;
  55. }
  56. }
  57. > {
  58. .steps {
  59. .number {
  60. font-size: 1.429em;
  61. }
  62. > ul > li {
  63. width: 25%;
  64. float: left;
  65. }
  66. }
  67. .actions > ul > li {
  68. float: left;
  69. }
  70. }
  71. > {
  72. .steps {
  73. a {
  74. display: block;
  75. width: auto;
  76. margin: 0 0.5em 0.5em;
  77. padding: 1em 1em;
  78. text-decoration: none;
  79. -webkit-border-radius: 5px;
  80. -moz-border-radius: 5px;
  81. border-radius: 5px;
  82. &:hover, &:active {
  83. display: block;
  84. width: auto;
  85. margin: 0 0.5em 0.5em;
  86. padding: 1em 1em;
  87. text-decoration: none;
  88. -webkit-border-radius: 5px;
  89. -moz-border-radius: 5px;
  90. border-radius: 5px;
  91. }
  92. }
  93. .disabled a {
  94. background: #eee;
  95. color: #aaa;
  96. cursor: default;
  97. &:hover, &:active {
  98. background: #eee;
  99. color: #aaa;
  100. cursor: default;
  101. }
  102. }
  103. .current a {
  104. background: #2184be;
  105. color: #fff;
  106. cursor: default;
  107. &:hover, &:active {
  108. background: #2184be;
  109. color: #fff;
  110. cursor: default;
  111. }
  112. }
  113. .done a {
  114. background: #9dc8e2;
  115. color: #fff;
  116. &:hover, &:active {
  117. background: #9dc8e2;
  118. color: #fff;
  119. }
  120. }
  121. .error a {
  122. background: #ff3111;
  123. color: #fff;
  124. &:hover, &:active {
  125. background: #ff3111;
  126. color: #fff;
  127. }
  128. }
  129. }
  130. .content {
  131. border: 1px solid #ddd;
  132. display: block;
  133. margin: 0.5em;
  134. min-height: 35em;
  135. overflow: hidden;
  136. position: relative;
  137. width: auto;
  138. }
  139. }
  140. > {
  141. .actions {
  142. position: relative;
  143. display: block;
  144. text-align: right;
  145. width: 100%;
  146. }
  147. }
  148. > .actions > ul {
  149. display: inline-block;
  150. text-align: right;
  151. > li {
  152. margin: 0 0.5em;
  153. }
  154. }
  155. > {
  156. .actions {
  157. a {
  158. background: #009688;
  159. color: #fff;
  160. display: block;
  161. padding: 0.5em 1em;
  162. text-decoration: none;
  163. @include border-radius(0);
  164. &:hover, &:active {
  165. background: #009688;
  166. color: #fff;
  167. display: block;
  168. padding: 0.5em 1em;
  169. text-decoration: none;
  170. @include border-radius(0);
  171. }
  172. }
  173. .disabled a {
  174. background: #eee;
  175. color: #aaa;
  176. &:hover, &:active {
  177. background: #eee;
  178. color: #aaa;
  179. }
  180. }
  181. }
  182. }
  183. }
  184. .tabcontrol > {
  185. .steps {
  186. position: relative;
  187. display: block;
  188. width: 100%;
  189. > ul {
  190. position: relative;
  191. margin: 6px 0 0 0;
  192. top: 1px;
  193. z-index: 1;
  194. > li {
  195. float: left;
  196. margin: 5px 2px 0 0;
  197. padding: 1px;
  198. -webkit-border-top-left-radius: 5px;
  199. -webkit-border-top-right-radius: 5px;
  200. -moz-border-radius-topleft: 5px;
  201. -moz-border-radius-topright: 5px;
  202. border-top-left-radius: 5px;
  203. border-top-right-radius: 5px;
  204. &:hover {
  205. background: #edecec;
  206. border: 1px solid #bbb;
  207. padding: 0;
  208. }
  209. &.current {
  210. background: #fff;
  211. border: 1px solid #bbb;
  212. border-bottom: 0 none;
  213. padding: 0 0 1px 0;
  214. margin-top: 0;
  215. > a {
  216. padding: 15px 30px 10px 30px;
  217. }
  218. }
  219. > a {
  220. color: #5f5f5f;
  221. display: inline-block;
  222. border: 0 none;
  223. margin: 0;
  224. padding: 10px 30px;
  225. text-decoration: none;
  226. &:hover {
  227. text-decoration: none;
  228. }
  229. }
  230. }
  231. }
  232. }
  233. .content {
  234. position: relative;
  235. display: inline-block;
  236. width: 100%;
  237. height: 35em;
  238. overflow: hidden;
  239. border-top: 1px solid #bbb;
  240. padding-top: 20px;
  241. > .body {
  242. float: left;
  243. position: absolute;
  244. width: 95%;
  245. height: 95%;
  246. padding: 2.5%;
  247. ul {
  248. list-style: disc !important;
  249. > li {
  250. display: list-item;
  251. }
  252. }
  253. }
  254. }
  255. }
  256. .wizard {
  257. .content {
  258. min-height: 245px;
  259. @include border-radius(0);
  260. overflow-y: auto;
  261. .body {
  262. padding: 15px;
  263. }
  264. }
  265. .steps {
  266. a {
  267. @include border-radius(0);
  268. @include transition(.5s);
  269. &:active,
  270. &:focus,
  271. &:hover {
  272. @include border-radius(0);
  273. }
  274. }
  275. .done {
  276. a {
  277. background-color: rgba(#009688, 0.6);
  278. &:hover,
  279. &:active,
  280. &:focus {
  281. background-color: rgba(#009688, 0.5);
  282. }
  283. }
  284. }
  285. .error {
  286. a {
  287. background-color: #F44336 !important;
  288. }
  289. }
  290. .current {
  291. a {
  292. background-color: #009688;
  293. &:active,
  294. &:focus,
  295. &:hover {
  296. background-color: #009688;
  297. }
  298. }
  299. }
  300. }
  301. }