wizard_custom.scss 7.0 KB

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