index.scss 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888
  1. $primary-color: #409EFF;
  2. $primary-background-color: #ecf5ff;
  3. *, :after, :before {
  4. -webkit-box-sizing: border-box;
  5. -moz-box-sizing: border-box;
  6. box-sizing: border-box;
  7. }
  8. .fa-icon{
  9. width: auto;
  10. height: 1em; /* 或任意其它字体大小相对值 */
  11. /* 要在 Safari 中正常工作,需要再引入如下两行代码 */
  12. max-width: 100%;
  13. max-height: 100%;
  14. vertical-align: middle;
  15. }
  16. .fm2-container{
  17. background: #fff;
  18. height: 100%;
  19. border: 1px solid #e0e0e0;
  20. .el-container{
  21. height: 100% !important;
  22. }
  23. &>.el-container{
  24. background: #fff;
  25. }
  26. .fm2-main{
  27. // position: relative;
  28. &>.el-container{
  29. position: absolute;
  30. top: 0;
  31. bottom: 0;
  32. left: 0;
  33. right: 0;
  34. }
  35. }
  36. main{
  37. padding: 0;
  38. }
  39. footer{
  40. height: 30px;
  41. line-height: 30px;
  42. border-top: 1px solid #e0e0e0;
  43. font-size: 12px;
  44. text-align: right;
  45. color: $primary-color;
  46. background: #fafafa;
  47. a{
  48. color: $primary-color;
  49. }
  50. }
  51. }
  52. .center-container{
  53. border-left: 1px solid #e0e0e0;
  54. border-right: 1px solid #e0e0e0;
  55. .btn-bar{
  56. height: 45px;
  57. line-height: 45px;
  58. font-size: 18px;
  59. border-bottom: solid 2px #e4e7ed;
  60. text-align: right;
  61. }
  62. .el-main{
  63. padding: 0;
  64. position: relative;
  65. background: #fafafa;
  66. }
  67. }
  68. .components-list{
  69. padding: 8px 0;
  70. width: 100%;
  71. height: 100%;
  72. .widget-cate{
  73. padding: 8px 12px;
  74. font-size: 13px;
  75. }
  76. ul{
  77. position: relative;
  78. overflow: hidden;
  79. padding: 0 10px 10px;
  80. margin: 0;
  81. }
  82. .form-edit-widget-label{
  83. font-size: 12px;
  84. display: block;
  85. width: 48%;
  86. line-height: 26px;
  87. position: relative;
  88. float: left;
  89. left: 0;
  90. overflow: hidden;
  91. text-overflow: ellipsis;
  92. white-space: nowrap;
  93. margin: 1%;
  94. color: #333;
  95. border: 1px solid #F4F6FC;
  96. a{
  97. color: #333;
  98. }
  99. &:hover{
  100. color: $primary-color;
  101. border: 1px dashed $primary-color;
  102. a{
  103. color: $primary-color;
  104. }
  105. }
  106. &>a{
  107. display: block;
  108. cursor: move;
  109. background: #F4F6FC;
  110. border: 1px solid #F4F6FC;
  111. .icon{
  112. margin-right: 6px;
  113. margin-left: 8px;
  114. font-size: 14px;
  115. display: inline-block;
  116. vertical-align: middle;
  117. }
  118. span{
  119. display: inline-block;
  120. vertical-align: middle;
  121. }
  122. }
  123. }
  124. }
  125. .widget-form-container{
  126. position: absolute;
  127. top: 0;
  128. left: 0;
  129. right: 0;
  130. bottom: 0;
  131. .form-empty{
  132. position: absolute;
  133. text-align: center;
  134. width: 300px;
  135. height: 20px;
  136. font-size: 20px;
  137. top: 50%;
  138. width: 100%;
  139. margin-top: -10px;
  140. color: #ccc;
  141. }
  142. form{
  143. height: calc(100% - 10px);
  144. >div{
  145. height: calc(100% - 10px);
  146. }
  147. }
  148. .widget-form-list{
  149. background: #fff;
  150. // border: 1px dashed #999;
  151. border: 1px dashed #999;
  152. min-height: 100%;
  153. margin: 10px;
  154. .widget-view-model{
  155. position: absolute;
  156. top: -8px;
  157. right: 3px;
  158. font-size: 12px;
  159. color: #67C23A;
  160. // opacity: 0.8;
  161. z-index: 9;
  162. font-weight: 500;
  163. }
  164. .widget-col-list{
  165. min-height: 50px;
  166. border: 1px dashed #ccc;
  167. background: #fff;
  168. }
  169. .widget-view{
  170. padding-bottom: 18px;
  171. position: relative;
  172. border: 1px dashed rgba(170,170,170,0.5);
  173. // border: 1px dashed transparent;
  174. background-color: rgba(236, 245, 255, .3);
  175. margin: 2px;
  176. overflow: hidden;
  177. .el-form-item__content{
  178. position: static;
  179. // line-height: 1;
  180. }
  181. &.is_req{
  182. .el-form-item__label::before{
  183. content: '*';
  184. color: #f56c6c;
  185. margin-right: 4px;
  186. }
  187. }
  188. &.is_hidden{
  189. background: #fef0f0;
  190. }
  191. .widget-view-description{
  192. height: 15px;
  193. line-height: 15px;
  194. font-size:13px;
  195. margin-top: 6px;
  196. color:#909399;
  197. }
  198. .widget-view-action{
  199. position: absolute;
  200. right: 0;
  201. bottom: 0;
  202. height: 28px;
  203. line-height: 28px;
  204. background: $primary-color;
  205. z-index: 9;
  206. i{
  207. font-size: 14px;
  208. color: #fff;
  209. margin: 0 5px;
  210. cursor: pointer;
  211. }
  212. }
  213. .widget-view-drag{
  214. position: absolute;
  215. left: -2px;
  216. top: -2px;
  217. bottom: -18px;
  218. height: 28px;
  219. line-height: 28px;
  220. background: $primary-color;
  221. z-index: 9;
  222. // display: none;
  223. i{
  224. font-size: 14px;
  225. color: #fff;
  226. margin: 0 5px;
  227. cursor: move;
  228. }
  229. }
  230. &::after{
  231. position: absolute;
  232. left: 0;
  233. right: 0;
  234. top: 0;
  235. bottom: 0;
  236. display: block;
  237. z-index: 8;
  238. content: '';
  239. }
  240. &:hover{
  241. background: $primary-background-color;
  242. outline: 1px solid $primary-color;
  243. outline-offset: 0px;
  244. &.active{
  245. outline: 2px solid $primary-color;
  246. border: 1px solid $primary-color;
  247. outline-offset: 0;
  248. }
  249. .widget-view-drag{
  250. display: block;
  251. }
  252. }
  253. &.active{
  254. outline: 2px solid $primary-color;
  255. border: 1px solid $primary-color;
  256. }
  257. &.ghost{
  258. background: #F56C6C;
  259. border: 2px solid #F56C6C;
  260. outline-width: 0;
  261. height: 3px;
  262. box-sizing: border-box;
  263. font-size: 0;
  264. content: '';
  265. overflow: hidden;
  266. padding: 0;
  267. margin: 2px;
  268. }
  269. }
  270. .widget-table{
  271. padding-bottom: 0;
  272. padding: 5px;
  273. background-color: rgba(253,246,236, .3);
  274. .widget-table-wrapper{
  275. min-height: 50px;
  276. background: #fff;
  277. display: flex;
  278. justify-content: flex-start;
  279. .widget-table-row{
  280. td{
  281. border-bottom: 0;
  282. }
  283. }
  284. .widget-table-left{
  285. width: 51px;
  286. border-left: 1px solid #EBEEF5;
  287. border-right: 1px solid #EBEEF5;
  288. border-top: 1px solid #EBEEF5;
  289. flex: none;
  290. overflow: hidden;
  291. .el-table__body-wrapper{
  292. overflow: hidden;
  293. }
  294. .el-table__fixed{
  295. min-height: 88px !important;
  296. }
  297. }
  298. .widget-table-view{
  299. border: 1px solid #EBEEF5;
  300. width: 200px;
  301. float: left;
  302. height: 100%;
  303. position: relative;
  304. display: block;
  305. .el-table{
  306. height: 100%;
  307. }
  308. .el-table th.required>div::before{
  309. content: '*';
  310. color: #f56c6c;
  311. margin-right: 4px;
  312. background: transparent;
  313. vertical-align: top;
  314. }
  315. &.is_req{
  316. .el-form-item__label::before{
  317. content: '*';
  318. color: #f56c6c;
  319. margin-right: 4px;
  320. }
  321. }
  322. &.is_hidden{
  323. background: #fef0f0;
  324. }
  325. .widget-view-description{
  326. height: 15px;
  327. line-height: 15px;
  328. font-size:13px;
  329. margin-top: 6px;
  330. color:#909399;
  331. }
  332. .widget-view-action{
  333. position: absolute;
  334. right: 0;
  335. bottom: 0;
  336. height: 28px;
  337. line-height: 28px;
  338. background: $primary-color;
  339. z-index: 9;
  340. i{
  341. font-size: 14px;
  342. color: #fff;
  343. margin: 0 5px;
  344. cursor: pointer;
  345. }
  346. }
  347. .widget-view-drag{
  348. position: absolute;
  349. left: -2px;
  350. top: -2px;
  351. bottom: -18px;
  352. height: 28px;
  353. line-height: 28px;
  354. background: $primary-color;
  355. z-index: 9;
  356. // display: none;
  357. i{
  358. font-size: 14px;
  359. color: #fff;
  360. margin: 0 5px;
  361. cursor: move;
  362. }
  363. }
  364. &::after{
  365. position: absolute;
  366. left: 0;
  367. right: 0;
  368. top: 0;
  369. bottom: 0;
  370. display: block;
  371. content: '';
  372. }
  373. &::before{
  374. display: none;
  375. }
  376. &:hover{
  377. background: $primary-background-color;
  378. outline: 1px solid $primary-color;
  379. outline-offset: -1px;
  380. &.active{
  381. // outline: 1px solid $primary-color;
  382. border: 1px solid $primary-color;
  383. outline: 1px solid $primary-color;
  384. outline-offset: -1px;
  385. }
  386. .widget-view-drag{
  387. display: block;
  388. }
  389. }
  390. &.active{
  391. outline: 1px solid $primary-color;
  392. border: 1px solid $primary-color;
  393. outline-offset: -1px;
  394. }
  395. &.ghost{
  396. background: #F56C6C;
  397. outline-width: 0;
  398. width: 5px !important;
  399. box-sizing: border-box;
  400. font-size: 0;
  401. content: '';
  402. overflow: hidden;
  403. padding: 0;
  404. position: relative;
  405. outline: none !important;
  406. border: 0 !important;
  407. margin: 2px;
  408. &::after{
  409. background: #F56C6C;
  410. position: absolute;
  411. top: 0;
  412. left: 0;
  413. bottom: 0;
  414. right: 0;
  415. z-index: 9999;
  416. content: '';
  417. outline: none;
  418. }
  419. }
  420. }
  421. .widget-table-content{
  422. width:100%;
  423. // border: 1px dashed #ccc;
  424. outline: 1px dashed #ccc;
  425. background: #fff;
  426. flex:1;
  427. margin: 0 1px;
  428. overflow: auto;
  429. position: relative;
  430. .table-empty{
  431. position: absolute;
  432. text-align: center;
  433. width: 300px;
  434. height: 20px;
  435. font-size: 18px;
  436. top: 30px;
  437. left: 50%;
  438. margin-left: -150px;
  439. color: #ccc;
  440. }
  441. &>div{
  442. height: 100%;
  443. }
  444. .widget-table-col{
  445. height: 100%;
  446. .ghost{
  447. background: #F56C6C;
  448. // border: 2px solid #F56C6C;
  449. position: relative;
  450. content: '';
  451. float: left;
  452. height: calc(100% - 4px);
  453. width: 5px !important;
  454. list-style: none;
  455. font-size: 0;
  456. overflow: hidden;
  457. outline: none;
  458. margin: 2px;
  459. &::after{
  460. background: #F56C6C;
  461. position: absolute;
  462. top: 0;
  463. left: 0;
  464. bottom: 0;
  465. right: 0;
  466. z-index: 9999;
  467. content: '';
  468. outline: none;
  469. }
  470. }
  471. }
  472. }
  473. }
  474. &.active{
  475. outline: 2px solid #e6a23c;
  476. border: 1px solid #e6a23c;
  477. }
  478. &:hover{
  479. background: #fdf6ec;
  480. outline: 1px solid #e6a23c;
  481. outline-offset: 0px;
  482. &.active{
  483. outline: 2px solid #e6a23c;
  484. border: 1px solid #e6a23c;
  485. outline-offset: 0;
  486. }
  487. }
  488. .widget-view-action.widget-col-action{
  489. background: #e6a23c;
  490. }
  491. .widget-view-drag.widget-col-drag{
  492. background: #e6a23c;
  493. }
  494. &::after{
  495. display: none;
  496. }
  497. &.ghost{
  498. background: #F56C6C;
  499. outline-width: 0;
  500. height: 5px;
  501. box-sizing: border-box;
  502. font-size: 0;
  503. content: '';
  504. overflow: hidden;
  505. padding: 0;
  506. position: relative;
  507. outline: none;
  508. border: 0;
  509. margin: 2px;
  510. &::after{
  511. background: #F56C6C;
  512. position: absolute;
  513. top:0;
  514. left: 0;
  515. right: 0;
  516. bottom: 0;
  517. content: '';
  518. display: block;
  519. z-index: 999;
  520. }
  521. }
  522. }
  523. .widget-tab{
  524. padding: 5px;
  525. background-color: rgba(253,246,236, .3);
  526. &.active{
  527. outline: 2px solid #e6a23c;
  528. border: 1px solid #e6a23c;
  529. }
  530. &:hover{
  531. background: #fdf6ec;
  532. outline: 1px solid #e6a23c;
  533. outline-offset: 0px;
  534. &.active{
  535. outline: 2px solid #e6a23c;
  536. border: 1px solid #e6a23c;
  537. outline-offset: 0;
  538. }
  539. }
  540. &.ghost{
  541. background: #F56C6C;
  542. border: 2px solid #F56C6C;
  543. outline-width: 0;
  544. height: 3px;
  545. box-sizing: border-box;
  546. font-size: 0;
  547. content: '';
  548. overflow: hidden;
  549. padding: 0;
  550. margin: 2px;
  551. }
  552. .widget-view-action.widget-col-action{
  553. background: #e6a23c;
  554. }
  555. .widget-view-drag.widget-col-drag{
  556. background: #e6a23c;
  557. }
  558. &::after{
  559. display: none;
  560. }
  561. }
  562. .widget-col{
  563. padding-bottom: 0;
  564. padding: 5px;
  565. // margin-left: 2px !important;
  566. // margin-right: 2px !important;
  567. background-color: rgba(253,246,236, .3);
  568. position: relative;
  569. &.active{
  570. outline: 2px solid #e6a23c;
  571. border: 1px solid #e6a23c;
  572. }
  573. &:hover{
  574. background: #fdf6ec;
  575. outline: 1px solid #e6a23c;
  576. outline-offset: 0px;
  577. &.active{
  578. outline: 2px solid #e6a23c;
  579. border: 1px solid #e6a23c;
  580. outline-offset: 0;
  581. }
  582. }
  583. .el-col{
  584. min-height: 50px;
  585. }
  586. &.ghost{
  587. background: #F56C6C;
  588. border: 2px solid #F56C6C;
  589. outline-width: 0;
  590. height: 3px;
  591. box-sizing: border-box;
  592. font-size: 0;
  593. content: '';
  594. overflow: hidden;
  595. padding: 0;
  596. margin: 2px;
  597. display: block;
  598. }
  599. .widget-view-action.widget-col-action{
  600. background: #e6a23c;
  601. }
  602. .widget-view-drag.widget-col-drag{
  603. background: #e6a23c;
  604. }
  605. &::after{
  606. display: none;
  607. }
  608. }
  609. .ghost{
  610. background: #F56C6C;
  611. border: 2px solid #F56C6C;
  612. outline-width: 0;
  613. height: 3px;
  614. box-sizing: border-box;
  615. font-size: 0;
  616. content: '';
  617. overflow: hidden;
  618. padding: 0;
  619. margin: 2px;
  620. }
  621. }
  622. .ghost{
  623. background: #F56C6C;
  624. border: 2px solid #F56C6C;
  625. position: relative;
  626. margin: 2px;
  627. &::after{
  628. background: #F56C6C;
  629. }
  630. }
  631. li.ghost{
  632. height: 5px;
  633. list-style: none;
  634. font-size: 0;
  635. overflow: hidden;
  636. margin: 2px;
  637. }
  638. .widget-grid{
  639. background: #F4F6FC;
  640. position: relative;
  641. border-left: 5px solid transparent;
  642. padding: 5px;
  643. margin: 0 !important;
  644. &.active{
  645. border-left: 5px solid $primary-color;
  646. background: #b3d8ff;
  647. }
  648. }
  649. .widget-grid-container{
  650. &.ghost{
  651. background: #F56C6C;
  652. border: 2px solid #F56C6C;
  653. outline-width: 0;
  654. height: 3px;
  655. box-sizing: border-box;
  656. font-size: 0;
  657. content: '';
  658. overflow: hidden;
  659. padding: 0;
  660. margin: 2px;
  661. }
  662. }
  663. .ghost{
  664. background: #F56C6C;
  665. border: 2px solid #F56C6C;
  666. position: relative;
  667. margin: 2px;
  668. &::after{
  669. background: #F56C6C;
  670. }
  671. }
  672. li.ghost{
  673. height: 5px;
  674. list-style: none;
  675. font-size: 0;
  676. overflow: hidden;
  677. margin: 2px;
  678. }
  679. }
  680. .widget-config-container{
  681. // position: relative;
  682. .el-header{
  683. border-bottom: solid 2px #e4e7ed;
  684. padding: 0 5px;
  685. }
  686. .config-tab{
  687. height: 45px;
  688. line-height: 45px;
  689. display: inline-block;
  690. width: 145px;
  691. text-align: center;
  692. font-size: 14px;
  693. font-weight: 500;
  694. position: relative;
  695. cursor: pointer;
  696. &.active{
  697. border-bottom: solid 2px $primary-color;
  698. }
  699. }
  700. .config-content{
  701. padding: 10px;
  702. position: relative;
  703. .empty{
  704. position: absolute;
  705. text-align: center;
  706. width: 100px;
  707. height: 20px;
  708. font-size: 20px;
  709. top: 50%;
  710. width: 90%;
  711. margin-top: -10px;
  712. color: #ccc;
  713. }
  714. .el-form-item__label{
  715. padding: 0;
  716. font-weight: 500;
  717. }
  718. .el-form-item {
  719. border-bottom: solid 1px #e1e1e1;
  720. padding-bottom: 10px;
  721. }
  722. .validate-block{
  723. +.validate-block{
  724. margin-top: 10px;
  725. }
  726. .message-input{
  727. margin-left: 24px;
  728. width: 240px;
  729. }
  730. }
  731. }
  732. .ghost{
  733. background: #fff;
  734. border: 1px dashed $primary-color;
  735. margin: 2px;
  736. &::after{
  737. background: #fff;
  738. display: block;
  739. content: '';
  740. position: absolute;
  741. top: 0;
  742. left: 0;
  743. right: 0;
  744. bottom: 0;
  745. }
  746. }
  747. ul{
  748. margin: 0;
  749. padding: 0;
  750. }
  751. li.ghost{
  752. list-style: none;
  753. font-size: 0;
  754. display: block;
  755. position: relative;
  756. margin: 2px;
  757. }
  758. }
  759. .viewer-container{
  760. z-index: 99999 !important;
  761. }