card-preview.scss 31 KB

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