card-preview.scss 29 KB

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