index.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568
  1. $primary-color: #409eff;
  2. $primary-active-color: #ecf5ff;
  3. $primary-background-color: #ecf8ff;
  4. *,
  5. :after,
  6. :before {
  7. -webkit-box-sizing: border-box;
  8. -moz-box-sizing: border-box;
  9. box-sizing: border-box;
  10. }
  11. body {
  12. margin: 0 !important;
  13. }
  14. #app {
  15. font-family: 'Avenir', Helvetica, Arial, sans-serif;
  16. -webkit-font-smoothing: antialiased;
  17. -moz-osx-font-smoothing: grayscale;
  18. color: #2c3e50;
  19. min-height: 100%;
  20. height: 100%;
  21. }
  22. .form-designer {
  23. height: 100%;
  24. .fields-list {
  25. padding: 10px 0;
  26. width: 100%;
  27. height: 100%;
  28. .field-title {
  29. padding: 8px 12px;
  30. font-size: 13px;
  31. }
  32. ul {
  33. position: relative;
  34. overflow: hidden;
  35. padding: 0 10px 10px;
  36. margin: 0;
  37. }
  38. .field-label {
  39. font-size: 12px;
  40. display: block;
  41. width: 48%;
  42. line-height: 26px;
  43. position: relative;
  44. float: left;
  45. left: 0;
  46. overflow: hidden;
  47. text-overflow: ellipsis;
  48. white-space: nowrap;
  49. margin: 1%;
  50. color: #333;
  51. border: 1px solid #f4f6fc;
  52. &:hover {
  53. color: $primary-color;
  54. border: 1px dashed $primary-color;
  55. }
  56. & > a {
  57. display: block;
  58. cursor: move;
  59. background: #f4f6fc;
  60. border: 1px solid #f4f6fc;
  61. .icon {
  62. margin-right: 6px;
  63. margin-left: 8px;
  64. font-size: 14px;
  65. display: inline-block;
  66. vertical-align: middle;
  67. }
  68. span {
  69. display: inline-block;
  70. vertical-align: middle;
  71. }
  72. }
  73. }
  74. .field-label-disabled {
  75. font-size: 12px;
  76. display: block;
  77. width: 48%;
  78. line-height: 26px;
  79. position: relative;
  80. float: left;
  81. left: 0;
  82. overflow: hidden;
  83. text-overflow: ellipsis;
  84. white-space: nowrap;
  85. margin: 1%;
  86. color: #333;
  87. border: 1px solid #f4f6fc;
  88. &:hover {
  89. color: gray;
  90. border: 1px dashed gray;
  91. }
  92. & > a {
  93. display: block;
  94. cursor: not-allowed;
  95. background: #f4f6fc;
  96. border: 1px solid #f4f6fc;
  97. .icon {
  98. margin-right: 6px;
  99. margin-left: 8px;
  100. font-size: 14px;
  101. display: inline-block;
  102. vertical-align: middle;
  103. }
  104. span {
  105. display: inline-block;
  106. vertical-align: middle;
  107. }
  108. }
  109. }
  110. }
  111. .widget-container {
  112. border-left: 1px solid #e0e0e0;
  113. border-right: 1px solid #e0e0e0;
  114. .widget-container-header {
  115. height: 45px !important;
  116. line-height: 45px;
  117. font-size: 18px;
  118. border-bottom: solid 2px #e4e7ed;
  119. text-align: right;
  120. }
  121. .el-main {
  122. padding: 0;
  123. position: relative;
  124. }
  125. }
  126. .widget-form-container {
  127. position: absolute;
  128. top: 0;
  129. left: 0;
  130. right: 0;
  131. bottom: 0;
  132. .widget-form-list {
  133. height: 100%;
  134. min-height: calc(100vh - 45px);
  135. padding-bottom: 20px;
  136. .widget-form-item {
  137. padding: 5px 10px 18px;
  138. margin: 0;
  139. position: relative;
  140. border-left: 5px solid transparent;
  141. &.required {
  142. .el-form-item__label::before {
  143. content: '*';
  144. color: #f56c6c;
  145. margin-right: 4px;
  146. }
  147. }
  148. &:after {
  149. position: absolute;
  150. left: 0;
  151. right: 0;
  152. bottom: 0;
  153. top: 0;
  154. display: block;
  155. z-index: 1001;
  156. }
  157. &:hover {
  158. background: $primary-background-color;
  159. cursor: move;
  160. }
  161. &.active {
  162. border-left: 3px solid $primary-color;
  163. background: $primary-active-color;
  164. }
  165. .widget-action-delete {
  166. position: absolute;
  167. right: 10px;
  168. bottom: -32px;
  169. z-index: 1002;
  170. }
  171. .widget-action-clone {
  172. position: absolute;
  173. right: 50px;
  174. bottom: -32px;
  175. z-index: 1002;
  176. }
  177. }
  178. .widget-form-table {
  179. position: relative;
  180. padding: 2px;
  181. float: left;
  182. width: 100%;
  183. &__content {
  184. display: flex;
  185. padding: 10px 5px;
  186. width: 100%;
  187. height: 100%;
  188. overflow-y: hidden;
  189. outline: 1px dashed #ccc;
  190. outline-offset: -1px;
  191. min-height: 103px;
  192. .ghost {
  193. background: white;
  194. border-left: 5px solid $primary-color;
  195. box-sizing: border-box;
  196. font-size: 0;
  197. content: '';
  198. overflow: hidden;
  199. padding: 0 !important;
  200. position: relative;
  201. outline: none 0;
  202. height: 100%;
  203. min-height: 90px;
  204. width: 0 !important;
  205. min-width: 0 !important;
  206. margin: 1px 2px 0 2px;
  207. }
  208. }
  209. &__item {
  210. position: relative;
  211. min-width: 33.3%;
  212. width: 33.3%;
  213. padding: 1px;
  214. height: 100%;
  215. &.required {
  216. .el-table__header .cell::before {
  217. content: '*';
  218. color: #f56c6c;
  219. margin-right: 4px;
  220. }
  221. }
  222. &.active {
  223. outline: 1px solid $primary-color;
  224. outline-offset: -1px;
  225. }
  226. &:hover {
  227. outline: 1px solid $primary-color;
  228. outline-offset: -1px;
  229. cursor: move;
  230. }
  231. &:after {
  232. position: absolute;
  233. left: 0;
  234. right: 0;
  235. bottom: 0;
  236. top: 0;
  237. display: block;
  238. content: '';
  239. z-index: 1001;
  240. }
  241. .widget-table-action-delete {
  242. position: absolute;
  243. right: 0;
  244. bottom: 0;
  245. z-index: 1002;
  246. }
  247. .widget-table-action-clone {
  248. position: absolute;
  249. right: 30px;
  250. bottom: 0;
  251. z-index: 1002;
  252. i {
  253. font-size: 10px;
  254. }
  255. }
  256. .el-button--small.is-circle {
  257. padding: 5px;
  258. }
  259. }
  260. &.active {
  261. border-left: 3px solid $primary-color;
  262. background: $primary-active-color;
  263. }
  264. &:hover {
  265. background: $primary-background-color;
  266. cursor: move;
  267. }
  268. .widget-action-delete {
  269. position: absolute;
  270. right: 10px;
  271. bottom: -12px;
  272. z-index: 1001;
  273. }
  274. .widget-action-clear {
  275. position: absolute;
  276. right: 50px;
  277. bottom: -12px;
  278. z-index: 1001;
  279. }
  280. .widget-action-clone {
  281. position: absolute;
  282. right: 90px;
  283. bottom: -12px;
  284. z-index: 1001;
  285. }
  286. }
  287. .widget-form-group {
  288. position: relative;
  289. width: 100%;
  290. float: left;
  291. padding: 2px;
  292. &__head {
  293. margin: 10px;
  294. }
  295. &__body {
  296. min-height: 150px;
  297. height: 100%;
  298. outline: 1px dashed #ccc;
  299. outline-offset: -1px;
  300. overflow: hidden;
  301. padding-bottom: 15px;
  302. .ghost {
  303. background: white;
  304. border-left: 5px solid $primary-color;
  305. box-sizing: border-box;
  306. font-size: 0;
  307. content: '';
  308. overflow: hidden;
  309. padding: 0 !important;
  310. position: relative;
  311. outline: none 0;
  312. height: 100%;
  313. min-height: 57px;
  314. width: 0 !important;
  315. min-width: 0 !important;
  316. margin: 1px 2px 0 2px;
  317. }
  318. }
  319. &__item {
  320. padding: 10px;
  321. margin: 3px;
  322. position: relative;
  323. border-left: 5px solid transparent;
  324. background: white;
  325. &.required {
  326. .el-form-item__label::before {
  327. content: '*';
  328. color: #f56c6c;
  329. margin-right: 4px;
  330. }
  331. }
  332. &.active {
  333. outline: 1px solid $primary-color;
  334. outline-offset: -1px;
  335. }
  336. &:hover {
  337. outline: 1px solid $primary-color;
  338. outline-offset: -1px;
  339. cursor: move;
  340. }
  341. &:after {
  342. position: absolute;
  343. left: 0;
  344. right: 0;
  345. bottom: 0;
  346. top: 0;
  347. display: block;
  348. content: '';
  349. z-index: 1001;
  350. }
  351. &--delete {
  352. position: absolute;
  353. right: 0;
  354. bottom: -24px;
  355. z-index: 1002;
  356. }
  357. &--clone {
  358. position: absolute;
  359. right: 34px;
  360. bottom: -24px;
  361. z-index: 1002;
  362. }
  363. }
  364. &.active {
  365. border-left: 3px solid $primary-color;
  366. background: $primary-active-color;
  367. }
  368. &:hover {
  369. background: $primary-background-color;
  370. cursor: move;
  371. }
  372. .widget-action-delete {
  373. position: absolute;
  374. right: 10px;
  375. bottom: -12px;
  376. z-index: 1001;
  377. }
  378. .widget-action-clear {
  379. position: absolute;
  380. right: 50px;
  381. bottom: -12px;
  382. z-index: 1001;
  383. }
  384. .widget-action-clone {
  385. position: absolute;
  386. right: 90px;
  387. bottom: -12px;
  388. z-index: 1001;
  389. }
  390. }
  391. .iconfont {
  392. font-size: 13px;
  393. }
  394. .el-button--small.is-circle {
  395. padding: 7px;
  396. }
  397. }
  398. .ghost {
  399. background: white;
  400. border-top: 5px solid $primary-color;
  401. box-sizing: border-box;
  402. font-size: 0;
  403. content: '';
  404. overflow: hidden;
  405. padding: 0 !important;
  406. position: relative;
  407. outline: none 0;
  408. height: 0 !important;
  409. width: 100%;
  410. margin: 2px 0;
  411. }
  412. }
  413. .widget-config-container {
  414. margin-top: 5px;
  415. //position: relative;
  416. .el-tabs__header {
  417. position: fixed;
  418. top: 5px;
  419. width: 380px;
  420. height: 45px;
  421. background: white;
  422. z-index: 1000;
  423. }
  424. .el-tabs__content {
  425. margin-top: 50px;
  426. }
  427. .widget-config {
  428. .el-tabs__header {
  429. position: relative;
  430. display: block;
  431. top: 0;
  432. margin: 0;
  433. }
  434. .el-tabs__content {
  435. margin-top: 0;
  436. }
  437. .ghost {
  438. background: #fff;
  439. border: 1px dashed $primary-color;
  440. }
  441. ul {
  442. margin: 0;
  443. padding: 0;
  444. li {
  445. display: flex;
  446. align-items: center;
  447. width: 100%;
  448. .ghost {
  449. list-style: none;
  450. font-size: 0;
  451. height: 35px;
  452. }
  453. }
  454. }
  455. }
  456. .avue-group__item {
  457. padding: 0;
  458. }
  459. }
  460. .el-container {
  461. height: 100vh;
  462. .el-main {
  463. height: calc(100% - 45px);
  464. }
  465. }
  466. .danger {
  467. color: #f56c6c;
  468. }
  469. .warning {
  470. color: #e6a23c;
  471. }
  472. }
  473. .drawer-foot {
  474. position: absolute;
  475. bottom: 0;
  476. left: 0;
  477. right: 0;
  478. padding: 20px;
  479. display: flex;
  480. button {
  481. width: 50%;
  482. }
  483. }
  484. .preview-form {
  485. overflow-y: scroll;
  486. height: 83vh;
  487. }