wizard_custom.scss 7.2 KB

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