card-preview.scss 31 KB

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