wizard_custom.scss 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. @import 'wizard_variables';
  2. .custom-wizard {
  3. background-color: initial;
  4. font-size: 1.1em;
  5. .wizard-step-contents {
  6. position: relative;
  7. display: flex;
  8. flex-direction: column;
  9. width: 100%;
  10. min-height: initial;
  11. }
  12. img.emoji {
  13. width: 20px;
  14. height: 20px;
  15. vertical-align: middle;
  16. }
  17. .wizard-step-title {
  18. flex: 0;
  19. }
  20. .wizard-step-description {
  21. flex: 0;
  22. p {
  23. line-height: 1.7;
  24. img {
  25. @extend img.emoji;
  26. }
  27. }
  28. i {
  29. margin-right: 7px;
  30. }
  31. .image-container {
  32. padding: 0 20px;
  33. margin: 50px 0;
  34. display: flex;
  35. justify-content: space-between;
  36. flex-wrap: wrap;
  37. a {
  38. cursor: pointer;
  39. }
  40. span {
  41. display: block;
  42. text-align: center;
  43. max-width: 140px;
  44. color: #333;
  45. }
  46. &.group {
  47. padding: 0;
  48. margin: 0;
  49. width: 130px;
  50. height: 130px;
  51. }
  52. }
  53. img.large {
  54. width: 150;
  55. padding: 25px;;
  56. }
  57. img.small {
  58. width: 100;
  59. padding: 15px;
  60. }
  61. img.x-small {
  62. width: 50px;
  63. height: 50px;
  64. padding: 3px;
  65. }
  66. label {
  67. display: block;
  68. text-align: center;
  69. }
  70. .inline-list > * {
  71. display: inline-block;
  72. }
  73. }
  74. .wizard-step-banner {
  75. width: initial;
  76. margin-bottom: 1em;
  77. img {
  78. max-height: 300px;
  79. }
  80. }
  81. .wizard-step-form {
  82. flex: auto;
  83. display: flex;
  84. flex-direction: column;
  85. width: 100%;
  86. }
  87. .wizard-field {
  88. &.tip {
  89. margin-top: auto;
  90. }
  91. label {
  92. display: flex;
  93. flex-flow: wrap;
  94. align-items: center;
  95. .field-label {
  96. width: 100%;
  97. }
  98. .field-image {
  99. margin-right: 10px;
  100. img {
  101. width: 30px;
  102. height: 30px;
  103. }
  104. }
  105. .field-description {
  106. flex: 1;
  107. color: #333;
  108. margin-top: 0;
  109. p {
  110. margin: 0;
  111. line-height: 1.3em;
  112. }
  113. img {
  114. height: 15px;
  115. width: 15px;
  116. margin: 0 5px;
  117. }
  118. }
  119. }
  120. }
  121. .checkbox-field {
  122. display: flex;
  123. align-items: center;
  124. &> label {
  125. order: 1;
  126. flex: 1;
  127. }
  128. &> .input-area {
  129. order: 0;
  130. margin: 15px 20px !important;
  131. input {
  132. cursor: pointer;
  133. transform: scale(1.3);
  134. }
  135. }
  136. }
  137. .control-group {
  138. display: inline-block;
  139. vertical-align: top;
  140. margin-right: 20px;
  141. .controls {
  142. margin: 5px 0;
  143. }
  144. input {
  145. width: 200px;
  146. line-height: 24px;
  147. }
  148. ul {
  149. padding: 0;
  150. }
  151. }
  152. .wizard-step-form .wizard-btn {
  153. display: block;
  154. margin: 20px 0;
  155. }
  156. .wizard-column .wizard-field .input-area {
  157. margin: 0.5em 0;
  158. }
  159. .combo-box ul {
  160. padding: 0;
  161. }
  162. .wizard-buttons > a, .wizard-buttons > button, .spinner {
  163. display: inline-block;
  164. vertical-align: middle;
  165. }
  166. .spinner.small {
  167. margin-right: 10px;
  168. }
  169. }
  170. .step-message {
  171. position: absolute;
  172. top: 0;
  173. left: 0;
  174. right: 0;
  175. height: 0;
  176. line-height: 0;
  177. text-align: center;
  178. transition: all .2s;
  179. z-index: 2;
  180. &.success {
  181. height: 60px;
  182. line-height: 60px;
  183. background-color: #009900;
  184. color: #ffffff;
  185. }
  186. &.error {
  187. height: 60px;
  188. line-height: 60px;
  189. background-color: #e45735;
  190. color: #ffffff;
  191. }
  192. }
  193. .p-list-box {
  194. max-width: 550px;
  195. position: relative;
  196. margin: 10px 0;
  197. .spinner {
  198. position: absolute;
  199. right: 50%;
  200. top: 50%;
  201. }
  202. .p-text {
  203. margin-bottom: 5px;
  204. }
  205. ul {
  206. border: 1px solid #e9e9e9;
  207. padding: 0;
  208. margin: 0;
  209. list-style: none;
  210. height: 95px;
  211. overflow: scroll;
  212. }
  213. li {
  214. padding: 6px 12px;
  215. cursor: pointer;
  216. background-color: #fff;
  217. display: flex;
  218. &:hover, &.selected {
  219. background-color: #eee;
  220. }
  221. label {
  222. flex: 1 1 auto;
  223. cursor: pointer;
  224. }
  225. i {
  226. margin-right: 5px;
  227. }
  228. }
  229. .no-results {
  230. padding: 15px;
  231. }
  232. .default {
  233. margin: 0 auto;
  234. top: 50%;
  235. transform: translateY(-50%);
  236. position: absolute;
  237. width: 100%;
  238. text-align: center;
  239. color: #919191;
  240. }
  241. }
  242. .spinner {
  243. margin: 20px auto 20px auto;
  244. position: relative;
  245. -webkit-animation: rotate-forever 1s infinite linear;
  246. animation: rotate-forever 1s infinite linear;
  247. height: 30px;
  248. width: 30px;
  249. border: 4px solid #ccc;
  250. border-right-color: transparent;
  251. border-radius: 50%;
  252. &.small {
  253. width: 10px;
  254. height: 10px;
  255. margin: 0;
  256. display: inline-block;
  257. }
  258. }
  259. .user-selector-field.wizard-field {
  260. div.ac-wrap div.item a.remove, .remove-link {
  261. margin-left: 4px;
  262. font-size: 11px;
  263. line-height: 10px;
  264. padding: 1.5px 1.5px 1.5px 2.5px;
  265. border-radius: 12px;
  266. width: 10px;
  267. display: inline-block;
  268. border: 1px solid #e9e9e9;
  269. &:hover {
  270. background-color: #f2ab9a;
  271. border: 1px solid #ec8972;
  272. text-decoration: none;
  273. color: #e45735;
  274. }
  275. }
  276. div.ac-wrap {
  277. width: 98.5% !important;
  278. overflow: auto;
  279. max-height: 150px;
  280. background-color: white;
  281. border: 1px solid #e9e9e9;
  282. padding: 5px 4px 1px 4px;
  283. div.item {
  284. float: left;
  285. margin-bottom: 4px;
  286. margin-right: 10px;
  287. span {
  288. height: 24px;
  289. display: inline-block;
  290. line-height: 20px;
  291. }
  292. }
  293. .ac-collapsed-button {
  294. float: left;
  295. border-radius: 20px;
  296. position: relative;
  297. top: -2px;
  298. margin-right: 10px;
  299. }
  300. input[type="text"] {
  301. float: left;
  302. margin-bottom: 4px;
  303. height: 24px;
  304. display: block;
  305. border: 0;
  306. padding: 0;
  307. box-shadow: none;
  308. }
  309. }
  310. }
  311. img.avatar {
  312. border-radius: 50%;
  313. vertical-align: middle;
  314. }
  315. .autocomplete {
  316. z-index: 999999;
  317. position: absolute;
  318. width: 240px;
  319. background-color: white;
  320. border: 1px solid #e9e9e9;
  321. ul {
  322. list-style: none;
  323. padding: 0;
  324. margin: 0;
  325. li {
  326. .d-users {
  327. color: #333;
  328. padding: 0 2px;
  329. }
  330. border-bottom: 1px solid #e9e9e9;
  331. a {
  332. padding: 5px;
  333. display: block;
  334. white-space: nowrap;
  335. overflow: hidden;
  336. text-overflow: ellipsis;
  337. font-size: 14px;
  338. text-decoration: none;
  339. img {
  340. margin-right: 5px;
  341. }
  342. span.username {
  343. color: #000;
  344. vertical-align: middle;
  345. }
  346. span.name {
  347. font-size: 11px;
  348. vertical-align: middle;
  349. }
  350. &.selected {
  351. background-color: #d1f0ff;
  352. }
  353. &:hover {
  354. background-color: #ffffa6;
  355. text-decoration: none;
  356. }
  357. }
  358. }
  359. }
  360. }
  361. .checkbox-field.invalid .input-area {
  362. padding: 3px;
  363. border: 4px solid red;
  364. }
  365. @keyframes rotate-forever {
  366. 0% {
  367. transform: rotate(0deg);
  368. }
  369. 100% {
  370. transform: rotate(360deg);
  371. }
  372. }
  373. .p-text {
  374. &.bronze {
  375. color: #cd7f32;
  376. }
  377. &.silver {
  378. color: #c0c0c0;
  379. }
  380. &.gold {
  381. color: rgb(231, 195, 0);
  382. }
  383. }