card-preview.scss 31 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667
  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. text-align: center;
  784. &:not(:last-child) {
  785. border-right: 1px solid #000;
  786. }
  787. }
  788. &-fill {
  789. .dynamic-aorb-item:first-child {
  790. border: none;
  791. }
  792. }
  793. .dynamic-aorb-title {
  794. width: 83px;
  795. }
  796. .dynamic-aorb-info {
  797. width: 50px;
  798. font-size: 16px;
  799. position: relative;
  800. overflow: hidden;
  801. .dynamic-aorb-content {
  802. position: absolute;
  803. top: 50%;
  804. left: 0;
  805. width: 100%;
  806. transform: translateY(-50%);
  807. -webkit-transform: translateY(-50%);
  808. z-index: auto;
  809. }
  810. }
  811. .dynamic-aorb-barcode {
  812. img {
  813. display: block;
  814. position: relative;
  815. margin: 0 auto;
  816. width: 200px;
  817. height: 26px;
  818. padding: 7px 0;
  819. }
  820. }
  821. .dynamic-aorb-rects {
  822. padding: 16px 10px;
  823. }
  824. }
  825. }
  826. }
  827. &-part {
  828. border: 1px solid #000;
  829. &:not(:last-child) {
  830. margin-bottom: 10px;
  831. }
  832. }
  833. &-normal {
  834. .head-dynamic {
  835. &-1 {
  836. .head-dynamic-part {
  837. height: 100%;
  838. }
  839. }
  840. }
  841. }
  842. &-narrow {
  843. .head-stdno {
  844. height: 138px;
  845. .stdno-auto {
  846. position: relative;
  847. top: 50%;
  848. margin-top: -40px;
  849. }
  850. }
  851. }
  852. &-handle {
  853. &.card-head-narrow {
  854. .head-stdno {
  855. height: 242px;
  856. }
  857. }
  858. }
  859. }
  860. // card-head-body-auto-resize
  861. .card-head-body-auto-resize {
  862. margin-left: -5px;
  863. margin-right: -5px;
  864. overflow: hidden;
  865. &.col-item-auto-height {
  866. .card-head-body-spin {
  867. height: auto;
  868. }
  869. }
  870. .head-dynamic-2 {
  871. .head-dynamic-part {
  872. height: auto;
  873. }
  874. }
  875. .rect-col {
  876. padding: 5px;
  877. &:first-child {
  878. float: left;
  879. width: 50%;
  880. }
  881. &:last-child {
  882. float: right;
  883. width: 50%;
  884. }
  885. &-item {
  886. border: 1px solid #000;
  887. &:nth-of-type(2) {
  888. margin-top: 10px;
  889. }
  890. &-none {
  891. border: none;
  892. margin: 0 !important;
  893. }
  894. }
  895. }
  896. }
  897. // elem-topic-head
  898. .elem-topic-head {
  899. text-align: center;
  900. .elem-body {
  901. padding: 0;
  902. border: 1px solid #000;
  903. }
  904. &-pad {
  905. padding-top: 10px;
  906. }
  907. &-empty {
  908. .elem-body {
  909. border-top: none;
  910. }
  911. }
  912. h3 {
  913. font-size: 16px;
  914. height: 29px;
  915. line-height: 28px;
  916. border-bottom: 1px dotted #000;
  917. font-weight: normal;
  918. }
  919. p {
  920. font-size: 12px;
  921. height: 22px;
  922. line-height: 22px;
  923. white-space: nowrap;
  924. overflow: hidden;
  925. // text-overflow: ellipsis;
  926. }
  927. }
  928. // elem-line
  929. .elem-line-horizontal {
  930. height: 100%;
  931. line-height: 30px;
  932. .line-body {
  933. display: inline-block;
  934. vertical-align: middle;
  935. width: 100%;
  936. border-bottom: 1px solid #000;
  937. }
  938. }
  939. .elem-line-vertical {
  940. height: 100%;
  941. text-align: center;
  942. .line-body {
  943. display: inline-block;
  944. vertical-align: top;
  945. height: 100%;
  946. border-left: 1px solid #000;
  947. }
  948. }
  949. // elem-lines
  950. .elem-lines {
  951. .line-item {
  952. display: inline-block;
  953. vertical-align: top;
  954. }
  955. }
  956. // elem-rect
  957. .elem-rect {
  958. .rect-body {
  959. position: absolute;
  960. width: 100%;
  961. height: 100%;
  962. top: 0;
  963. left: 0;
  964. }
  965. }
  966. // elem-text
  967. .elem-text {
  968. .text-body {
  969. padding: 5px;
  970. line-height: 1.4;
  971. span {
  972. white-space: pre-wrap;
  973. word-wrap: normal;
  974. word-break: break-all;
  975. &.cont-variate {
  976. color: #a0a0a0;
  977. margin: 0 2px;
  978. }
  979. }
  980. }
  981. }
  982. // elem-barcode
  983. .elem-barcode {
  984. height: 100%;
  985. border-color: transparent;
  986. border-width: 1pt;
  987. position: relative;
  988. > img {
  989. max-height: 100%;
  990. max-width: 100%;
  991. position: absolute;
  992. top: 0;
  993. bottom: 0;
  994. left: 0;
  995. right: 0;
  996. margin: auto;
  997. }
  998. }
  999. // elem-image
  1000. .elem-image {
  1001. height: 100%;
  1002. border-color: transparent;
  1003. border-width: 1pt;
  1004. position: relative;
  1005. > p {
  1006. position: absolute;
  1007. width: 100%;
  1008. height: 100%;
  1009. top: 0;
  1010. left: 0;
  1011. display: table;
  1012. text-align: center;
  1013. color: #b0b0b0;
  1014. font-size: 30pt;
  1015. i {
  1016. display: table-cell;
  1017. vertical-align: middle;
  1018. }
  1019. }
  1020. > img {
  1021. max-height: 100%;
  1022. max-width: 100%;
  1023. position: absolute;
  1024. top: 0;
  1025. bottom: 0;
  1026. left: 0;
  1027. right: 0;
  1028. margin: auto;
  1029. }
  1030. }
  1031. // elem-girds
  1032. .elem-grids {
  1033. > table {
  1034. table-layout: fixed;
  1035. border-spacing: 0;
  1036. border-collapse: collapse;
  1037. td {
  1038. border: 1px solid #000;
  1039. }
  1040. }
  1041. &-halving {
  1042. > table {
  1043. table-layout: auto;
  1044. width: 100%;
  1045. }
  1046. td > div {
  1047. padding-bottom: 100%;
  1048. }
  1049. }
  1050. }
  1051. .elem-pane {
  1052. height: 100%;
  1053. }
  1054. // elem-fill-question
  1055. .elem-fill-question {
  1056. white-space: normal;
  1057. // 客观题强调标记
  1058. &-first::before {
  1059. content: "";
  1060. position: absolute;
  1061. right: 0;
  1062. top: 0;
  1063. z-index: 99;
  1064. color: #fff;
  1065. padding: 6px 10px;
  1066. line-height: 1;
  1067. font-size: 18px;
  1068. border-bottom-left-radius: 10px;
  1069. }
  1070. &-first.elem-fill-question-simple {
  1071. &::before {
  1072. content: "单选";
  1073. background-color: mix(#fff, $--color-success, 20%);
  1074. }
  1075. }
  1076. &-first.elem-fill-question-multiply {
  1077. &::before {
  1078. content: "多选";
  1079. background-color: $--color-primary-light;
  1080. }
  1081. }
  1082. &-first.elem-fill-question-boolean {
  1083. &::before {
  1084. content: "判断";
  1085. background-color: mix(#fff, $--color-warning, 20%);
  1086. }
  1087. }
  1088. &-boolean {
  1089. .option-item {
  1090. &:nth-of-type(2) i {
  1091. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAItJREFUOE/Vk9ERgCAMQ8M+GUInEyfTITKQV065KuDh8SWftHkNAQIGVxjU44cAkhHAAmCVFD8dwYktulnS3g2oiY2SAdZglmq34sS7pNn3JADJCcAGoGggaftWL2qFgzOc3OjEKbCau1sG3uo51TRN8c3BRX+E9SquAlwmU8t2EeLIf+h+B60hw4ADyTE7EWzzfYYAAAAASUVORK5CYII=);
  1092. background-size: 100% 100%;
  1093. width: 10px;
  1094. height: 10px;
  1095. margin-top: -1px;
  1096. }
  1097. &:nth-of-type(3) i {
  1098. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAIVJREFUOE+tk9sNwCAIRa/7MES7WTerQ7BPGxolCpKmVT+Fe3gnTL40qUcHIKKNmXMEFTsA8TmqjwKK8SyG3YIiewQQjkKMGMysOlcCgJrFAykZdX9tdq6JNprphyttOIUA4sQCXw+YKmEg/tZEIrqapoVjbEe8bpEk8tsqj3zWHtOfy7wB41tXEXo/wKEAAAAASUVORK5CYII=);
  1099. background-size: 100% 100%;
  1100. width: 8px;
  1101. height: 8px;
  1102. }
  1103. }
  1104. }
  1105. .elem-body {
  1106. padding: 10px 5px;
  1107. font-size: 0;
  1108. }
  1109. .group-item {
  1110. font-family: "Times New Roman", Arial, sans-serif;
  1111. display: inline-block;
  1112. vertical-align: top;
  1113. font-size: 0;
  1114. // margin-bottom: 20px;
  1115. }
  1116. .question-item {
  1117. font-size: 0;
  1118. }
  1119. .option-item {
  1120. display: inline-block;
  1121. vertical-align: middle;
  1122. padding: 0;
  1123. width: 18px;
  1124. height: 10px;
  1125. text-align: center;
  1126. font-size: 12px;
  1127. line-height: 8px;
  1128. // border-rect
  1129. border: 1px solid #000;
  1130. color: #000;
  1131. box-sizing: border-box;
  1132. > i {
  1133. display: inline-block;
  1134. transform: scale(0.67, 0.67);
  1135. -webkit-transform: scale(0.67, 0.67);
  1136. }
  1137. &:first-child {
  1138. text-align: center;
  1139. border: none;
  1140. font-size: 12px;
  1141. line-height: 10px;
  1142. color: #000;
  1143. > i {
  1144. transform: scale(0.9, 0.9);
  1145. -webkit-transform: scale(0.9, 0.9);
  1146. }
  1147. }
  1148. &:last-child {
  1149. margin-right: 0 !important;
  1150. }
  1151. }
  1152. &-vertical {
  1153. .elem-body {
  1154. padding: 10px 20px;
  1155. }
  1156. .question-item {
  1157. display: inline-block;
  1158. vertical-align: top;
  1159. &:last-child {
  1160. margin-right: 0 !important;
  1161. }
  1162. }
  1163. .option-item {
  1164. display: block;
  1165. &:first-child {
  1166. padding: 0;
  1167. text-align: center;
  1168. }
  1169. &:last-child {
  1170. margin-bottom: 0 !important;
  1171. }
  1172. }
  1173. }
  1174. }
  1175. // elem-fill-area
  1176. .elem-fill-area {
  1177. .option-item {
  1178. display: inline-block;
  1179. vertical-align: middle;
  1180. width: 30px;
  1181. height: 16px;
  1182. border: 1px solid #000;
  1183. &:last-child {
  1184. margin-right: 0 !important;
  1185. }
  1186. }
  1187. &-vertical {
  1188. .option-item {
  1189. display: block;
  1190. &:last-child {
  1191. margin-bottom: 0 !important;
  1192. }
  1193. }
  1194. }
  1195. }
  1196. // elem-fill-line
  1197. .elem-fill-line {
  1198. white-space: normal;
  1199. .elem-body {
  1200. padding: 0 15px 0 10px;
  1201. font-size: 0;
  1202. }
  1203. .elem-fill-quesiton {
  1204. display: inline-block;
  1205. vertical-align: top;
  1206. position: relative;
  1207. padding: 0 1px;
  1208. font-size: 12px;
  1209. li {
  1210. &.elem-fill-line {
  1211. height: 40px;
  1212. position: relative;
  1213. margin: 0 10px 0 20px;
  1214. z-index: 8;
  1215. &::after {
  1216. content: "";
  1217. display: block;
  1218. position: absolute;
  1219. width: 100%;
  1220. border-bottom: 1px solid #000;
  1221. bottom: 8px;
  1222. }
  1223. }
  1224. &.elem-fill-no {
  1225. position: absolute;
  1226. top: 2px;
  1227. bottom: 2px;
  1228. left: 1px;
  1229. z-index: 9;
  1230. min-width: 20px;
  1231. text-align: left;
  1232. background-color: #fff;
  1233. border: none;
  1234. span {
  1235. display: block;
  1236. position: relative;
  1237. padding-bottom: 5px;
  1238. padding-right: 3px;
  1239. transform: translateY(-100%);
  1240. -webkit-transform: translateY(-100%);
  1241. }
  1242. }
  1243. &.elem-fill-comma {
  1244. position: absolute;
  1245. top: 0;
  1246. right: -10px;
  1247. z-index: 9;
  1248. transform: translateY(-100%);
  1249. -webkit-transform: translateY(-100%);
  1250. width: 10px;
  1251. padding-bottom: 4px;
  1252. background-color: #fff;
  1253. text-align: center;
  1254. border: none;
  1255. }
  1256. }
  1257. }
  1258. }
  1259. // elem-explain
  1260. .elem-explain {
  1261. .elem-title {
  1262. padding-bottom: 0;
  1263. }
  1264. .elem-body {
  1265. min-height: 60px;
  1266. position: relative;
  1267. }
  1268. .elem-explain-no {
  1269. position: absolute;
  1270. left: 20px;
  1271. top: 10px;
  1272. font-size: 12px;
  1273. z-index: 9;
  1274. }
  1275. .elem-explain-elements {
  1276. position: absolute;
  1277. width: 100%;
  1278. height: 100%;
  1279. top: 0;
  1280. left: 0;
  1281. z-index: 8;
  1282. }
  1283. .elem-explain-element {
  1284. .explain-element-body {
  1285. position: absolute;
  1286. }
  1287. }
  1288. }
  1289. // .elem-composition
  1290. .elem-composition {
  1291. .elem-title {
  1292. padding-bottom: 0;
  1293. }
  1294. .elem-body {
  1295. min-height: 60px;
  1296. position: relative;
  1297. }
  1298. &-elements {
  1299. position: absolute;
  1300. width: 100%;
  1301. height: 100%;
  1302. top: 0;
  1303. left: 0;
  1304. z-index: 8;
  1305. }
  1306. .elem-composition-element {
  1307. .composition-element-body {
  1308. position: absolute;
  1309. overflow: hidden;
  1310. }
  1311. }
  1312. }
  1313. // elem-fill-number
  1314. .elem-fill-number {
  1315. border: 1px solid #000;
  1316. .fill-number {
  1317. &-rect {
  1318. font-size: 0;
  1319. height: 27px;
  1320. border-bottom: 1px solid #000;
  1321. }
  1322. &-number {
  1323. display: inline-block;
  1324. vertical-align: top;
  1325. width: 7.692%;
  1326. height: 100%;
  1327. &:not(:last-child) {
  1328. border-right: 1px solid #000;
  1329. }
  1330. }
  1331. &-head {
  1332. height: 51px;
  1333. > h5 {
  1334. border-bottom: 1px solid #000;
  1335. line-height: 24px;
  1336. font-size: 16px;
  1337. font-weight: bold;
  1338. text-align: center;
  1339. }
  1340. }
  1341. &-body {
  1342. display: table;
  1343. width: 100%;
  1344. }
  1345. &-list {
  1346. display: table-cell;
  1347. width: 7.692%;
  1348. padding: 1px 0;
  1349. }
  1350. &-option {
  1351. margin: 8px auto;
  1352. width: 18px;
  1353. height: 10px;
  1354. font-size: 12px;
  1355. line-height: 8px;
  1356. text-align: center;
  1357. color: #000;
  1358. // border-rect
  1359. border: 1px solid #000;
  1360. font-family: "Times New Roman", Arial, sans-serif;
  1361. > i {
  1362. display: inline-block;
  1363. transform: scale(0.67, 0.67);
  1364. -webkit-transform: scale(0.67, 0.67);
  1365. }
  1366. }
  1367. }
  1368. }
  1369. // elem-fill-field
  1370. .elem-fill-field {
  1371. white-space: normal;
  1372. overflow: hidden;
  1373. }
  1374. .fill-field {
  1375. &-item {
  1376. display: inline-block;
  1377. padding: 0 10px;
  1378. width: 100%;
  1379. }
  1380. &-content {
  1381. height: 30px;
  1382. line-height: 26px;
  1383. overflow: hidden;
  1384. position: relative;
  1385. &::after {
  1386. content: "";
  1387. display: block;
  1388. position: absolute;
  1389. width: 100%;
  1390. border-bottom: 1px solid #000;
  1391. bottom: 2px;
  1392. left: 0;
  1393. z-index: 1;
  1394. }
  1395. > span {
  1396. z-index: 2;
  1397. display: block;
  1398. position: relative;
  1399. font-size: 14px;
  1400. &:first-child {
  1401. float: left;
  1402. background-color: #fff;
  1403. text-align: justify;
  1404. font-size: 0px;
  1405. & > i {
  1406. font-size: 14px;
  1407. }
  1408. &::after {
  1409. content: "";
  1410. display: inline-block;
  1411. width: 100%;
  1412. height: 0;
  1413. line-height: 0;
  1414. }
  1415. }
  1416. &:nth-of-type(2) {
  1417. float: left;
  1418. width: 20px;
  1419. background-color: #fff;
  1420. }
  1421. &:last-child {
  1422. margin-left: 80px;
  1423. height: 100%;
  1424. }
  1425. }
  1426. }
  1427. }
  1428. // elem-fill-pane
  1429. .elem-fill-pane {
  1430. font-size: 0;
  1431. white-space: normal;
  1432. overflow: hidden;
  1433. .fill-pane {
  1434. &-item {
  1435. display: inline-block;
  1436. vertical-align: top;
  1437. font-size: 14px;
  1438. }
  1439. &-cont {
  1440. border: 1px solid #000;
  1441. }
  1442. }
  1443. }
  1444. // elem-forbid-area
  1445. .elem-forbid-area {
  1446. height: 100%;
  1447. position: relative;
  1448. .text-body {
  1449. position: absolute;
  1450. width: 100%;
  1451. left: 0;
  1452. top: 50%;
  1453. transform: translateY(-50%);
  1454. -webkit-transform: translateY(-50%);
  1455. font-size: 30px;
  1456. text-align: center;
  1457. }
  1458. }
  1459. // elem-fill-table
  1460. .elem-fill-table {
  1461. .table {
  1462. width: 100%;
  1463. border-spacing: 0;
  1464. border-collapse: collapse;
  1465. text-align: left;
  1466. td {
  1467. padding: 0;
  1468. }
  1469. }
  1470. }
  1471. // elem-undertaking
  1472. .elem-undertaking {
  1473. position: absolute;
  1474. width: 60px;
  1475. top: 60px;
  1476. bottom: 60px;
  1477. right: 10px;
  1478. font-size: 12px;
  1479. line-height: 15px;
  1480. .para-text {
  1481. width: 15px;
  1482. text-align: center;
  1483. position: absolute;
  1484. top: 0;
  1485. span {
  1486. display: inline-block;
  1487. transform: rotate(90deg);
  1488. -webkit-transform: rotate(90deg);
  1489. }
  1490. em {
  1491. display: inline-block;
  1492. margin-left: 5px;
  1493. margin-bottom: 5px;
  1494. height: 10px;
  1495. line-height: 10px;
  1496. }
  1497. }
  1498. .para-title {
  1499. right: 0;
  1500. top: 50%;
  1501. transform: translateY(-50%);
  1502. -webkit-transform: translateY(-50%);
  1503. }
  1504. .para-cl {
  1505. right: 15px;
  1506. }
  1507. .para-body {
  1508. right: 30px;
  1509. height: 100%;
  1510. width: 30px;
  1511. > p {
  1512. display: block;
  1513. width: 15px;
  1514. height: 100%;
  1515. float: right;
  1516. &:first-child {
  1517. padding-top: 30px;
  1518. }
  1519. }
  1520. }
  1521. .para-std {
  1522. bottom: 130px;
  1523. top: auto;
  1524. left: 0;
  1525. }
  1526. }
  1527. // card-free-preview
  1528. .card-free-preview {
  1529. &:not(.card-print) {
  1530. padding: 10px 0;
  1531. background-color: #f0f0f0;
  1532. .page-box {
  1533. margin: 10px auto;
  1534. box-shadow: 0 0 4px #ddd;
  1535. }
  1536. }
  1537. .page-column-element {
  1538. .element-item {
  1539. position: absolute;
  1540. overflow: hidden;
  1541. &::before {
  1542. display: none;
  1543. }
  1544. }
  1545. }
  1546. }
  1547. @media print {
  1548. .card-preview {
  1549. padding: 0;
  1550. .page-box {
  1551. margin: 0 auto;
  1552. box-shadow: none;
  1553. page-break-after: always;
  1554. }
  1555. // 印刷模式:隐藏客观题强调标记
  1556. .elem-fill-question-first {
  1557. &::before {
  1558. display: none;
  1559. }
  1560. }
  1561. .elem-fill-question .option-item,
  1562. .card-print .elem-fill-number .fill-number-option,
  1563. .card-head-body .head-stdno .stdno-fill-option,
  1564. .page-number-rect-list li,
  1565. .card-head-body .head-dynamic-rect {
  1566. border-width: 0.5pt;
  1567. }
  1568. .elem-fill-question .option-item {
  1569. line-height: 9px;
  1570. }
  1571. }
  1572. }