card-preview.scss 23 KB

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