wizard_custom.scss 6.9 KB

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