card-preview.scss 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630
  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. }
  11. .card-print {
  12. padding: 0;
  13. .page-box {
  14. margin: 0 auto;
  15. box-shadow: none;
  16. page-break-after: always;
  17. }
  18. // 印刷模式:隐藏客观题强调标记
  19. .elem-fill-question-first {
  20. &::before {
  21. display: none;
  22. }
  23. }
  24. .elem-fill-question .option-item,
  25. .elem-fill-number .fill-number-option,
  26. .card-head-body .head-stdno .stdno-fill-option,
  27. .page-number-rect-list li,
  28. .card-head-body .head-dynamic-rect {
  29. border-width: 0.5pt;
  30. }
  31. .elem-fill-question .option-item {
  32. line-height: 9px;
  33. }
  34. .package-number {
  35. display: block !important;
  36. }
  37. }
  38. // page-box
  39. .page-box {
  40. position: relative;
  41. background: #fff;
  42. margin: 0 auto;
  43. font-weight: normal;
  44. font-family: "Times New Roman", "宋体", "宋体-简", Arial, sans-serif;
  45. .package-number {
  46. position: absolute;
  47. width: 200px;
  48. height: 40px;
  49. top: 10px;
  50. right: 25%;
  51. margin-left: -100px;
  52. text-align: center;
  53. z-index: 99;
  54. display: none;
  55. img {
  56. display: block;
  57. height: 28px;
  58. width: 100%;
  59. border: none;
  60. }
  61. p {
  62. line-height: 1;
  63. font-size: 12px;
  64. margin: 0;
  65. }
  66. }
  67. .page-main {
  68. height: 100%;
  69. position: relative;
  70. white-space: nowrap;
  71. margin: 0 -10px;
  72. font-size: 0;
  73. &-2 {
  74. .page-column {
  75. width: 50%;
  76. }
  77. }
  78. &-3 {
  79. .page-column {
  80. width: 33.33%;
  81. }
  82. }
  83. &-4 {
  84. .page-column {
  85. width: 25%;
  86. }
  87. }
  88. }
  89. &-A3 {
  90. width: 1586px;
  91. height: 1122px;
  92. .page-main {
  93. &-inner {
  94. padding: 60px 80px;
  95. }
  96. }
  97. }
  98. &-A4 {
  99. width: 793px;
  100. height: 1122px;
  101. .page-main {
  102. &-inner {
  103. padding: 60px 45px;
  104. }
  105. }
  106. }
  107. &-less {
  108. .page-number-rect {
  109. display: none;
  110. }
  111. }
  112. }
  113. // 分栏间距,默认20px
  114. // page-main-inner
  115. .page-main-inner {
  116. position: absolute;
  117. width: 100%;
  118. height: 100%;
  119. top: 0;
  120. left: 0;
  121. padding: 60px 80px 86px;
  122. z-index: 9;
  123. font-size: 0;
  124. }
  125. // page-main-outer
  126. .page-main-outer {
  127. position: absolute;
  128. top: 0;
  129. left: 0;
  130. right: 0;
  131. bottom: 0;
  132. z-index: 7;
  133. background-color: transparent;
  134. overflow: hidden;
  135. }
  136. .page-column {
  137. display: inline-block;
  138. vertical-align: middle;
  139. position: relative;
  140. height: 100%;
  141. width: 100%;
  142. font-size: 14px;
  143. padding: 0 10px;
  144. &-forbid-area {
  145. position: absolute;
  146. top: 0;
  147. left: 0;
  148. bottom: 0;
  149. right: 0;
  150. z-index: 1;
  151. border: 1px solid #000;
  152. overflow: hidden;
  153. > p {
  154. padding: 20px;
  155. position: absolute;
  156. width: 260px;
  157. height: 82px;
  158. top: 50%;
  159. left: 50%;
  160. margin-top: -41px;
  161. margin-left: -130px;
  162. z-index: 9;
  163. font-weight: bold;
  164. font-size: 30px;
  165. color: #333;
  166. background-color: #fff;
  167. text-align: center;
  168. }
  169. }
  170. &-main {
  171. position: relative;
  172. height: 100%;
  173. }
  174. &-body {
  175. position: absolute;
  176. top: 0;
  177. bottom: 0;
  178. left: 0;
  179. right: 0;
  180. z-index: 9;
  181. }
  182. &-element {
  183. .element-item {
  184. position: relative;
  185. &-width {
  186. width: 100% !important;
  187. }
  188. &::before {
  189. content: "";
  190. position: absolute;
  191. width: 100%;
  192. height: 100%;
  193. top: 0;
  194. left: 0;
  195. box-sizing: border-box;
  196. z-index: 2;
  197. border: 1px solid #000;
  198. border-top: 0;
  199. }
  200. > div {
  201. z-index: 9;
  202. position: relative;
  203. }
  204. &-card-head {
  205. &::before {
  206. border: 0;
  207. }
  208. }
  209. &-topic-head {
  210. &::before {
  211. border: 0;
  212. }
  213. }
  214. &-fill-question,
  215. &-fill-line {
  216. &::before {
  217. border-bottom: 0;
  218. }
  219. }
  220. // 预览时,小题扩展答题区之间隐藏分割线
  221. &-explain {
  222. &::before {
  223. border-bottom-color: transparent;
  224. }
  225. }
  226. &-type-last {
  227. &::before {
  228. border-bottom: 1px solid #000;
  229. }
  230. }
  231. }
  232. &:last-child {
  233. .element-item {
  234. &::before {
  235. border-bottom: 1px solid #000;
  236. }
  237. }
  238. .element-item-card-head.element-item-type-pre {
  239. &::before {
  240. border-bottom: none;
  241. }
  242. }
  243. }
  244. }
  245. }
  246. // locator
  247. .page-locator {
  248. position: absolute;
  249. left: 80px;
  250. right: 80px;
  251. height: 16px;
  252. z-index: 8;
  253. &-top {
  254. top: 30px;
  255. }
  256. &-bottom {
  257. bottom: 30px;
  258. }
  259. &-item {
  260. position: absolute;
  261. width: 24px;
  262. border-bottom: 16px solid #000;
  263. top: 0;
  264. &:nth-of-type(1) {
  265. left: 0;
  266. }
  267. &:nth-of-type(2) {
  268. right: 96px;
  269. }
  270. }
  271. }
  272. .page-box-1 {
  273. .page-locator {
  274. &-bottom {
  275. .page-locator-item:nth-of-type(1) {
  276. right: 0;
  277. left: auto;
  278. }
  279. }
  280. &-item {
  281. &:nth-of-type(1) {
  282. left: 96px;
  283. }
  284. &:nth-of-type(2) {
  285. right: 0;
  286. }
  287. }
  288. }
  289. }
  290. // page-number
  291. .page-number {
  292. position: absolute;
  293. bottom: 30px;
  294. &-rect {
  295. left: 25%;
  296. transform: translateX(-50%);
  297. -webkit-transform: translateX(-50%);
  298. }
  299. &-rect-list {
  300. font-size: 0;
  301. li {
  302. display: inline-block;
  303. vertical-align: top;
  304. font-size: 14px;
  305. width: 24px;
  306. height: 16px;
  307. border: 1px solid #000;
  308. margin-right: 10px;
  309. &.rect-li-act {
  310. background-color: #000;
  311. }
  312. }
  313. }
  314. &-text {
  315. right: 25%;
  316. }
  317. &-text-cont {
  318. height: 16px;
  319. line-height: 16px;
  320. }
  321. }
  322. .page-box-A4 {
  323. .page-number-rect {
  324. left: 50%;
  325. }
  326. }
  327. // elem
  328. .elem {
  329. &-title {
  330. padding: 10px;
  331. font-size: 14px;
  332. color: rgba(0, 0, 0, 1);
  333. line-height: 1;
  334. white-space: normal;
  335. }
  336. &-body {
  337. padding: 10px;
  338. }
  339. }
  340. // grid
  341. .grid-container {
  342. margin-left: -10px;
  343. margin-right: -10px;
  344. }
  345. .grid-row {
  346. display: table;
  347. width: 100%;
  348. border-spacing: 10px 0;
  349. border-collapse: separate;
  350. &:nth-of-type(2) {
  351. margin-top: 10px;
  352. }
  353. .grid-col {
  354. display: table-cell;
  355. width: 50%;
  356. vertical-align: top;
  357. border: 1px solid #000;
  358. &-dash {
  359. border-style: dashed;
  360. vertical-align: middle;
  361. }
  362. }
  363. }
  364. // card-head
  365. .card-head {
  366. &-top {
  367. text-align: center;
  368. color: #000;
  369. }
  370. &-title {
  371. font-size: 24px;
  372. font-weight: bold;
  373. overflow: hidden;
  374. > h1 {
  375. line-height: 33px;
  376. white-space: nowrap;
  377. letter-spacing: -1px;
  378. }
  379. }
  380. &-subtitle {
  381. height: 44px;
  382. font-family: $--font-family;
  383. font-size: 14px;
  384. overflow: hidden;
  385. white-space: normal;
  386. margin-bottom: 10px;
  387. > p {
  388. padding: 0 10px;
  389. line-height: 22px;
  390. white-space: pre;
  391. }
  392. }
  393. &-body {
  394. font-weight: normal;
  395. .el-col {
  396. padding-top: 5px;
  397. padding-bottom: 5px;
  398. }
  399. &-spin {
  400. padding: 5px 12px;
  401. white-space: normal;
  402. word-break: break-all;
  403. }
  404. .stdinfo-item {
  405. height: 30px;
  406. line-height: 30px;
  407. position: relative;
  408. overflow: hidden;
  409. &::after {
  410. content: "";
  411. display: block;
  412. position: absolute;
  413. width: 100%;
  414. border-bottom: 1px solid #000;
  415. bottom: 6px;
  416. left: 0;
  417. z-index: 1;
  418. }
  419. > span {
  420. z-index: 2;
  421. display: block;
  422. position: relative;
  423. font-size: 14px;
  424. &:first-child {
  425. float: left;
  426. background-color: #fff;
  427. text-align: justify;
  428. font-size: 0px;
  429. & > i {
  430. font-size: 14px;
  431. }
  432. &::after {
  433. content: "";
  434. display: inline-block;
  435. width: 100%;
  436. height: 0;
  437. line-height: 0;
  438. }
  439. }
  440. &:nth-of-type(2) {
  441. float: left;
  442. width: 20px;
  443. background-color: #fff;
  444. }
  445. &:last-child {
  446. margin-left: 80px;
  447. height: 100%;
  448. }
  449. }
  450. }
  451. .head-stdno {
  452. height: 100%;
  453. padding: 0;
  454. .stdno-empty {
  455. font-weight: bold;
  456. letter-spacing: 3px;
  457. text-align: center;
  458. }
  459. .stdno-fill {
  460. min-height: 240px;
  461. height: 100%;
  462. position: relative;
  463. &-rect {
  464. font-size: 0;
  465. height: 27px;
  466. border-bottom: 1px solid #000;
  467. }
  468. &-number {
  469. display: inline-block;
  470. vertical-align: top;
  471. width: 7.692%;
  472. height: 100%;
  473. &:not(:last-child) {
  474. border-right: 1px solid #000;
  475. }
  476. }
  477. &-head {
  478. position: absolute;
  479. width: 100%;
  480. height: 51px;
  481. top: 0;
  482. left: 0;
  483. z-index: 9;
  484. > h5 {
  485. border-bottom: 1px solid #000;
  486. line-height: 24px;
  487. font-size: 14px;
  488. font-weight: bold;
  489. text-align: center;
  490. }
  491. }
  492. &-body {
  493. position: absolute;
  494. top: 0;
  495. bottom: 0;
  496. padding-top: 51px;
  497. display: table;
  498. width: 100%;
  499. }
  500. &-list {
  501. display: table-cell;
  502. width: 7.692%;
  503. padding: 1px 0;
  504. }
  505. &-option {
  506. margin: 8px auto;
  507. width: 18px;
  508. height: 10px;
  509. font-size: 12px;
  510. line-height: 8px;
  511. text-align: center;
  512. color: #000;
  513. // border-rect
  514. border: 1px solid #000;
  515. font-family: "Times New Roman", Arial, sans-serif;
  516. > i {
  517. display: inline-block;
  518. transform: scale(0.67, 0.67);
  519. -webkit-transform: scale(0.67, 0.67);
  520. }
  521. }
  522. }
  523. .stdno-auto {
  524. &-barcode {
  525. height: 70px;
  526. text-align: center;
  527. > img {
  528. display: block;
  529. height: 50px;
  530. width: 300px;
  531. margin: 0 auto;
  532. }
  533. > p {
  534. line-height: 20px;
  535. }
  536. }
  537. }
  538. }
  539. .head-notice {
  540. > h4 {
  541. font-weight: normal;
  542. margin-bottom: 8px;
  543. line-height: 20px;
  544. }
  545. &-cont {
  546. line-height: 1.5;
  547. font-size: 12px;
  548. margin-bottom: 5px;
  549. > span {
  550. display: block;
  551. &:first-child {
  552. width: 20px;
  553. white-space: nowrap;
  554. float: left;
  555. }
  556. &:last-child {
  557. margin-left: 20px;
  558. }
  559. }
  560. }
  561. &-exam-number-fill {
  562. span {
  563. display: inline;
  564. &:first-child {
  565. float: none;
  566. }
  567. &:last-child {
  568. margin: 0;
  569. }
  570. }
  571. }
  572. }
  573. .head-dynamic {
  574. padding: 0;
  575. font-size: 12px;
  576. border-spacing: 0;
  577. border-collapse: collapse;
  578. &-part:not(:last-child) {
  579. border-bottom: 1px solid #000;
  580. }
  581. &-write {
  582. padding: 5px 12px;
  583. .stdinfo-item {
  584. margin-bottom: 0;
  585. }
  586. > p {
  587. line-height: 18px;
  588. }
  589. }
  590. &-missfill {
  591. display: table;
  592. width: 100%;
  593. }
  594. &-miss {
  595. padding: 10px;
  596. display: table-cell;
  597. vertical-align: middle;
  598. &:nth-of-type(2) {
  599. border-left: 1px solid #000;
  600. }
  601. span {
  602. display: block;
  603. }
  604. .head-dynamic-content {
  605. height: 14px;
  606. line-height: 14px;
  607. }
  608. .dynamic-miss-title {
  609. width: 54px;
  610. float: left;
  611. }
  612. .dynamic-miss-body {
  613. margin-left: 54px;
  614. height: 14px;
  615. text-align: center;
  616. font-size: 0;
  617. }
  618. }
  619. &-fill {
  620. padding: 10px;
  621. p {
  622. display: inline-block;
  623. vertical-align: middle;
  624. line-height: 18px;
  625. word-wrap: normal;
  626. &:first-child {
  627. margin-right: 20px;
  628. }
  629. > span,
  630. > i {
  631. display: inline-block;
  632. vertical-align: middle;
  633. box-sizing: border-box;
  634. }
  635. &:first-child {
  636. i {
  637. width: 28px;
  638. height: 14px;
  639. background-color: #000;
  640. }
  641. }
  642. &:last-child {
  643. > i {
  644. width: 28px;
  645. height: 14px;
  646. border: 1px solid #000;
  647. font-size: 14px;
  648. font-weight: bold;
  649. margin-right: 6px;
  650. line-height: 12px;
  651. text-align: center;
  652. &:last-child {
  653. margin-right: 0;
  654. }
  655. // wkhtmltopdf 工具无法渲染如下样式:
  656. // &:nth-of-type(1) {
  657. // position: relative;
  658. // &::before {
  659. // content: "";
  660. // display: block;
  661. // position: absolute;
  662. // left: 30%;
  663. // top: 1px;
  664. // height: 5px;
  665. // width: 11px;
  666. // transform: rotate(-45deg);
  667. // border-left: 1px solid #000;
  668. // border-bottom: 1px solid #000;
  669. // }
  670. // }
  671. // &:nth-of-type(2) {
  672. // position: relative;
  673. // &::before {
  674. // content: "";
  675. // display: block;
  676. // position: absolute;
  677. // left: 7px;
  678. // top: 5px;
  679. // width: 11px;
  680. // transform: rotate(-45deg);
  681. // transform-origin: center center;
  682. // border-bottom: 1px solid #000;
  683. // }
  684. // &::after {
  685. // content: "";
  686. // display: block;
  687. // position: absolute;
  688. // left: 8px;
  689. // top: 5px;
  690. // width: 11px;
  691. // transform: rotate(45deg);
  692. // transform-origin: center center;
  693. // border-bottom: 1px solid #000;
  694. // }
  695. // }
  696. &:nth-of-type(3) {
  697. &::before {
  698. content: "";
  699. display: inline-block;
  700. vertical-align: top;
  701. margin-left: -5px;
  702. height: 100%;
  703. width: 5px;
  704. background-color: #000;
  705. }
  706. }
  707. &:nth-of-type(4) {
  708. &::before {
  709. content: "";
  710. display: inline-block;
  711. margin-top: 1px;
  712. width: 10px;
  713. height: 10px;
  714. border-radius: 50%;
  715. background-color: #000;
  716. }
  717. }
  718. }
  719. }
  720. }
  721. }
  722. &-rect {
  723. display: inline-block;
  724. vertical-align: middle;
  725. width: 24px;
  726. height: 12px;
  727. // border-rect
  728. border: 1px solid #000;
  729. font-size: 12px;
  730. text-align: center;
  731. line-height: 10px;
  732. color: #000;
  733. margin: 0 5px;
  734. font-family: "Times New Roman", Arial, sans-serif;
  735. > i {
  736. display: inline-block;
  737. transform: scale(0.67, 0.67);
  738. -webkit-transform: scale(0.67, 0.67);
  739. }
  740. }
  741. &-aorb {
  742. display: table;
  743. width: 100%;
  744. .dynamic-aorb-item {
  745. display: table-cell;
  746. vertical-align: middle;
  747. text-align: center;
  748. &:not(:last-child) {
  749. border-right: 1px solid #000;
  750. }
  751. }
  752. &-fill {
  753. .dynamic-aorb-item:first-child {
  754. border: none;
  755. }
  756. }
  757. .dynamic-aorb-title {
  758. width: 83px;
  759. }
  760. .dynamic-aorb-info {
  761. width: 50px;
  762. font-size: 16px;
  763. position: relative;
  764. overflow: hidden;
  765. .dynamic-aorb-content {
  766. position: absolute;
  767. top: 50%;
  768. left: 0;
  769. width: 100%;
  770. transform: translateY(-50%);
  771. -webkit-transform: translateY(-50%);
  772. z-index: auto;
  773. }
  774. }
  775. .dynamic-aorb-barcode {
  776. img {
  777. display: block;
  778. position: relative;
  779. margin: 0 auto;
  780. width: 200px;
  781. height: 26px;
  782. padding: 7px 0;
  783. }
  784. }
  785. .dynamic-aorb-rects {
  786. padding: 16px 10px;
  787. }
  788. }
  789. }
  790. }
  791. &-part {
  792. border: 1px solid #000;
  793. &:not(:last-child) {
  794. margin-bottom: 10px;
  795. }
  796. }
  797. &-normal {
  798. .head-dynamic {
  799. &-1 {
  800. .head-dynamic-part {
  801. height: 100%;
  802. }
  803. }
  804. }
  805. }
  806. &-narrow {
  807. .head-stdno {
  808. height: 138px;
  809. .stdno-auto {
  810. position: relative;
  811. top: 50%;
  812. margin-top: -40px;
  813. }
  814. }
  815. }
  816. &-handle {
  817. &.card-head-narrow {
  818. .head-stdno {
  819. height: 286px;
  820. }
  821. }
  822. }
  823. }
  824. // card-head-body-auto-resize
  825. .card-head-body-auto-resize {
  826. margin-left: -5px;
  827. margin-right: -5px;
  828. overflow: hidden;
  829. &.col-item-auto-height {
  830. .card-head-body-spin {
  831. height: auto;
  832. }
  833. }
  834. .head-dynamic-2 {
  835. .head-dynamic-part {
  836. height: auto;
  837. }
  838. }
  839. .rect-col {
  840. padding: 5px;
  841. &:first-child {
  842. float: left;
  843. width: 50%;
  844. }
  845. &:last-child {
  846. float: right;
  847. width: 50%;
  848. }
  849. &-item {
  850. border: 1px solid #000;
  851. &:nth-of-type(2) {
  852. margin-top: 10px;
  853. }
  854. &-none {
  855. border: none;
  856. margin: 0 !important;
  857. }
  858. }
  859. }
  860. }
  861. // elem-topic-head
  862. .elem-topic-head {
  863. text-align: center;
  864. .elem-body {
  865. padding: 0;
  866. border: 1px solid #000;
  867. }
  868. &-pad {
  869. padding-top: 10px;
  870. }
  871. &-empty {
  872. .elem-body {
  873. border-top: none;
  874. }
  875. }
  876. h3 {
  877. font-size: 16px;
  878. height: 29px;
  879. line-height: 28px;
  880. border-bottom: 1px dotted #000;
  881. font-weight: normal;
  882. }
  883. p {
  884. font-size: 12px;
  885. height: 22px;
  886. line-height: 22px;
  887. white-space: nowrap;
  888. overflow: hidden;
  889. // text-overflow: ellipsis;
  890. }
  891. }
  892. // elem-line
  893. .elem-line-horizontal {
  894. height: 100%;
  895. line-height: 30px;
  896. .line-body {
  897. display: inline-block;
  898. vertical-align: middle;
  899. width: 100%;
  900. border-bottom: 1px solid #000;
  901. }
  902. }
  903. .elem-line-vertical {
  904. height: 100%;
  905. text-align: center;
  906. .line-body {
  907. display: inline-block;
  908. vertical-align: top;
  909. height: 100%;
  910. border-left: 1px solid #000;
  911. }
  912. }
  913. // elem-lines
  914. .elem-lines {
  915. .line-item {
  916. display: inline-block;
  917. vertical-align: top;
  918. }
  919. }
  920. // elem-rect
  921. .elem-rect {
  922. .rect-body {
  923. position: absolute;
  924. width: 100%;
  925. height: 100%;
  926. top: 0;
  927. left: 0;
  928. }
  929. }
  930. // elem-text
  931. .elem-text {
  932. .text-body {
  933. padding: 5px;
  934. line-height: 1.4;
  935. span {
  936. white-space: pre-wrap;
  937. word-wrap: normal;
  938. word-break: break-all;
  939. &.cont-variate {
  940. color: #a0a0a0;
  941. margin: 0 2px;
  942. }
  943. }
  944. }
  945. }
  946. // elem-barcode
  947. .elem-barcode {
  948. height: 100%;
  949. border-color: transparent;
  950. border-width: 1pt;
  951. position: relative;
  952. > img {
  953. max-height: 100%;
  954. max-width: 100%;
  955. position: absolute;
  956. top: 0;
  957. bottom: 0;
  958. left: 0;
  959. right: 0;
  960. margin: auto;
  961. }
  962. }
  963. // elem-image
  964. .elem-image {
  965. height: 100%;
  966. border-color: transparent;
  967. border-width: 1pt;
  968. position: relative;
  969. > p {
  970. position: absolute;
  971. width: 100%;
  972. height: 100%;
  973. top: 0;
  974. left: 0;
  975. display: table;
  976. text-align: center;
  977. color: #b0b0b0;
  978. font-size: 30pt;
  979. i {
  980. display: table-cell;
  981. vertical-align: middle;
  982. }
  983. }
  984. > img {
  985. max-height: 100%;
  986. max-width: 100%;
  987. position: absolute;
  988. top: 0;
  989. bottom: 0;
  990. left: 0;
  991. right: 0;
  992. margin: auto;
  993. }
  994. }
  995. // elem-girds
  996. .elem-grids {
  997. > table {
  998. table-layout: fixed;
  999. border-spacing: 0;
  1000. border-collapse: collapse;
  1001. td {
  1002. border: 1px solid #000;
  1003. }
  1004. }
  1005. &-halving {
  1006. > table {
  1007. table-layout: auto;
  1008. width: 100%;
  1009. }
  1010. td > div {
  1011. padding-bottom: 100%;
  1012. }
  1013. }
  1014. }
  1015. .elem-pane {
  1016. height: 100%;
  1017. }
  1018. // elem-fill-question
  1019. .elem-fill-question {
  1020. white-space: normal;
  1021. // 客观题强调标记
  1022. &-first::before {
  1023. content: "";
  1024. position: absolute;
  1025. right: 0;
  1026. top: 0;
  1027. z-index: 99;
  1028. color: #fff;
  1029. padding: 6px 10px;
  1030. line-height: 1;
  1031. font-size: 18px;
  1032. border-bottom-left-radius: 10px;
  1033. }
  1034. &-first.elem-fill-question-simple {
  1035. &::before {
  1036. content: "单选";
  1037. background-color: mix(#fff, $--color-success, 20%);
  1038. }
  1039. }
  1040. &-first.elem-fill-question-multiply {
  1041. &::before {
  1042. content: "多选";
  1043. background-color: $--color-primary-light;
  1044. }
  1045. }
  1046. &-first.elem-fill-question-boolean {
  1047. &::before {
  1048. content: "判断";
  1049. background-color: mix(#fff, $--color-warning, 20%);
  1050. }
  1051. }
  1052. &-boolean {
  1053. .option-item {
  1054. &:nth-of-type(2) i {
  1055. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAItJREFUOE/Vk9ERgCAMQ8M+GUInEyfTITKQV065KuDh8SWftHkNAQIGVxjU44cAkhHAAmCVFD8dwYktulnS3g2oiY2SAdZglmq34sS7pNn3JADJCcAGoGggaftWL2qFgzOc3OjEKbCau1sG3uo51TRN8c3BRX+E9SquAlwmU8t2EeLIf+h+B60hw4ADyTE7EWzzfYYAAAAASUVORK5CYII=);
  1056. background-size: 100% 100%;
  1057. width: 10px;
  1058. height: 10px;
  1059. margin-top: -1px;
  1060. }
  1061. &:nth-of-type(3) i {
  1062. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAIVJREFUOE+tk9sNwCAIRa/7MES7WTerQ7BPGxolCpKmVT+Fe3gnTL40qUcHIKKNmXMEFTsA8TmqjwKK8SyG3YIiewQQjkKMGMysOlcCgJrFAykZdX9tdq6JNprphyttOIUA4sQCXw+YKmEg/tZEIrqapoVjbEe8bpEk8tsqj3zWHtOfy7wB41tXEXo/wKEAAAAASUVORK5CYII=);
  1063. background-size: 100% 100%;
  1064. width: 8px;
  1065. height: 8px;
  1066. }
  1067. }
  1068. }
  1069. .elem-body {
  1070. padding: 10px 5px;
  1071. font-size: 0;
  1072. }
  1073. .group-item {
  1074. font-family: "Times New Roman", Arial, sans-serif;
  1075. display: inline-block;
  1076. vertical-align: top;
  1077. font-size: 0;
  1078. // margin-bottom: 20px;
  1079. }
  1080. .question-item {
  1081. font-size: 0;
  1082. }
  1083. .option-item {
  1084. display: inline-block;
  1085. vertical-align: middle;
  1086. padding: 0;
  1087. width: 18px;
  1088. height: 10px;
  1089. text-align: center;
  1090. font-size: 12px;
  1091. line-height: 8px;
  1092. // border-rect
  1093. border: 1px solid #000;
  1094. color: #000;
  1095. box-sizing: border-box;
  1096. > i {
  1097. display: inline-block;
  1098. transform: scale(0.67, 0.67);
  1099. -webkit-transform: scale(0.67, 0.67);
  1100. }
  1101. &:first-child {
  1102. text-align: center;
  1103. border: none;
  1104. font-size: 12px;
  1105. line-height: 10px;
  1106. color: #000;
  1107. > i {
  1108. transform: scale(0.9, 0.9);
  1109. -webkit-transform: scale(0.9, 0.9);
  1110. }
  1111. }
  1112. &:last-child {
  1113. margin-right: 0 !important;
  1114. }
  1115. }
  1116. &-vertical {
  1117. .elem-body {
  1118. padding: 10px 20px;
  1119. }
  1120. .question-item {
  1121. display: inline-block;
  1122. vertical-align: top;
  1123. &:last-child {
  1124. margin-right: 0 !important;
  1125. }
  1126. }
  1127. .option-item {
  1128. display: block;
  1129. &:first-child {
  1130. padding: 0;
  1131. text-align: center;
  1132. }
  1133. &:last-child {
  1134. margin-bottom: 0 !important;
  1135. }
  1136. }
  1137. }
  1138. }
  1139. // elem-fill-area
  1140. .elem-fill-area {
  1141. .option-item {
  1142. display: inline-block;
  1143. vertical-align: middle;
  1144. width: 30px;
  1145. height: 16px;
  1146. border: 1px solid #000;
  1147. &:last-child {
  1148. margin-right: 0 !important;
  1149. }
  1150. }
  1151. &-vertical {
  1152. .option-item {
  1153. display: block;
  1154. &:last-child {
  1155. margin-bottom: 0 !important;
  1156. }
  1157. }
  1158. }
  1159. }
  1160. // elem-fill-line
  1161. .elem-fill-line {
  1162. white-space: normal;
  1163. .elem-body {
  1164. padding: 0 15px 0 10px;
  1165. font-size: 0;
  1166. }
  1167. .elem-fill-quesiton {
  1168. display: inline-block;
  1169. vertical-align: top;
  1170. position: relative;
  1171. padding: 0 1px;
  1172. font-size: 12px;
  1173. li {
  1174. &.elem-fill-line {
  1175. height: 40px;
  1176. position: relative;
  1177. margin: 0 10px 0 20px;
  1178. z-index: 8;
  1179. &::after {
  1180. content: "";
  1181. display: block;
  1182. position: absolute;
  1183. width: 100%;
  1184. border-bottom: 1px solid #000;
  1185. bottom: 8px;
  1186. }
  1187. }
  1188. &.elem-fill-no {
  1189. position: absolute;
  1190. top: 2px;
  1191. bottom: 2px;
  1192. left: 1px;
  1193. z-index: 9;
  1194. min-width: 20px;
  1195. text-align: left;
  1196. background-color: #fff;
  1197. border: none;
  1198. span {
  1199. display: block;
  1200. position: relative;
  1201. padding-bottom: 5px;
  1202. padding-right: 3px;
  1203. transform: translateY(-100%);
  1204. -webkit-transform: translateY(-100%);
  1205. }
  1206. }
  1207. &.elem-fill-comma {
  1208. position: absolute;
  1209. top: 0;
  1210. right: -10px;
  1211. z-index: 9;
  1212. transform: translateY(-100%);
  1213. -webkit-transform: translateY(-100%);
  1214. width: 10px;
  1215. padding-bottom: 4px;
  1216. background-color: #fff;
  1217. text-align: center;
  1218. border: none;
  1219. }
  1220. }
  1221. }
  1222. }
  1223. // elem-explain
  1224. .elem-explain {
  1225. .elem-title {
  1226. padding-bottom: 0;
  1227. }
  1228. .elem-body {
  1229. min-height: 60px;
  1230. position: relative;
  1231. }
  1232. .elem-explain-no {
  1233. position: absolute;
  1234. left: 20px;
  1235. top: 10px;
  1236. font-size: 12px;
  1237. z-index: 9;
  1238. }
  1239. .elem-explain-elements {
  1240. position: absolute;
  1241. width: 100%;
  1242. height: 100%;
  1243. top: 0;
  1244. left: 0;
  1245. z-index: 8;
  1246. }
  1247. .elem-explain-element {
  1248. .explain-element-body {
  1249. position: absolute;
  1250. }
  1251. }
  1252. }
  1253. // .elem-composition
  1254. .elem-composition {
  1255. .elem-title {
  1256. padding-bottom: 0;
  1257. }
  1258. .elem-body {
  1259. min-height: 60px;
  1260. position: relative;
  1261. }
  1262. &-elements {
  1263. position: absolute;
  1264. width: 100%;
  1265. height: 100%;
  1266. top: 0;
  1267. left: 0;
  1268. z-index: 8;
  1269. }
  1270. .elem-composition-element {
  1271. .composition-element-body {
  1272. position: absolute;
  1273. overflow: hidden;
  1274. }
  1275. }
  1276. }
  1277. // elem-fill-number
  1278. .elem-fill-number {
  1279. border: 1px solid #000;
  1280. .fill-number {
  1281. &-rect {
  1282. font-size: 0;
  1283. height: 27px;
  1284. border-bottom: 1px solid #000;
  1285. }
  1286. &-number {
  1287. display: inline-block;
  1288. vertical-align: top;
  1289. width: 7.692%;
  1290. height: 100%;
  1291. &:not(:last-child) {
  1292. border-right: 1px solid #000;
  1293. }
  1294. }
  1295. &-head {
  1296. height: 51px;
  1297. > h5 {
  1298. border-bottom: 1px solid #000;
  1299. line-height: 24px;
  1300. font-size: 16px;
  1301. font-weight: bold;
  1302. text-align: center;
  1303. }
  1304. }
  1305. &-body {
  1306. display: table;
  1307. width: 100%;
  1308. }
  1309. &-list {
  1310. display: table-cell;
  1311. width: 7.692%;
  1312. padding: 1px 0;
  1313. }
  1314. &-option {
  1315. margin: 8px auto;
  1316. width: 18px;
  1317. height: 10px;
  1318. font-size: 12px;
  1319. line-height: 8px;
  1320. text-align: center;
  1321. color: #000;
  1322. // border-rect
  1323. border: 1px solid #000;
  1324. font-family: "Times New Roman", Arial, sans-serif;
  1325. > i {
  1326. display: inline-block;
  1327. transform: scale(0.67, 0.67);
  1328. -webkit-transform: scale(0.67, 0.67);
  1329. }
  1330. }
  1331. }
  1332. }
  1333. // elem-fill-field
  1334. .elem-fill-field {
  1335. white-space: normal;
  1336. overflow: hidden;
  1337. }
  1338. .fill-field {
  1339. &-item {
  1340. display: inline-block;
  1341. padding: 0 10px;
  1342. width: 100%;
  1343. }
  1344. &-content {
  1345. height: 30px;
  1346. line-height: 26px;
  1347. overflow: hidden;
  1348. position: relative;
  1349. &::after {
  1350. content: "";
  1351. display: block;
  1352. position: absolute;
  1353. width: 100%;
  1354. border-bottom: 1px solid #000;
  1355. bottom: 2px;
  1356. left: 0;
  1357. z-index: 1;
  1358. }
  1359. > span {
  1360. z-index: 2;
  1361. display: block;
  1362. position: relative;
  1363. font-size: 14px;
  1364. &:first-child {
  1365. float: left;
  1366. background-color: #fff;
  1367. text-align: justify;
  1368. font-size: 0px;
  1369. & > i {
  1370. font-size: 14px;
  1371. }
  1372. &::after {
  1373. content: "";
  1374. display: inline-block;
  1375. width: 100%;
  1376. height: 0;
  1377. line-height: 0;
  1378. }
  1379. }
  1380. &:nth-of-type(2) {
  1381. float: left;
  1382. width: 20px;
  1383. background-color: #fff;
  1384. }
  1385. &:last-child {
  1386. margin-left: 80px;
  1387. height: 100%;
  1388. }
  1389. }
  1390. }
  1391. }
  1392. // elem-fill-pane
  1393. .elem-fill-pane {
  1394. font-size: 0;
  1395. white-space: normal;
  1396. overflow: hidden;
  1397. .fill-pane {
  1398. &-item {
  1399. display: inline-block;
  1400. vertical-align: top;
  1401. font-size: 14px;
  1402. }
  1403. &-cont {
  1404. border: 1px solid #000;
  1405. }
  1406. }
  1407. }
  1408. // elem-forbid-area
  1409. .elem-forbid-area {
  1410. height: 100%;
  1411. position: relative;
  1412. .text-body {
  1413. position: absolute;
  1414. width: 100%;
  1415. left: 0;
  1416. top: 50%;
  1417. transform: translateY(-50%);
  1418. -webkit-transform: translateY(-50%);
  1419. font-size: 30px;
  1420. text-align: center;
  1421. }
  1422. }
  1423. // elem-fill-table
  1424. .elem-fill-table {
  1425. .table {
  1426. width: 100%;
  1427. border-spacing: 0;
  1428. border-collapse: collapse;
  1429. text-align: left;
  1430. td {
  1431. padding: 0;
  1432. }
  1433. }
  1434. }
  1435. // elem-undertaking
  1436. .elem-undertaking {
  1437. position: absolute;
  1438. width: 60px;
  1439. top: 60px;
  1440. bottom: 60px;
  1441. right: 10px;
  1442. font-size: 12px;
  1443. line-height: 15px;
  1444. .para-text {
  1445. width: 15px;
  1446. text-align: center;
  1447. position: absolute;
  1448. top: 0;
  1449. span {
  1450. display: inline-block;
  1451. transform: rotate(90deg);
  1452. -webkit-transform: rotate(90deg);
  1453. }
  1454. em {
  1455. display: inline-block;
  1456. margin-left: 5px;
  1457. margin-bottom: 5px;
  1458. height: 10px;
  1459. line-height: 10px;
  1460. }
  1461. }
  1462. .para-title {
  1463. right: 0;
  1464. top: 50%;
  1465. transform: translateY(-50%);
  1466. -webkit-transform: translateY(-50%);
  1467. }
  1468. .para-cl {
  1469. right: 15px;
  1470. }
  1471. .para-body {
  1472. right: 30px;
  1473. height: 100%;
  1474. width: 30px;
  1475. > p {
  1476. display: block;
  1477. width: 15px;
  1478. height: 100%;
  1479. float: right;
  1480. &:first-child {
  1481. padding-top: 30px;
  1482. }
  1483. }
  1484. }
  1485. .para-std {
  1486. bottom: 150px;
  1487. top: auto;
  1488. left: 0;
  1489. }
  1490. }
  1491. // card-free-preview
  1492. .card-free-preview {
  1493. &:not(.card-print) {
  1494. padding: 10px 0;
  1495. background-color: #f0f0f0;
  1496. .page-box {
  1497. margin: 10px auto;
  1498. box-shadow: 0 0 4px #ddd;
  1499. }
  1500. }
  1501. .page-column-element {
  1502. .element-item {
  1503. position: absolute;
  1504. overflow: hidden;
  1505. &::before {
  1506. display: none;
  1507. }
  1508. }
  1509. }
  1510. }
  1511. @media print {
  1512. .card-preview {
  1513. padding: 0;
  1514. .page-box {
  1515. margin: 0 auto;
  1516. box-shadow: none;
  1517. page-break-after: always;
  1518. }
  1519. // 印刷模式:隐藏客观题强调标记
  1520. .elem-fill-question-first {
  1521. &::before {
  1522. display: none;
  1523. }
  1524. }
  1525. .elem-fill-question .option-item,
  1526. .card-print .elem-fill-number .fill-number-option,
  1527. .card-head-body .head-stdno .stdno-fill-option,
  1528. .page-number-rect-list li,
  1529. .card-head-body .head-dynamic-rect {
  1530. border-width: 0.5pt;
  1531. }
  1532. .elem-fill-question .option-item {
  1533. line-height: 9px;
  1534. }
  1535. }
  1536. }