wizard_custom.scss 7.0 KB

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