card-preview.scss 30 KB

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