card-preview.scss 23 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240
  1. // card-preview
  2. .card-preview {
  3. padding: 10px 0;
  4. background-color: #f0f0f0;
  5. color: #000;
  6. .page-box {
  7. margin: 10px auto;
  8. box-shadow: 0 0 4px #ddd;
  9. }
  10. .element-item {
  11. width: 100% !important;
  12. }
  13. }
  14. .card-print {
  15. padding: 0;
  16. .page-box {
  17. margin: 0 auto;
  18. box-shadow: none;
  19. page-break-after: always;
  20. }
  21. }
  22. // page-box
  23. .page-box {
  24. position: relative;
  25. // width: 420mm;
  26. // height: 297mm;
  27. // width: 1587px;
  28. width: 1586px;
  29. height: 1122px;
  30. background: #fff;
  31. margin: 0 auto;
  32. font-weight: normal;
  33. .page-main {
  34. height: 100%;
  35. position: relative;
  36. white-space: nowrap;
  37. margin: 0 -10px;
  38. &-3 {
  39. .page-column {
  40. width: 33.33%;
  41. }
  42. .page-column-forbid-area {
  43. &::before {
  44. transform: rotate(64.6555deg);
  45. }
  46. &::after {
  47. transform: rotate(-64.6555deg);
  48. }
  49. }
  50. }
  51. &-4 {
  52. .page-column {
  53. width: 25%;
  54. }
  55. .page-column-forbid-area {
  56. &::before {
  57. transform: rotate(70.3109deg);
  58. }
  59. &::after {
  60. transform: rotate(-70.3109deg);
  61. }
  62. }
  63. }
  64. }
  65. }
  66. // 分栏间距,默认20px
  67. // page-main-inner
  68. .page-main-inner {
  69. position: absolute;
  70. width: 100%;
  71. height: 100%;
  72. top: 0;
  73. left: 0;
  74. padding: 60px 80px 86px;
  75. z-index: 9;
  76. font-size: 0;
  77. }
  78. // page-main-outer
  79. .page-main-outer {
  80. position: absolute;
  81. top: 0;
  82. left: 0;
  83. right: 0;
  84. bottom: 0;
  85. z-index: 7;
  86. background-color: transparent;
  87. overflow: hidden;
  88. }
  89. .page-column {
  90. display: inline-block;
  91. vertical-align: middle;
  92. position: relative;
  93. height: 100%;
  94. width: 50%;
  95. font-size: 14px;
  96. padding: 0 10px;
  97. &-forbid-area {
  98. position: absolute;
  99. top: 0;
  100. left: 0;
  101. bottom: 0;
  102. right: 0;
  103. z-index: 1;
  104. border: 1px solid #333;
  105. overflow: hidden;
  106. &::before {
  107. content: "";
  108. display: block;
  109. position: absolute;
  110. width: 1200px;
  111. border-bottom: 1px solid rgba(172, 172, 172, 1);
  112. top: 0;
  113. left: 0;
  114. transform: rotate(54.216deg);
  115. transform-origin: left;
  116. z-index: 1;
  117. }
  118. &::after {
  119. content: "";
  120. display: block;
  121. position: absolute;
  122. width: 1200px;
  123. border-bottom: 1px solid rgba(172, 172, 172, 1);
  124. bottom: 0;
  125. left: 0;
  126. transform: rotate(-54.216deg);
  127. transform-origin: left;
  128. z-index: 1;
  129. }
  130. > p {
  131. color: #333;
  132. padding: 20px;
  133. position: absolute;
  134. top: 50%;
  135. left: 50%;
  136. z-index: 9;
  137. transform: translate(-50%, -50%);
  138. font-weight: bold;
  139. font-size: 30px;
  140. color: #999;
  141. background-color: #fff;
  142. }
  143. }
  144. &-main {
  145. position: relative;
  146. height: 100%;
  147. }
  148. &-body {
  149. position: absolute;
  150. top: 0;
  151. bottom: 0;
  152. left: 0;
  153. right: 0;
  154. z-index: 9;
  155. }
  156. &-element {
  157. .element-item {
  158. position: relative;
  159. &::before {
  160. content: "";
  161. position: absolute;
  162. width: 100%;
  163. height: 100%;
  164. top: 0;
  165. left: 0;
  166. box-sizing: border-box;
  167. z-index: 2;
  168. border: 1px solid #333;
  169. border-top: 0;
  170. }
  171. > div {
  172. z-index: 9;
  173. position: relative;
  174. }
  175. &-card-head {
  176. &::before {
  177. border: 0;
  178. }
  179. }
  180. &-topic-head {
  181. &::before {
  182. border: 0;
  183. }
  184. }
  185. &-fill-question,
  186. &-fill-line {
  187. &::before {
  188. border-bottom: 0;
  189. }
  190. }
  191. // 预览时,小题扩展答题区之间隐藏分割线
  192. &-explain {
  193. &::before {
  194. border-bottom-color: transparent;
  195. }
  196. }
  197. &-type-last {
  198. &::before {
  199. border-bottom: 1px solid #333;
  200. }
  201. }
  202. }
  203. &:last-child {
  204. .element-item {
  205. &::before {
  206. border-bottom: 1px solid #333;
  207. }
  208. }
  209. .element-item-card-head.element-item-type-pre {
  210. &::before {
  211. border-bottom: none;
  212. }
  213. }
  214. }
  215. }
  216. }
  217. // locator
  218. .page-locators {
  219. position: absolute;
  220. top: 60px;
  221. left: 80px;
  222. right: 80px;
  223. bottom: 86px;
  224. z-index: 8;
  225. }
  226. .page-locator-group {
  227. position: absolute;
  228. top: 0;
  229. bottom: 0;
  230. width: 24px;
  231. &:first-child {
  232. left: 0;
  233. }
  234. &:nth-of-type(2) {
  235. left: 50%;
  236. margin-left: -12px;
  237. }
  238. &:last-child {
  239. right: 96px;
  240. }
  241. li {
  242. position: absolute;
  243. width: 24px;
  244. border-bottom: 16px solid #000;
  245. z-index: 99;
  246. &:first-child {
  247. top: -20px;
  248. }
  249. &:last-child {
  250. bottom: -46px;
  251. }
  252. }
  253. }
  254. .page-box-1 {
  255. .page-locator-group {
  256. &:first-child {
  257. left: -30px;
  258. }
  259. }
  260. }
  261. // page-number
  262. .page-number {
  263. position: absolute;
  264. bottom: 40px;
  265. &-rect {
  266. left: 152px;
  267. }
  268. &-rect-list {
  269. font-size: 0;
  270. li {
  271. display: inline-block;
  272. vertical-align: top;
  273. font-size: 14px;
  274. width: 24px;
  275. height: 16px;
  276. border: 1px solid #000;
  277. margin-right: 10px;
  278. &.rect-li-act {
  279. height: 0;
  280. border: none;
  281. border-bottom: 16px solid #000;
  282. }
  283. }
  284. }
  285. &-text {
  286. right: 25%;
  287. }
  288. &-text-cont {
  289. height: 16px;
  290. line-height: 16px;
  291. }
  292. }
  293. // elem
  294. .elem {
  295. &-title {
  296. padding: 10px;
  297. font-size: 14px;
  298. font-weight: bold;
  299. color: rgba(0, 0, 0, 1);
  300. line-height: 1;
  301. white-space: normal;
  302. }
  303. &-body {
  304. padding: 10px;
  305. }
  306. }
  307. // grid
  308. .grid-container {
  309. margin-left: -10px;
  310. margin-right: -10px;
  311. }
  312. .grid-row {
  313. display: table;
  314. width: 100%;
  315. border-spacing: 10px 0;
  316. border-collapse: separate;
  317. &:nth-of-type(2) {
  318. margin-top: 10px;
  319. }
  320. .grid-col {
  321. display: table-cell;
  322. width: 50%;
  323. vertical-align: top;
  324. border: 1px solid #333;
  325. &-dash {
  326. border-style: dashed;
  327. vertical-align: middle;
  328. }
  329. }
  330. }
  331. // card-head
  332. .card-head {
  333. &-top {
  334. text-align: center;
  335. color: #000;
  336. .el-input > input {
  337. text-align: center;
  338. border-radius: 0;
  339. border: 0;
  340. background-color: transparent;
  341. box-shadow: 0 0 1px #ccc;
  342. color: #000;
  343. }
  344. }
  345. &-title {
  346. font-size: 24px;
  347. font-family: "楷体";
  348. font-weight: bold;
  349. .el-input__inner {
  350. font-size: 24px;
  351. font-family: "楷体";
  352. font-weight: bold;
  353. line-height: 33px;
  354. height: 33px;
  355. }
  356. > h1 {
  357. line-height: 33px;
  358. }
  359. }
  360. &-subtitle {
  361. height: 23px;
  362. font-family: $--font-family;
  363. font-size: 14px;
  364. font-weight: bold;
  365. .el-input__inner {
  366. line-height: 23px;
  367. height: 23px;
  368. }
  369. > p {
  370. padding: 0 10px;
  371. line-height: 23px;
  372. overflow: hidden;
  373. }
  374. }
  375. &-title-desc {
  376. height: 22px;
  377. font-family: $--font-family;
  378. font-size: 14px;
  379. font-weight: bold;
  380. .el-input__inner {
  381. line-height: 22px;
  382. height: 22px;
  383. }
  384. > p {
  385. padding: 0 10px;
  386. line-height: 22px;
  387. overflow: hidden;
  388. }
  389. }
  390. &-body {
  391. font-weight: normal;
  392. .el-col {
  393. padding-top: 5px;
  394. padding-bottom: 5px;
  395. }
  396. &-spin {
  397. padding: 5px 12px;
  398. white-space: normal;
  399. word-break: break-all;
  400. }
  401. .stdinfo-item {
  402. height: 30px;
  403. line-height: 30px;
  404. position: relative;
  405. overflow: hidden;
  406. &::after {
  407. content: "";
  408. display: block;
  409. position: absolute;
  410. width: 100%;
  411. border-bottom: 1px solid #333;
  412. bottom: 6px;
  413. left: 0;
  414. z-index: 1;
  415. }
  416. > span {
  417. z-index: 2;
  418. display: block;
  419. position: relative;
  420. font-weight: bold;
  421. font-size: 14px;
  422. &:first-child {
  423. float: left;
  424. background-color: #fff;
  425. text-align: justify;
  426. &::after {
  427. content: "";
  428. display: inline-block;
  429. width: 100%;
  430. height: 0;
  431. line-height: 0;
  432. }
  433. }
  434. &:nth-of-type(2) {
  435. float: left;
  436. width: 20px;
  437. background-color: #fff;
  438. }
  439. &:last-child {
  440. margin-left: 80px;
  441. height: 100%;
  442. overflow: hidden;
  443. }
  444. }
  445. }
  446. .head-stdno {
  447. height: 100%;
  448. padding: 0;
  449. .stdno-empty {
  450. font-weight: bold;
  451. letter-spacing: 3px;
  452. text-align: center;
  453. }
  454. .stdno-fill {
  455. min-height: 284px;
  456. height: 100%;
  457. position: relative;
  458. &-rect {
  459. font-size: 0;
  460. height: 27px;
  461. border-bottom: 1px solid #333;
  462. }
  463. &-number {
  464. display: inline-block;
  465. vertical-align: top;
  466. width: 7.692%;
  467. height: 100%;
  468. &:not(:last-child) {
  469. border-right: 1px solid #333;
  470. }
  471. }
  472. &-head {
  473. position: absolute;
  474. width: 100%;
  475. height: 51px;
  476. top: 0;
  477. left: 0;
  478. z-index: 9;
  479. > h5 {
  480. border-bottom: 1px solid #333;
  481. line-height: 24px;
  482. font-size: 16px;
  483. font-weight: bold;
  484. text-align: center;
  485. }
  486. }
  487. &-body {
  488. position: absolute;
  489. top: 0;
  490. bottom: 0;
  491. padding-top: 51px;
  492. overflow: hidden;
  493. display: table;
  494. width: 100%;
  495. }
  496. &-list {
  497. display: table-cell;
  498. width: 7.692%;
  499. padding: 1px 0;
  500. }
  501. &-option {
  502. margin: 8px auto;
  503. width: 20px;
  504. height: 14px;
  505. font-size: 12px;
  506. line-height: 1;
  507. text-align: center;
  508. color: #000;
  509. // border-rect
  510. border: 1px solid #000;
  511. font-family: "Times New Roman", Arial, sans-serif;
  512. > i {
  513. display: inline-block;
  514. transform: scale(0.67, 0.67);
  515. }
  516. }
  517. }
  518. .stdno-auto {
  519. &-barcode {
  520. height: 70px;
  521. text-align: center;
  522. > img {
  523. display: block;
  524. height: 50px;
  525. width: 300px;
  526. margin: 0 auto;
  527. }
  528. > p {
  529. line-height: 20px;
  530. }
  531. }
  532. }
  533. }
  534. .head-notice {
  535. > h4 {
  536. font-weight: bold;
  537. margin-bottom: 8px;
  538. }
  539. &-cont {
  540. line-height: 1.5;
  541. font-size: 12px;
  542. margin-bottom: 5px;
  543. > span {
  544. display: block;
  545. &:first-child {
  546. width: 20px;
  547. float: left;
  548. }
  549. &:last-child {
  550. margin-left: 20px;
  551. }
  552. }
  553. }
  554. &-exam-number-fill {
  555. span {
  556. display: inline;
  557. &:first-child {
  558. float: none;
  559. }
  560. &:last-child {
  561. margin: 0;
  562. }
  563. }
  564. }
  565. }
  566. .head-dynamic {
  567. padding: 0;
  568. font-size: 12px;
  569. border-spacing: 0;
  570. border-collapse: collapse;
  571. &-part:not(:last-child) {
  572. border-bottom: 1px solid #000;
  573. }
  574. &-write {
  575. padding: 5px 12px;
  576. .stdinfo-item {
  577. margin-bottom: 0;
  578. }
  579. > p {
  580. line-height: 18px;
  581. }
  582. }
  583. &-missfill {
  584. display: table;
  585. width: 100%;
  586. }
  587. &-miss {
  588. padding: 8px 10px;
  589. display: table-cell;
  590. vertical-align: middle;
  591. width: 133px;
  592. border-right: 1px solid #000;
  593. .head-dynamic-content {
  594. height: 32px;
  595. }
  596. span {
  597. display: block;
  598. }
  599. .dynamic-miss-title {
  600. width: 32px;
  601. float: left;
  602. }
  603. .dynamic-miss-body {
  604. margin-left: 32px;
  605. padding-top: 8px;
  606. text-align: center;
  607. }
  608. }
  609. &-fill {
  610. display: table-cell;
  611. vertical-align: middle;
  612. padding: 8px 10px;
  613. p {
  614. line-height: 18px;
  615. word-wrap: normal;
  616. > span,
  617. > i {
  618. display: inline-block;
  619. vertical-align: middle;
  620. box-sizing: border-box;
  621. }
  622. &:first-child {
  623. i {
  624. width: 28px;
  625. height: 14px;
  626. background-color: #000;
  627. }
  628. }
  629. &:last-child {
  630. > i {
  631. width: 28px;
  632. height: 14px;
  633. border: 1px solid #000;
  634. font-size: 14px;
  635. font-weight: bold;
  636. margin-right: 6px;
  637. line-height: 12px;
  638. text-align: center;
  639. &:last-child {
  640. margin-right: 0;
  641. }
  642. &:nth-of-type(1) {
  643. position: relative;
  644. &::before {
  645. content: "";
  646. display: block;
  647. position: absolute;
  648. left: 30%;
  649. top: 1px;
  650. height: 5px;
  651. width: 11px;
  652. transform: rotate(-45deg);
  653. border-left: 1px solid #000;
  654. border-bottom: 1px solid #000;
  655. }
  656. }
  657. &:nth-of-type(2) {
  658. position: relative;
  659. &::before {
  660. content: "";
  661. display: block;
  662. position: absolute;
  663. left: 7px;
  664. top: 5px;
  665. width: 11px;
  666. transform: rotate(-45deg);
  667. transform-origin: center center;
  668. border-bottom: 1px solid #000;
  669. }
  670. &::after {
  671. content: "";
  672. display: block;
  673. position: absolute;
  674. left: 8px;
  675. top: 5px;
  676. width: 11px;
  677. transform: rotate(45deg);
  678. transform-origin: center center;
  679. border-bottom: 1px solid #000;
  680. }
  681. }
  682. &:nth-of-type(3) {
  683. &::before {
  684. content: "";
  685. display: inline-block;
  686. vertical-align: top;
  687. margin-left: -5px;
  688. height: 100%;
  689. width: 5px;
  690. background-color: #000;
  691. }
  692. }
  693. &:nth-of-type(4) {
  694. &::before {
  695. content: "";
  696. display: inline-block;
  697. margin-top: 1px;
  698. width: 10px;
  699. height: 10px;
  700. border-radius: 50%;
  701. background-color: #000;
  702. }
  703. }
  704. }
  705. }
  706. }
  707. }
  708. &-rect {
  709. display: inline-block;
  710. width: 30px;
  711. height: 14px;
  712. // border-rect
  713. border: 1px solid #000;
  714. font-size: 12px;
  715. text-align: center;
  716. line-height: 1;
  717. color: #000;
  718. margin: 0 5px;
  719. font-family: "Times New Roman", Arial, sans-serif;
  720. > i {
  721. display: inline-block;
  722. transform: scale(0.67, 0.67);
  723. }
  724. }
  725. &-aorb {
  726. display: table;
  727. width: 100%;
  728. .dynamic-aorb-item {
  729. display: table-cell;
  730. vertical-align: middle;
  731. text-align: center;
  732. &:not(:last-child) {
  733. border-right: 1px solid #333;
  734. }
  735. }
  736. &-fill {
  737. .dynamic-aorb-item:first-child {
  738. border: none;
  739. }
  740. }
  741. .dynamic-aorb-title {
  742. width: 83px;
  743. }
  744. .dynamic-aorb-info {
  745. width: 50px;
  746. font-size: 16px;
  747. position: relative;
  748. overflow: hidden;
  749. .dynamic-aorb-content {
  750. position: absolute;
  751. top: 50%;
  752. left: 0;
  753. width: 100%;
  754. transform: translateY(-50%);
  755. z-index: auto;
  756. }
  757. }
  758. .dynamic-aorb-barcode {
  759. img {
  760. display: block;
  761. position: relative;
  762. margin: 0 auto;
  763. width: 200px;
  764. height: 26px;
  765. padding: 7px 0;
  766. }
  767. }
  768. .dynamic-aorb-rects {
  769. padding: 16px 10px;
  770. }
  771. }
  772. }
  773. }
  774. &-part {
  775. border: 1px solid #333;
  776. &:not(:last-child) {
  777. margin-bottom: 10px;
  778. }
  779. }
  780. &-normal {
  781. .head-dynamic {
  782. &-1 {
  783. .head-dynamic-part {
  784. height: 100%;
  785. }
  786. }
  787. }
  788. }
  789. &-narrow {
  790. .head-stdno {
  791. height: 138px;
  792. .stdno-auto {
  793. position: relative;
  794. top: 50%;
  795. margin-top: -40px;
  796. }
  797. }
  798. }
  799. &-handle {
  800. &.card-head-narrow {
  801. .head-stdno {
  802. height: 286px;
  803. }
  804. }
  805. }
  806. }
  807. // card-head-body-auto-resize
  808. .card-head-body-auto-resize {
  809. margin-left: -5px;
  810. margin-right: -5px;
  811. overflow: hidden;
  812. &.col-item-auto-height {
  813. .card-head-body-spin {
  814. height: auto;
  815. }
  816. }
  817. .head-dynamic-2 {
  818. .head-dynamic-part {
  819. height: auto;
  820. }
  821. }
  822. .rect-col {
  823. padding: 5px;
  824. &:first-child {
  825. float: left;
  826. width: 289px;
  827. }
  828. &:last-child {
  829. float: right;
  830. width: 424px;
  831. }
  832. &-item {
  833. border: 1px solid #333;
  834. &:nth-of-type(2) {
  835. margin-top: 10px;
  836. }
  837. &-none {
  838. border: none;
  839. margin: 0 !important;
  840. }
  841. }
  842. }
  843. }
  844. // elem-topic-head
  845. .elem-topic-head {
  846. text-align: center;
  847. .elem-body {
  848. padding: 0;
  849. border: 1px solid #333;
  850. }
  851. &-pad {
  852. padding-top: 10px;
  853. }
  854. h3 {
  855. font-size: 16px;
  856. height: 29px;
  857. line-height: 28px;
  858. border-bottom: 1px dotted #333;
  859. }
  860. p {
  861. font-size: 12px;
  862. height: 29px;
  863. line-height: 29px;
  864. white-space: nowrap;
  865. overflow: hidden;
  866. // text-overflow: ellipsis;
  867. }
  868. }
  869. // elem-line
  870. .elem-line-horizontal {
  871. height: 100%;
  872. line-height: 30px;
  873. .line-body {
  874. display: inline-block;
  875. vertical-align: middle;
  876. width: 100%;
  877. border-bottom: 1px solid #000;
  878. }
  879. }
  880. .elem-line-vertical {
  881. height: 100%;
  882. text-align: center;
  883. .line-body {
  884. display: inline-block;
  885. vertical-align: top;
  886. height: 100%;
  887. border-left: 1px solid #000;
  888. }
  889. }
  890. // elem-lines
  891. .elem-lines {
  892. .line-item {
  893. display: inline-block;
  894. vertical-align: top;
  895. }
  896. }
  897. // elem-rect
  898. .elem-rect {
  899. .rect-body {
  900. position: absolute;
  901. width: 100%;
  902. height: 100%;
  903. top: 0;
  904. left: 0;
  905. }
  906. }
  907. // elem-text
  908. .elem-text {
  909. .text-body {
  910. padding: 5px;
  911. line-height: 1.4;
  912. span {
  913. white-space: pre-wrap;
  914. word-wrap: normal;
  915. word-break: break-all;
  916. &.cont-variate {
  917. color: #a0a0a0;
  918. margin: 0 2px;
  919. }
  920. }
  921. }
  922. }
  923. // elem-barcode
  924. .elem-barcode {
  925. height: 100%;
  926. border-color: transparent;
  927. border-width: 1pt;
  928. position: relative;
  929. > img {
  930. max-height: 100%;
  931. max-width: 100%;
  932. position: absolute;
  933. top: 0;
  934. bottom: 0;
  935. left: 0;
  936. right: 0;
  937. margin: auto;
  938. }
  939. }
  940. // elem-image
  941. .elem-image {
  942. height: 100%;
  943. border-color: transparent;
  944. border-width: 1pt;
  945. position: relative;
  946. > p {
  947. position: absolute;
  948. color: #b0b0b0;
  949. font-size: 30pt;
  950. text-align: center;
  951. left: 0;
  952. width: 100%;
  953. top: 50%;
  954. transform: translateY(-50%);
  955. }
  956. > img {
  957. max-height: 100%;
  958. max-width: 100%;
  959. position: absolute;
  960. top: 0;
  961. bottom: 0;
  962. left: 0;
  963. right: 0;
  964. margin: auto;
  965. }
  966. }
  967. // elem-girds
  968. .elem-grids {
  969. > table {
  970. table-layout: fixed;
  971. border-spacing: 0;
  972. border-collapse: collapse;
  973. td {
  974. border: 1px solid #333;
  975. }
  976. }
  977. &-halving {
  978. > table {
  979. table-layout: auto;
  980. width: 100%;
  981. }
  982. }
  983. }
  984. // elem-fill-question
  985. .elem-fill-question {
  986. white-space: normal;
  987. .elem-body {
  988. padding: 18px 0 18px 16px;
  989. }
  990. .group-item {
  991. font-family: "Times New Roman", Arial, sans-serif;
  992. display: inline-block;
  993. vertical-align: top;
  994. font-size: 0;
  995. // margin-bottom: 20px;
  996. }
  997. .question-item {
  998. font-size: 0;
  999. &:last-child {
  1000. margin-bottom: 0 !important;
  1001. }
  1002. }
  1003. .option-item {
  1004. display: inline-block;
  1005. vertical-align: middle;
  1006. padding: 0;
  1007. width: 18px;
  1008. height: 14px;
  1009. text-align: center;
  1010. font-size: 12px;
  1011. line-height: 1;
  1012. // border-rect
  1013. border: 1px solid #000;
  1014. color: #000;
  1015. box-sizing: border-box;
  1016. > i {
  1017. display: inline-block;
  1018. transform: scale(0.67, 0.67);
  1019. }
  1020. &:first-child {
  1021. text-align: right;
  1022. border-color: transparent;
  1023. font-size: 12px;
  1024. color: #000;
  1025. > i {
  1026. transform: scale(1, 1);
  1027. }
  1028. }
  1029. &:last-child {
  1030. margin-right: 0 !important;
  1031. }
  1032. }
  1033. &-vertical {
  1034. .question-item {
  1035. display: inline-block;
  1036. vertical-align: top;
  1037. &:last-child {
  1038. margin-right: 0 !important;
  1039. }
  1040. }
  1041. .option-item {
  1042. display: block;
  1043. &:first-child {
  1044. padding: 0;
  1045. text-align: center;
  1046. }
  1047. &:last-child {
  1048. margin-bottom: 0 !important;
  1049. }
  1050. }
  1051. }
  1052. }
  1053. // elem-fill-area
  1054. .elem-fill-area {
  1055. .option-item {
  1056. display: inline-block;
  1057. vertical-align: middle;
  1058. width: 30px;
  1059. height: 16px;
  1060. border: 1px solid #000;
  1061. &:last-child {
  1062. margin-right: 0 !important;
  1063. }
  1064. }
  1065. &-vertical {
  1066. .option-item {
  1067. display: block;
  1068. &:last-child {
  1069. margin-bottom: 0 !important;
  1070. }
  1071. }
  1072. }
  1073. }
  1074. // elem-fill-line
  1075. .elem-fill-line {
  1076. white-space: normal;
  1077. .elem-body {
  1078. padding: 0 15px 0 10px;
  1079. font-size: 0;
  1080. }
  1081. .elem-fill-quesiton {
  1082. display: inline-block;
  1083. vertical-align: top;
  1084. position: relative;
  1085. padding: 0 1px;
  1086. font-size: 12px;
  1087. li {
  1088. &.elem-fill-line {
  1089. height: 40px;
  1090. position: relative;
  1091. margin: 0 10px 0 20px;
  1092. z-index: 8;
  1093. &::after {
  1094. content: "";
  1095. display: block;
  1096. position: absolute;
  1097. width: 100%;
  1098. border-bottom: 1px solid #000;
  1099. bottom: 8px;
  1100. }
  1101. }
  1102. &.elem-fill-no {
  1103. position: absolute;
  1104. top: 0;
  1105. left: 1px;
  1106. z-index: 9;
  1107. transform: translateY(-100%);
  1108. width: 20px;
  1109. padding-bottom: 4px;
  1110. text-align: center;
  1111. background-color: #fff;
  1112. border: none;
  1113. }
  1114. &.elem-fill-comma {
  1115. position: absolute;
  1116. top: 0;
  1117. right: -10px;
  1118. z-index: 9;
  1119. transform: translateY(-100%);
  1120. width: 10px;
  1121. padding-bottom: 4px;
  1122. background-color: #fff;
  1123. text-align: center;
  1124. border: none;
  1125. }
  1126. }
  1127. }
  1128. }
  1129. // elem-explain
  1130. .elem-explain {
  1131. .elem-title {
  1132. padding-bottom: 0;
  1133. }
  1134. .elem-body {
  1135. min-height: 60px;
  1136. position: relative;
  1137. }
  1138. .elem-explain-no {
  1139. position: absolute;
  1140. left: 20px;
  1141. top: 10px;
  1142. font-size: 12px;
  1143. z-index: 9;
  1144. }
  1145. .elem-explain-elements {
  1146. position: absolute;
  1147. width: 100%;
  1148. height: 100%;
  1149. top: 0;
  1150. left: 0;
  1151. z-index: 8;
  1152. }
  1153. .elem-explain-element {
  1154. .explain-element-body {
  1155. position: absolute;
  1156. }
  1157. }
  1158. }
  1159. // .elem-composition
  1160. .elem-composition {
  1161. .elem-title {
  1162. padding-bottom: 0;
  1163. }
  1164. .elem-body {
  1165. min-height: 60px;
  1166. position: relative;
  1167. }
  1168. &-elements {
  1169. position: absolute;
  1170. width: 100%;
  1171. height: 100%;
  1172. top: 0;
  1173. left: 0;
  1174. z-index: 8;
  1175. }
  1176. .elem-composition-element {
  1177. .composition-element-body {
  1178. position: absolute;
  1179. }
  1180. }
  1181. }