card-preview.scss 31 KB

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