wizard_custom.scss 6.6 KB

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