wizard_custom.scss 6.9 KB

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