card-preview.scss 27 KB

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