card-preview.scss 29 KB

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