card-design.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782
  1. // card-design
  2. .card-design {
  3. color: #000;
  4. .design-top {
  5. position: fixed;
  6. width: 100%;
  7. padding: 10px 0;
  8. height: 60px;
  9. top: 0;
  10. left: 0;
  11. z-index: 99;
  12. color: #fff;
  13. line-height: 40px;
  14. background: $--color-blue;
  15. &-logo {
  16. width: 240px;
  17. float: left;
  18. color: #fff;
  19. height: 60px;
  20. margin-top: -10px;
  21. padding: 10px 20px;
  22. font-size: 20px;
  23. text-align: left;
  24. transition: width 0.2s ease;
  25. .icon {
  26. margin-right: 12px;
  27. margin-top: -2px;
  28. cursor: pointer;
  29. }
  30. }
  31. &-info {
  32. padding-right: 20px;
  33. float: right;
  34. height: 40px;
  35. line-height: 40px;
  36. position: relative;
  37. color: $--color-text-regular;
  38. cursor: pointer;
  39. .info-help {
  40. display: inline-block;
  41. vertical-align: top;
  42. color: #fff;
  43. font-size: 20px;
  44. .icon {
  45. margin-right: 12px;
  46. margin-top: -2px;
  47. }
  48. }
  49. }
  50. }
  51. .design-main {
  52. padding-top: 60px;
  53. }
  54. // page-box
  55. .page-box {
  56. // box-shadow: $--shadow-light;
  57. box-shadow: 0 0 1px #333;
  58. &::before {
  59. content: "";
  60. position: absolute;
  61. width: 100%;
  62. height: 100%;
  63. top: 0;
  64. left: 0;
  65. z-index: 7;
  66. // background-color: rgba($color: #ffffff, $alpha: 0.7);
  67. }
  68. }
  69. .page-column-main {
  70. &::before {
  71. content: "";
  72. display: block;
  73. position: absolute;
  74. top: 0;
  75. left: 0;
  76. right: 0;
  77. bottom: 0;
  78. z-index: 8;
  79. border: 1px dashed #d0d0d0;
  80. }
  81. }
  82. .page-column-element {
  83. .element-item-error {
  84. box-shadow: 0 0 10px inset $--color-danger;
  85. }
  86. > .element-resize {
  87. width: 100% !important;
  88. }
  89. .element-resize {
  90. > .resize-control {
  91. > .control-point,
  92. > .control-line {
  93. display: none;
  94. }
  95. }
  96. &:hover {
  97. > .resize-control {
  98. > .control-line {
  99. display: block;
  100. }
  101. }
  102. }
  103. &-act {
  104. > .resize-control {
  105. > .control-point,
  106. > .control-line {
  107. display: block;
  108. }
  109. }
  110. }
  111. }
  112. .element-resize-compact {
  113. > .resize-control {
  114. > .control-line {
  115. display: block;
  116. }
  117. }
  118. &:hover {
  119. > .resize-control {
  120. > .control-line {
  121. border-color: #4794b3;
  122. }
  123. }
  124. }
  125. &.element-resize-act {
  126. > .resize-control {
  127. > .control-line {
  128. border-color: #4794b3;
  129. &-left,
  130. &-right {
  131. border-left-style: solid;
  132. }
  133. &-top,
  134. &-bottom {
  135. border-top-style: solid;
  136. }
  137. }
  138. }
  139. }
  140. }
  141. .element-item-topic-number {
  142. position: absolute;
  143. left: -28px;
  144. top: 0;
  145. width: 24px;
  146. height: 24px;
  147. z-index: 99;
  148. line-height: 24px;
  149. font-size: 14px;
  150. text-align: center;
  151. background-color: $--color-primary;
  152. color: #fff;
  153. border-radius: 50% 0 50% 50%;
  154. }
  155. // 编辑时,小题扩展答题区之间用虚线
  156. .element-item {
  157. &-explain {
  158. &::before {
  159. border-bottom: 1px dashed #333;
  160. }
  161. }
  162. &-type-last {
  163. &::before {
  164. border-bottom: 1px solid #333;
  165. }
  166. }
  167. }
  168. &:last-child {
  169. .element-item {
  170. &::before {
  171. border-bottom: 1px solid #333;
  172. }
  173. }
  174. .element-item-card-head.element-item-type-pre {
  175. &::before {
  176. border-bottom: none;
  177. }
  178. }
  179. }
  180. }
  181. // page-main-outer
  182. .page-main-outer {
  183. z-index: 1;
  184. background-color: rgba($color: #ffffff, $alpha: 0.7);
  185. &-act {
  186. z-index: 19;
  187. }
  188. }
  189. // design-other-pages
  190. .design-other-pages {
  191. position: absolute;
  192. width: 2000px;
  193. left: -9999px;
  194. top: 0;
  195. z-index: 1000;
  196. visibility: hidden;
  197. }
  198. // card-head-sample
  199. .card-head-sample {
  200. position: absolute;
  201. width: 2000px;
  202. left: -9999px;
  203. top: 0;
  204. z-index: 1001;
  205. visibility: hidden;
  206. }
  207. }
  208. .design-head {
  209. position: fixed;
  210. top: 60px;
  211. left: 270px;
  212. right: 0;
  213. height: 150px;
  214. z-index: 99;
  215. padding: 20px 40px;
  216. background: $--color-background;
  217. &::after {
  218. content: "";
  219. display: block;
  220. position: absolute;
  221. width: 100%;
  222. height: 36px;
  223. left: 0;
  224. bottom: 0;
  225. z-index: 2;
  226. background: linear-gradient(
  227. 180deg,
  228. rgba(245, 245, 245, 0) 0%,
  229. rgba(238, 238, 238, 1) 100%
  230. );
  231. }
  232. &::before {
  233. content: "";
  234. display: block;
  235. position: absolute;
  236. width: 100%;
  237. height: 1px;
  238. left: 0;
  239. bottom: 0;
  240. z-index: 3;
  241. background: rgba(229, 229, 229, 1);
  242. }
  243. .design-control {
  244. overflow: hidden;
  245. position: relative;
  246. z-index: 9;
  247. }
  248. .control-right {
  249. float: right;
  250. width: 400px;
  251. line-height: 40px;
  252. text-align: right;
  253. .el-button {
  254. width: 100px;
  255. border-radius: 10px;
  256. }
  257. }
  258. .control-left {
  259. margin-right: 410px;
  260. white-space: nowrap;
  261. overflow-y: hidden;
  262. overflow-x: auto;
  263. .el-button {
  264. width: 80px;
  265. color: #bbb;
  266. font-weight: bold;
  267. background: rgba(245, 245, 245, 1);
  268. border-radius: 10px;
  269. }
  270. }
  271. }
  272. .design-steps {
  273. margin: 10px 0 30px;
  274. text-align: center;
  275. position: relative;
  276. height: 28px;
  277. &::after {
  278. content: "";
  279. position: absolute;
  280. width: 100%;
  281. left: 0;
  282. top: 14px;
  283. border-bottom: 1px dashed #999;
  284. z-index: 2;
  285. }
  286. .step-item {
  287. position: absolute;
  288. top: 0;
  289. z-index: 8;
  290. padding: 0 10px;
  291. &::after {
  292. content: "";
  293. position: absolute;
  294. width: 100%;
  295. left: 0;
  296. top: 14px;
  297. border-bottom: 1px solid #f5f5f5;
  298. z-index: 5;
  299. }
  300. > i {
  301. position: relative;
  302. display: inline-block;
  303. vertical-align: middle;
  304. height: 28px;
  305. width: 28px;
  306. border-radius: 50%;
  307. border: 2px solid $--color-primary;
  308. color: $--color-primary;
  309. line-height: 28px;
  310. font-weight: bold;
  311. z-index: 8;
  312. }
  313. > span {
  314. position: relative;
  315. display: inline-block;
  316. vertical-align: middle;
  317. margin-left: 14px;
  318. font-weight: bold;
  319. color: #999;
  320. z-index: 8;
  321. }
  322. &:first-child {
  323. left: 0;
  324. padding-left: 0;
  325. }
  326. &:last-child {
  327. right: 0;
  328. padding-right: 0;
  329. }
  330. &:nth-of-type(2) {
  331. left: 25%;
  332. transform: translateX(-50%);
  333. }
  334. &:nth-of-type(3) {
  335. left: 50%;
  336. transform: translateX(-50%);
  337. }
  338. &:nth-of-type(4) {
  339. left: 75%;
  340. transform: translateX(-50%);
  341. }
  342. }
  343. }
  344. .design-action {
  345. position: fixed;
  346. padding: 28px;
  347. top: 60px;
  348. left: 0;
  349. bottom: 0;
  350. width: 270px;
  351. z-index: 99;
  352. overflow-x: hidden;
  353. overflow-y: auto;
  354. background: linear-gradient(
  355. 90deg,
  356. rgba(247, 244, 248, 1) 0%,
  357. rgba(238, 238, 238, 1) 100%
  358. );
  359. &::before {
  360. content: "";
  361. display: block;
  362. position: absolute;
  363. height: 100%;
  364. width: 1px;
  365. right: 0;
  366. bottom: 0;
  367. z-index: 9;
  368. background: rgba(229, 229, 229, 1);
  369. }
  370. .action-part {
  371. margin-bottom: 5px;
  372. color: #999;
  373. &-title {
  374. padding-bottom: 10px;
  375. border-bottom: 1px solid #e5e5e5;
  376. }
  377. &-body {
  378. padding: 20px 0;
  379. }
  380. }
  381. // design-action
  382. .type-list {
  383. font-size: 0;
  384. }
  385. .type-item {
  386. font-size: 14px;
  387. display: inline-block;
  388. vertical-align: top;
  389. width: 50%;
  390. text-align: center;
  391. margin-bottom: 10px;
  392. border-radius: 10px;
  393. cursor: pointer;
  394. &:nth-of-type(even) {
  395. padding-left: 5px;
  396. }
  397. &:nth-of-type(odd) {
  398. padding-right: 5px;
  399. }
  400. .el-button {
  401. height: 40px;
  402. width: 100px;
  403. font-weight: bold;
  404. border-radius: 10px;
  405. background: rgba(245, 245, 245, 1);
  406. color: #999;
  407. &:hover {
  408. color: #fff;
  409. background: rgba(28, 208, 161, 1);
  410. box-shadow: 5px 5px 4px 0px rgba(28, 208, 161, 0.3);
  411. }
  412. }
  413. i {
  414. margin-right: 2px;
  415. font-size: 12px;
  416. }
  417. }
  418. }
  419. .design-body {
  420. position: relative;
  421. min-height: 1332px;
  422. background: #fff;
  423. padding: 180px 30px 30px 300px;
  424. }
  425. // topic-list
  426. .topic-list {
  427. position: absolute;
  428. top: -2000px;
  429. left: -5000px;
  430. z-index: auto;
  431. visibility: hidden;
  432. .element-item-card-head {
  433. width: 100% !important;
  434. height: auto !important;
  435. }
  436. .page-main-inner {
  437. overflow: hidden;
  438. }
  439. }
  440. // tool-tips
  441. .tool-tips {
  442. color: #999;
  443. }
  444. // page-prop-edit
  445. .page-prop-edit {
  446. .el-form-item {
  447. margin-bottom: 10px;
  448. }
  449. .el-form-item__label,
  450. .el-checkbox {
  451. color: #999;
  452. font-weight: bold;
  453. }
  454. .column-btn {
  455. width: 32px;
  456. height: 32px;
  457. padding: 2px 0;
  458. border-radius: 10px;
  459. .icon {
  460. margin-top: -2px;
  461. }
  462. &:hover {
  463. border-color: $--color-primary;
  464. }
  465. &:not(:first-child) {
  466. margin-left: 10px;
  467. }
  468. }
  469. .topicno-list {
  470. font-size: 0;
  471. line-height: 40px;
  472. li {
  473. display: inline-block;
  474. vertical-align: middle;
  475. margin: 0 5px 0 0;
  476. width: 24px;
  477. height: 24px;
  478. line-height: 24px;
  479. text-align: center;
  480. font-size: 14px;
  481. border-radius: 5px;
  482. background-color: $--color-primary;
  483. color: #fff;
  484. }
  485. }
  486. }
  487. // element-prop-edit
  488. .edit-dialog {
  489. .el-input-split {
  490. position: relative;
  491. display: inline-block;
  492. margin: 3px 10px;
  493. width: 10px;
  494. border-bottom: 2px solid #dddddd;
  495. }
  496. .el-input-number.is-without-controls {
  497. .el-input__inner {
  498. padding-left: 5px;
  499. padding-right: 5px;
  500. }
  501. }
  502. }
  503. // right-menu-body
  504. .right-menu-body {
  505. border: 1px solid #cccccc;
  506. border-radius: 5px;
  507. overflow: hidden;
  508. background-color: #fff;
  509. font-size: 14px;
  510. color: #666666;
  511. box-shadow: 5px 5px 4px 0px rgba(0, 0, 0, 0.1);
  512. li {
  513. padding: 6px;
  514. font-weight: 400;
  515. cursor: pointer;
  516. &:hover {
  517. background-color: #f6f6f6;
  518. color: $--color-primary;
  519. }
  520. &.li-danger:hover {
  521. color: $--color-danger;
  522. }
  523. &:not(:last-child) {
  524. border-bottom: 1px solid #dddddd;
  525. }
  526. }
  527. }
  528. // design-preview-frame
  529. .design-preview-frame {
  530. position: absolute;
  531. width: 1000px;
  532. height: 600px;
  533. left: -9999px;
  534. top: 0;
  535. z-index: 1001;
  536. visibility: hidden;
  537. }
  538. // card custom-select
  539. .custom-select {
  540. width: 100%;
  541. .select-preview {
  542. height: 40px;
  543. line-height: 36px;
  544. border: 1px solid #e0e0e0;
  545. border-radius: 5px;
  546. position: relative;
  547. overflow: hidden;
  548. cursor: pointer;
  549. &:hover {
  550. border-color: #b0b0b0;
  551. }
  552. &-main {
  553. padding: 0 30px 0 15px;
  554. }
  555. &-icon {
  556. position: absolute;
  557. top: 0;
  558. right: 0;
  559. width: 30px;
  560. height: 100%;
  561. background-color: #fff;
  562. text-align: center;
  563. }
  564. }
  565. }
  566. // color-select
  567. .color-item {
  568. display: inline-block;
  569. vertical-align: middle;
  570. width: 100px;
  571. height: 26px;
  572. }
  573. .color-menu .el-dropdown-menu__item {
  574. line-height: 30px;
  575. padding: 0 15px;
  576. }
  577. // line-style-select
  578. .style-item {
  579. display: inline-block;
  580. vertical-align: middle;
  581. width: 100px;
  582. border-bottom-width: 2px;
  583. border-bottom-color: #000;
  584. }
  585. .line-style-menu .el-dropdown-menu__item {
  586. line-height: 24px;
  587. padding: 0 10px;
  588. }
  589. // line-width-select
  590. .width-item {
  591. display: inline-block;
  592. vertical-align: middle;
  593. width: 100px;
  594. > i {
  595. display: inline-block;
  596. vertical-align: middle;
  597. width: 65px;
  598. border-bottom: 1pt solid #000;
  599. }
  600. > span {
  601. display: block;
  602. float: right;
  603. line-height: 28px;
  604. width: 40px;
  605. margin-right: -10px;
  606. text-align: center;
  607. }
  608. }
  609. .line-width-menu .el-dropdown-menu__item {
  610. line-height: 24px;
  611. padding: 0 10px;
  612. }
  613. .edit-dialog {
  614. .el-dialog__footer {
  615. text-align: right;
  616. }
  617. }
  618. // paper-params
  619. .paper-params {
  620. .params-dialog-title {
  621. font-size: 16px;
  622. > span {
  623. font-size: 14px;
  624. margin-left: 24px;
  625. color: $--color-text-regular;
  626. }
  627. }
  628. .params-main {
  629. margin-top: -10px;
  630. padding: 0 10px;
  631. }
  632. .params-head {
  633. margin-bottom: 20px;
  634. }
  635. .params-part {
  636. margin: 15px 0;
  637. }
  638. .params-title {
  639. margin-bottom: 10px;
  640. }
  641. .params-subtitle {
  642. margin-bottom: 10px;
  643. > span {
  644. display: inline-block;
  645. vertical-align: middle;
  646. &:first-child {
  647. margin-right: 20px;
  648. }
  649. }
  650. .el-input-number {
  651. width: 60px;
  652. margin: 0 5px;
  653. }
  654. }
  655. .param-sum-score {
  656. color: $--color-danger;
  657. }
  658. }
  659. // element-guide-lines
  660. .element-guide-lines {
  661. .guide-line {
  662. position: absolute;
  663. z-index: 999;
  664. &-x {
  665. border-bottom: 1px solid $--color-success;
  666. }
  667. &-y {
  668. border-left: 1px solid $--color-success;
  669. }
  670. }
  671. }
  672. @media screen and (max-width: 1600px) {
  673. .card-design {
  674. .design-top {
  675. height: 50px;
  676. &-logo {
  677. width: 200px;
  678. height: 50px;
  679. margin-top: -10px;
  680. padding: 10px 15px;
  681. font-size: 15px;
  682. line-height: 30px;
  683. .icon {
  684. width: 24px;
  685. height: 24px;
  686. margin-right: 8px;
  687. }
  688. }
  689. &-info {
  690. padding-right: 15px;
  691. height: 30px;
  692. line-height: 30px;
  693. .info-help {
  694. font-size: 15px;
  695. .icon {
  696. width: 24px;
  697. height: 24px;
  698. margin-right: 8px;
  699. }
  700. }
  701. }
  702. }
  703. .design-main {
  704. padding-top: 50px;
  705. }
  706. .design-action {
  707. padding: 20px 15px;
  708. top: 50px;
  709. width: 230px;
  710. .type-item .el-button {
  711. padding: 10px 0;
  712. width: 90px;
  713. }
  714. }
  715. .design-head {
  716. top: 50px;
  717. left: 230px;
  718. padding: 10px 20px;
  719. height: 110px;
  720. .control-right .el-button {
  721. width: 90px;
  722. }
  723. }
  724. .design-steps {
  725. margin: 10px 0;
  726. }
  727. .design-body {
  728. padding: 140px 30px 30px 250px;
  729. min-height: 1132px;
  730. }
  731. }
  732. }