wizard_custom.scss 7.4 KB

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