123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668 |
- // card-preview
- .card-preview {
- padding: 10px 0;
- background-color: #f0f0f0;
- color: #000;
- .page-box {
- margin: 10px auto;
- box-shadow: 0 0 4px #ddd;
- }
- }
- .card-print {
- padding: 0;
- .page-box {
- margin: 0 auto;
- box-shadow: none;
- page-break-after: always;
- }
- // 印刷模式:隐藏客观题强调标记
- .elem-fill-question-first {
- &::before {
- display: none;
- }
- }
- .elem-fill-question .option-item,
- .elem-fill-number .fill-number-option,
- .card-head-body .head-stdno .stdno-fill-option,
- .page-number-rect-list li,
- .card-head-body .head-dynamic-rect {
- border-width: 0.5pt;
- }
- .elem-fill-question .option-item {
- line-height: 9px;
- }
- .package-number {
- display: block !important;
- }
- }
- // page-box
- .page-box {
- position: relative;
- background: #fff;
- margin: 0 auto;
- font-weight: normal;
- font-family: "Times New Roman", "宋体", "宋体-简", Arial, sans-serif;
- .package-number {
- position: absolute;
- width: 200px;
- height: 40px;
- top: 10px;
- right: 25%;
- margin-left: -100px;
- text-align: center;
- z-index: 99;
- display: none;
- img {
- display: block;
- height: 28px;
- width: 100%;
- border: none;
- }
- p {
- line-height: 1;
- font-size: 12px;
- margin: 0;
- }
- }
- .page-main {
- height: 100%;
- position: relative;
- white-space: nowrap;
- margin: 0 -10px;
- font-size: 0;
- &-2 {
- .page-column {
- width: 50%;
- }
- }
- &-3 {
- .page-column {
- width: 33.33%;
- }
- }
- &-4 {
- .page-column {
- width: 25%;
- }
- }
- }
- &-A3 {
- width: 1586px;
- height: 1122px;
- .page-main {
- &-inner {
- padding: 60px 80px;
- }
- }
- }
- &-A4 {
- width: 793px;
- height: 1122px;
- .page-main {
- &-inner {
- padding: 60px 45px;
- }
- }
- }
- &-less {
- .page-number-rect {
- display: none;
- }
- }
- }
- // 分栏间距,默认20px
- // page-main-inner
- .page-main-inner {
- position: absolute;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- padding: 60px 80px 86px;
- z-index: 9;
- font-size: 0;
- }
- // page-main-outer
- .page-main-outer {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 7;
- background-color: transparent;
- overflow: hidden;
- }
- .page-column {
- display: inline-block;
- vertical-align: middle;
- position: relative;
- height: 100%;
- width: 100%;
- font-size: 14px;
- padding: 0 10px;
- &-forbid-area {
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- z-index: 1;
- border: 1px solid #000;
- overflow: hidden;
- > p {
- padding: 20px;
- position: absolute;
- width: 260px;
- height: 82px;
- top: 50%;
- left: 50%;
- margin-top: -41px;
- margin-left: -130px;
- z-index: 9;
- font-weight: bold;
- font-size: 30px;
- color: #333;
- background-color: #fff;
- text-align: center;
- }
- }
- &-main {
- position: relative;
- height: 100%;
- }
- &-body {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- z-index: 9;
- }
- &-element {
- .element-item {
- position: relative;
- &-width {
- width: 100% !important;
- }
- &::before {
- content: "";
- position: absolute;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- box-sizing: border-box;
- z-index: 2;
- border: 1px solid #000;
- border-top: 0;
- }
- > div {
- z-index: 9;
- position: relative;
- }
- &-card-head {
- &::before {
- border: 0;
- }
- }
- &-topic-head {
- &::before {
- border: 0;
- }
- }
- &-fill-question,
- &-fill-line {
- &::before {
- border-bottom: 0;
- }
- }
- // 预览时,小题扩展答题区之间隐藏分割线
- &-explain {
- &::before {
- border-bottom-color: transparent;
- }
- }
- &-type-last {
- &::before {
- border-bottom: 1px solid #000;
- }
- }
- }
- &:last-child {
- .element-item {
- &::before {
- border-bottom: 1px solid #000;
- }
- }
- .element-item-card-head.element-item-type-pre {
- &::before {
- border-bottom: none;
- }
- }
- }
- }
- }
- // locator
- .page-locator {
- position: absolute;
- left: 80px;
- right: 80px;
- height: 16px;
- z-index: 8;
- &-top {
- top: 30px;
- }
- &-bottom {
- bottom: 30px;
- }
- &-item {
- position: absolute;
- width: 24px;
- border-bottom: 16px solid #000;
- top: 0;
- &:nth-of-type(1) {
- left: 0;
- }
- &:nth-of-type(2) {
- right: 96px;
- }
- }
- }
- .page-box-1 {
- .page-locator {
- &-bottom {
- .page-locator-item:nth-of-type(1) {
- right: 0;
- left: auto;
- }
- }
- &-item {
- &:nth-of-type(1) {
- left: 96px;
- }
- &:nth-of-type(2) {
- right: 0;
- }
- }
- }
- }
- // page-number
- .page-number {
- position: absolute;
- bottom: 30px;
- &-rect {
- left: 25%;
- transform: translateX(-50%);
- -webkit-transform: translateX(-50%);
- }
- &-rect-list {
- font-size: 0;
- li {
- display: inline-block;
- vertical-align: top;
- font-size: 14px;
- width: 24px;
- height: 16px;
- border: 1px solid #000;
- margin-right: 10px;
- &.rect-li-act {
- background-color: #000;
- }
- }
- }
- &-text {
- right: 25%;
- }
- &-text-cont {
- height: 16px;
- line-height: 16px;
- }
- }
- .page-box-A4 {
- .page-number-rect {
- left: 50%;
- }
- }
- // course-barcode
- .course-barcode {
- position: absolute;
- width: 200px;
- height: 40px;
- top: 10px;
- left: 50%;
- margin-left: -200px;
- text-align: center;
- img {
- display: block;
- height: 28px;
- width: 100%;
- border: none;
- }
- img[src=""] {
- display: none;
- }
- p {
- line-height: 1;
- font-size: 12px;
- margin: 0;
- }
- }
- // elem
- .elem {
- &-title {
- padding: 10px;
- font-size: 14px;
- font-weight: bold;
- color: rgba(0, 0, 0, 1);
- line-height: 1;
- white-space: normal;
- }
- &-body {
- padding: 10px;
- }
- }
- // grid
- .grid-container {
- margin-left: -10px;
- margin-right: -10px;
- }
- .grid-row {
- display: table;
- width: 100%;
- border-spacing: 10px 0;
- border-collapse: separate;
- &:nth-of-type(2) {
- margin-top: 10px;
- }
- .grid-col {
- display: table-cell;
- width: 50%;
- vertical-align: top;
- border: 1px solid #000;
- &-dash {
- border-style: dashed;
- vertical-align: middle;
- }
- }
- }
- // card-head
- .card-head {
- &-top {
- text-align: center;
- color: #000;
- }
- &-title {
- font-size: 24px;
- font-weight: bold;
- overflow: hidden;
- > h1 {
- line-height: 33px;
- white-space: nowrap;
- letter-spacing: -1px;
- }
- }
- &-subtitle {
- height: 44px;
- font-family: $--font-family;
- font-size: 14px;
- overflow: hidden;
- white-space: normal;
- margin-bottom: 10px;
- p {
- padding: 0 10px;
- line-height: 22px;
- height: 22px;
- white-space: pre;
- }
- }
- &-body {
- font-weight: normal;
- .el-col {
- padding-top: 5px;
- padding-bottom: 5px;
- }
- &-spin {
- padding: 5px 12px;
- white-space: normal;
- word-break: break-all;
- }
- .stdinfo-item {
- height: 30px;
- line-height: 30px;
- position: relative;
- overflow: hidden;
- &::after {
- content: "";
- display: block;
- position: absolute;
- width: 100%;
- border-bottom: 1px solid #000;
- bottom: 6px;
- left: 0;
- z-index: 1;
- }
- > span {
- z-index: 2;
- display: block;
- position: relative;
- font-size: 14px;
- &:first-child {
- float: left;
- background-color: #fff;
- text-align: justify;
- font-size: 0px;
- & > i {
- font-size: 14px;
- }
- &::after {
- content: "";
- display: inline-block;
- width: 100%;
- height: 0;
- line-height: 0;
- }
- }
- &:nth-of-type(2) {
- float: left;
- width: 20px;
- background-color: #fff;
- }
- &:last-child {
- margin-left: 80px;
- height: 100%;
- }
- }
- }
- .head-stdno {
- height: 100%;
- padding: 0;
- .stdno-empty {
- min-height: 130px;
- font-weight: bold;
- letter-spacing: 3px;
- text-align: center;
- position: relative;
- > p {
- position: absolute;
- left: 0;
- width: 100%;
- top: 50%;
- transform: translateY(-50%);
- -webkit-transform: translateY(-50%);
- }
- }
- .stdno-fill {
- min-height: 240px;
- height: 100%;
- position: relative;
- &-rect {
- font-size: 0;
- height: 27px;
- border-bottom: 1px solid #000;
- }
- &-number {
- display: inline-block;
- vertical-align: top;
- width: 7.692%;
- height: 100%;
- &:not(:last-child) {
- border-right: 1px solid #000;
- }
- }
- &-head {
- position: absolute;
- width: 100%;
- height: 51px;
- top: 0;
- left: 0;
- z-index: 9;
- > h5 {
- border-bottom: 1px solid #000;
- line-height: 24px;
- font-size: 14px;
- font-weight: bold;
- text-align: center;
- }
- }
- &-body {
- position: absolute;
- top: 0;
- bottom: 0;
- padding-top: 51px;
- display: table;
- width: 100%;
- }
- &-list {
- display: table-cell;
- width: 7.692%;
- padding: 1px 0;
- }
- &-option {
- margin: 8px auto;
- width: 18px;
- height: 10px;
- font-size: 12px;
- line-height: 8px;
- text-align: center;
- color: #000;
- // border-rect
- border: 1px solid #000;
- font-family: "Times New Roman", Arial, sans-serif;
- > i {
- display: inline-block;
- transform: scale(0.67, 0.67);
- -webkit-transform: scale(0.67, 0.67);
- }
- }
- }
- .stdno-auto {
- &-barcode {
- height: 70px;
- text-align: center;
- > img {
- display: block;
- height: 50px;
- width: 300px;
- margin: 0 auto;
- }
- > p {
- line-height: 20px;
- }
- }
- }
- }
- .head-notice {
- > h4 {
- font-weight: normal;
- margin-bottom: 8px;
- line-height: 20px;
- }
- &-cont {
- line-height: 1.5;
- font-size: 12px;
- margin-bottom: 5px;
- > span {
- display: block;
- &:first-child {
- width: 20px;
- white-space: nowrap;
- float: left;
- }
- &:last-child {
- margin-left: 20px;
- }
- }
- }
- &-exam-number-fill {
- span {
- display: inline;
- &:first-child {
- float: none;
- }
- &:last-child {
- margin: 0;
- }
- }
- }
- }
- .head-dynamic {
- padding: 0;
- font-size: 12px;
- border-spacing: 0;
- border-collapse: collapse;
- &-part:not(:last-child) {
- border-bottom: 1px solid #000;
- }
- &-write {
- padding: 5px 12px;
- .stdinfo-item {
- margin-bottom: 0;
- }
- > p {
- line-height: 18px;
- }
- }
- &-missfill {
- display: table;
- width: 100%;
- }
- &-miss {
- padding: 10px;
- display: table-cell;
- vertical-align: middle;
- &:nth-of-type(2) {
- border-left: 1px solid #000;
- }
- span {
- display: block;
- }
- .head-dynamic-content {
- height: 14px;
- line-height: 14px;
- }
- .dynamic-miss-title {
- width: 54px;
- float: left;
- }
- .dynamic-miss-body {
- margin-left: 54px;
- height: 14px;
- text-align: center;
- font-size: 0;
- }
- }
- &-fill {
- padding: 10px;
- p {
- display: inline-block;
- vertical-align: middle;
- line-height: 18px;
- word-wrap: normal;
- &:first-child {
- margin-right: 20px;
- }
- > span,
- > i {
- display: inline-block;
- vertical-align: middle;
- box-sizing: border-box;
- }
- &:first-child {
- i {
- width: 28px;
- height: 14px;
- background-color: #000;
- }
- }
- &:last-child {
- > i {
- width: 28px;
- height: 14px;
- border: 1px solid #000;
- font-size: 14px;
- font-weight: bold;
- margin-right: 6px;
- line-height: 12px;
- text-align: center;
- &:last-child {
- margin-right: 0;
- }
- // wkhtmltopdf 工具无法渲染如下样式:
- // &:nth-of-type(1) {
- // position: relative;
- // &::before {
- // content: "";
- // display: block;
- // position: absolute;
- // left: 30%;
- // top: 1px;
- // height: 5px;
- // width: 11px;
- // transform: rotate(-45deg);
- // border-left: 1px solid #000;
- // border-bottom: 1px solid #000;
- // }
- // }
- // &:nth-of-type(2) {
- // position: relative;
- // &::before {
- // content: "";
- // display: block;
- // position: absolute;
- // left: 7px;
- // top: 5px;
- // width: 11px;
- // transform: rotate(-45deg);
- // transform-origin: center center;
- // border-bottom: 1px solid #000;
- // }
- // &::after {
- // content: "";
- // display: block;
- // position: absolute;
- // left: 8px;
- // top: 5px;
- // width: 11px;
- // transform: rotate(45deg);
- // transform-origin: center center;
- // border-bottom: 1px solid #000;
- // }
- // }
- &:nth-of-type(3) {
- &::before {
- content: "";
- display: inline-block;
- vertical-align: top;
- margin-left: -5px;
- height: 100%;
- width: 5px;
- background-color: #000;
- }
- }
- &:nth-of-type(4) {
- &::before {
- content: "";
- display: inline-block;
- margin-top: 1px;
- width: 10px;
- height: 10px;
- border-radius: 50%;
- background-color: #000;
- }
- }
- }
- }
- }
- }
- &-rect {
- display: inline-block;
- vertical-align: middle;
- width: 24px;
- height: 12px;
- // border-rect
- border: 1px solid #000;
- font-size: 12px;
- text-align: center;
- line-height: 10px;
- color: #000;
- margin: 0 5px;
- font-family: "Times New Roman", Arial, sans-serif;
- > i {
- display: inline-block;
- transform: scale(0.67, 0.67);
- -webkit-transform: scale(0.67, 0.67);
- }
- }
- &-aorb {
- display: table;
- width: 100%;
- .dynamic-aorb-item {
- display: table-cell;
- vertical-align: middle;
- text-align: center;
- &:not(:last-child) {
- border-right: 1px solid #000;
- }
- }
- &-fill {
- .dynamic-aorb-item:first-child {
- border: none;
- }
- }
- .dynamic-aorb-title {
- width: 83px;
- }
- .dynamic-aorb-info {
- width: 50px;
- font-size: 16px;
- position: relative;
- overflow: hidden;
- .dynamic-aorb-content {
- position: absolute;
- top: 50%;
- left: 0;
- width: 100%;
- transform: translateY(-50%);
- -webkit-transform: translateY(-50%);
- z-index: auto;
- }
- }
- .dynamic-aorb-barcode {
- img {
- display: block;
- position: relative;
- margin: 0 auto;
- width: 200px;
- height: 26px;
- padding: 7px 0;
- }
- }
- .dynamic-aorb-rects {
- padding: 16px 10px;
- }
- }
- }
- }
- &-part {
- border: 1px solid #000;
- &:not(:last-child) {
- margin-bottom: 10px;
- }
- }
- &-normal {
- .head-dynamic {
- &-1 {
- .head-dynamic-part {
- height: 100%;
- }
- }
- }
- }
- &-narrow {
- .head-stdno {
- height: 138px;
- .stdno-auto {
- position: relative;
- top: 50%;
- margin-top: -40px;
- }
- }
- }
- &-handle {
- &.card-head-narrow {
- .head-stdno {
- height: 242px;
- }
- }
- }
- }
- // card-head-body-auto-resize
- .card-head-body-auto-resize {
- margin-left: -5px;
- margin-right: -5px;
- overflow: hidden;
- &.col-item-auto-height {
- .card-head-body-spin {
- height: auto;
- }
- }
- .head-dynamic-2 {
- .head-dynamic-part {
- height: auto;
- }
- }
- .rect-col {
- padding: 5px;
- &:first-child {
- float: left;
- width: 50%;
- }
- &:last-child {
- float: right;
- width: 50%;
- }
- &-item {
- border: 1px solid #000;
- &:nth-of-type(2) {
- margin-top: 10px;
- }
- &-none {
- border: none;
- margin: 0 !important;
- }
- }
- }
- }
- // elem-topic-head
- .elem-topic-head {
- text-align: center;
- .elem-body {
- padding: 0;
- border: 1px solid #000;
- }
- &-pad {
- padding-top: 10px;
- }
- &-empty {
- .elem-body {
- border-top: none;
- }
- }
- h3 {
- font-size: 16px;
- height: 29px;
- line-height: 28px;
- border-bottom: 1px dotted #000;
- font-weight: normal;
- }
- p {
- font-size: 12px;
- height: 22px;
- line-height: 22px;
- white-space: nowrap;
- overflow: hidden;
- // text-overflow: ellipsis;
- }
- }
- // elem-line
- .elem-line-horizontal {
- height: 100%;
- line-height: 30px;
- .line-body {
- display: inline-block;
- vertical-align: middle;
- width: 100%;
- border-bottom: 1px solid #000;
- }
- }
- .elem-line-vertical {
- height: 100%;
- text-align: center;
- .line-body {
- display: inline-block;
- vertical-align: top;
- height: 100%;
- border-left: 1px solid #000;
- }
- }
- // elem-lines
- .elem-lines {
- .line-item {
- display: inline-block;
- vertical-align: top;
- }
- }
- // elem-rect
- .elem-rect {
- .rect-body {
- position: absolute;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- }
- }
- // elem-text
- .elem-text {
- .text-body {
- padding: 5px;
- line-height: 1.4;
- span {
- white-space: pre-wrap;
- word-wrap: normal;
- word-break: break-all;
- &.cont-variate {
- color: #a0a0a0;
- margin: 0 2px;
- }
- }
- }
- }
- // elem-barcode
- .elem-barcode {
- height: 100%;
- border-color: transparent;
- border-width: 1pt;
- position: relative;
- > img {
- max-height: 100%;
- max-width: 100%;
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- margin: auto;
- }
- }
- // elem-image
- .elem-image {
- height: 100%;
- border-color: transparent;
- border-width: 1pt;
- position: relative;
- > p {
- position: absolute;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- display: table;
- text-align: center;
- color: #b0b0b0;
- font-size: 30pt;
- i {
- display: table-cell;
- vertical-align: middle;
- }
- }
- > img {
- max-height: 100%;
- max-width: 100%;
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- margin: auto;
- }
- }
- // elem-girds
- .elem-grids {
- > table {
- table-layout: fixed;
- border-spacing: 0;
- border-collapse: collapse;
- td {
- border: 1px solid #000;
- }
- }
- &-halving {
- > table {
- table-layout: auto;
- width: 100%;
- }
- td > div {
- padding-bottom: 100%;
- }
- }
- }
- .elem-pane {
- height: 100%;
- }
- // elem-fill-question
- .elem-fill-question {
- white-space: normal;
- // 客观题强调标记
- &-first::before {
- content: "";
- position: absolute;
- right: 0;
- top: 0;
- z-index: 99;
- color: #fff;
- padding: 6px 10px;
- line-height: 1;
- font-size: 18px;
- border-bottom-left-radius: 10px;
- }
- &-first.elem-fill-question-simple {
- &::before {
- content: "单选";
- background-color: mix(#fff, $--color-success, 20%);
- }
- }
- &-first.elem-fill-question-multiply {
- &::before {
- content: "多选";
- background-color: $--color-primary-light;
- }
- }
- &-first.elem-fill-question-boolean {
- &::before {
- content: "判断";
- background-color: mix(#fff, $--color-warning, 20%);
- }
- }
- &-boolean {
- .option-item {
- &:nth-of-type(2) i {
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAItJREFUOE/Vk9ERgCAMQ8M+GUInEyfTITKQV065KuDh8SWftHkNAQIGVxjU44cAkhHAAmCVFD8dwYktulnS3g2oiY2SAdZglmq34sS7pNn3JADJCcAGoGggaftWL2qFgzOc3OjEKbCau1sG3uo51TRN8c3BRX+E9SquAlwmU8t2EeLIf+h+B60hw4ADyTE7EWzzfYYAAAAASUVORK5CYII=);
- background-size: 100% 100%;
- width: 10px;
- height: 10px;
- margin-top: -1px;
- }
- &:nth-of-type(3) i {
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAIVJREFUOE+tk9sNwCAIRa/7MES7WTerQ7BPGxolCpKmVT+Fe3gnTL40qUcHIKKNmXMEFTsA8TmqjwKK8SyG3YIiewQQjkKMGMysOlcCgJrFAykZdX9tdq6JNprphyttOIUA4sQCXw+YKmEg/tZEIrqapoVjbEe8bpEk8tsqj3zWHtOfy7wB41tXEXo/wKEAAAAASUVORK5CYII=);
- background-size: 100% 100%;
- width: 8px;
- height: 8px;
- }
- }
- }
- .elem-body {
- padding: 10px 5px;
- font-size: 0;
- }
- .group-item {
- font-family: "Times New Roman", Arial, sans-serif;
- display: inline-block;
- vertical-align: top;
- font-size: 0;
- // margin-bottom: 20px;
- }
- .question-item {
- font-size: 0;
- }
- .option-item {
- display: inline-block;
- vertical-align: middle;
- padding: 0;
- width: 18px;
- height: 10px;
- text-align: center;
- font-size: 12px;
- line-height: 8px;
- // border-rect
- border: 1px solid #000;
- color: #000;
- box-sizing: border-box;
- > i {
- display: inline-block;
- transform: scale(0.67, 0.67);
- -webkit-transform: scale(0.67, 0.67);
- }
- &:first-child {
- text-align: center;
- border: none;
- font-size: 12px;
- line-height: 10px;
- color: #000;
- > i {
- transform: scale(0.9, 0.9);
- -webkit-transform: scale(0.9, 0.9);
- }
- }
- &:last-child {
- margin-right: 0 !important;
- }
- }
- &-vertical {
- .elem-body {
- padding: 10px 20px;
- }
- .question-item {
- display: inline-block;
- vertical-align: top;
- &:last-child {
- margin-right: 0 !important;
- }
- }
- .option-item {
- display: block;
- &:first-child {
- padding: 0;
- text-align: center;
- }
- &:last-child {
- margin-bottom: 0 !important;
- }
- }
- }
- }
- // elem-fill-area
- .elem-fill-area {
- .option-item {
- display: inline-block;
- vertical-align: middle;
- width: 30px;
- height: 16px;
- border: 1px solid #000;
- &:last-child {
- margin-right: 0 !important;
- }
- }
- &-vertical {
- .option-item {
- display: block;
- &:last-child {
- margin-bottom: 0 !important;
- }
- }
- }
- }
- // elem-fill-line
- .elem-fill-line {
- white-space: normal;
- .elem-body {
- padding: 0 15px 0 10px;
- font-size: 0;
- }
- .elem-fill-quesiton {
- display: inline-block;
- vertical-align: top;
- position: relative;
- padding: 0 1px;
- font-size: 12px;
- li {
- &.elem-fill-line {
- height: 40px;
- position: relative;
- margin: 0 10px 0 20px;
- z-index: 8;
- &::after {
- content: "";
- display: block;
- position: absolute;
- width: 100%;
- border-bottom: 1px solid #000;
- bottom: 8px;
- }
- }
- &.elem-fill-no {
- position: absolute;
- top: 2px;
- bottom: 2px;
- left: 1px;
- z-index: 9;
- min-width: 20px;
- text-align: left;
- background-color: #fff;
- border: none;
- span {
- display: block;
- position: relative;
- padding-bottom: 5px;
- padding-right: 3px;
- transform: translateY(-100%);
- -webkit-transform: translateY(-100%);
- }
- }
- &.elem-fill-comma {
- position: absolute;
- top: 0;
- right: -10px;
- z-index: 9;
- transform: translateY(-100%);
- -webkit-transform: translateY(-100%);
- width: 10px;
- padding-bottom: 4px;
- background-color: #fff;
- text-align: center;
- border: none;
- }
- }
- }
- }
- // elem-explain
- .elem-explain {
- .elem-title {
- padding-bottom: 0;
- }
- .elem-body {
- min-height: 60px;
- position: relative;
- }
- .elem-explain-no {
- position: absolute;
- left: 20px;
- top: 10px;
- font-size: 12px;
- z-index: 9;
- }
- .elem-explain-elements {
- position: absolute;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- z-index: 8;
- }
- .elem-explain-element {
- .explain-element-body {
- position: absolute;
- }
- }
- }
- // .elem-composition
- .elem-composition {
- .elem-title {
- padding-bottom: 0;
- }
- .elem-body {
- min-height: 60px;
- position: relative;
- }
- &-elements {
- position: absolute;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- z-index: 8;
- }
- .elem-composition-element {
- .composition-element-body {
- position: absolute;
- overflow: hidden;
- }
- }
- }
- // elem-fill-number
- .elem-fill-number {
- border: 1px solid #000;
- .fill-number {
- &-rect {
- font-size: 0;
- height: 27px;
- border-bottom: 1px solid #000;
- }
- &-number {
- display: inline-block;
- vertical-align: top;
- width: 7.692%;
- height: 100%;
- &:not(:last-child) {
- border-right: 1px solid #000;
- }
- }
- &-head {
- height: 51px;
- > h5 {
- border-bottom: 1px solid #000;
- line-height: 24px;
- font-size: 16px;
- font-weight: bold;
- text-align: center;
- }
- }
- &-body {
- display: table;
- width: 100%;
- }
- &-list {
- display: table-cell;
- width: 7.692%;
- padding: 1px 0;
- }
- &-option {
- margin: 8px auto;
- width: 18px;
- height: 10px;
- font-size: 12px;
- line-height: 8px;
- text-align: center;
- color: #000;
- // border-rect
- border: 1px solid #000;
- font-family: "Times New Roman", Arial, sans-serif;
- > i {
- display: inline-block;
- transform: scale(0.67, 0.67);
- -webkit-transform: scale(0.67, 0.67);
- }
- }
- }
- }
- // elem-fill-field
- .elem-fill-field {
- white-space: normal;
- overflow: hidden;
- }
- .fill-field {
- &-item {
- display: inline-block;
- padding: 0 10px;
- width: 100%;
- }
- &-content {
- height: 30px;
- line-height: 26px;
- overflow: hidden;
- position: relative;
- &::after {
- content: "";
- display: block;
- position: absolute;
- width: 100%;
- border-bottom: 1px solid #000;
- bottom: 2px;
- left: 0;
- z-index: 1;
- }
- > span {
- z-index: 2;
- display: block;
- position: relative;
- font-size: 14px;
- &:first-child {
- float: left;
- background-color: #fff;
- text-align: justify;
- font-size: 0px;
- & > i {
- font-size: 14px;
- }
- &::after {
- content: "";
- display: inline-block;
- width: 100%;
- height: 0;
- line-height: 0;
- }
- }
- &:nth-of-type(2) {
- float: left;
- width: 20px;
- background-color: #fff;
- }
- &:last-child {
- margin-left: 80px;
- height: 100%;
- }
- }
- }
- }
- // elem-fill-pane
- .elem-fill-pane {
- font-size: 0;
- white-space: normal;
- overflow: hidden;
- .fill-pane {
- &-item {
- display: inline-block;
- vertical-align: top;
- font-size: 14px;
- }
- &-cont {
- border: 1px solid #000;
- }
- }
- }
- // elem-forbid-area
- .elem-forbid-area {
- height: 100%;
- position: relative;
- .text-body {
- position: absolute;
- width: 100%;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- -webkit-transform: translateY(-50%);
- font-size: 30px;
- text-align: center;
- }
- }
- // elem-fill-table
- .elem-fill-table {
- .table {
- width: 100%;
- border-spacing: 0;
- border-collapse: collapse;
- text-align: left;
- td {
- padding: 0;
- }
- }
- }
- // elem-undertaking
- .elem-undertaking {
- position: absolute;
- width: 60px;
- top: 60px;
- bottom: 60px;
- right: 10px;
- font-size: 12px;
- line-height: 15px;
- .para-text {
- width: 15px;
- text-align: center;
- position: absolute;
- top: 0;
- span {
- display: inline-block;
- transform: rotate(90deg);
- -webkit-transform: rotate(90deg);
- }
- em {
- display: inline-block;
- margin-left: 5px;
- margin-bottom: 5px;
- height: 10px;
- line-height: 10px;
- }
- }
- .para-title {
- right: 0;
- top: 50%;
- transform: translateY(-50%);
- -webkit-transform: translateY(-50%);
- }
- .para-cl {
- right: 15px;
- }
- .para-body {
- right: 30px;
- height: 100%;
- width: 30px;
- > p {
- display: block;
- width: 15px;
- height: 100%;
- float: right;
- &:first-child {
- padding-top: 30px;
- }
- }
- }
- .para-std {
- bottom: 150px;
- top: auto;
- left: 0;
- }
- }
- // card-free-preview
- .card-free-preview {
- &:not(.card-print) {
- padding: 10px 0;
- background-color: #f0f0f0;
- .page-box {
- margin: 10px auto;
- box-shadow: 0 0 4px #ddd;
- }
- }
- .page-column-element {
- .element-item {
- position: absolute;
- overflow: hidden;
- &::before {
- display: none;
- }
- }
- }
- }
- @media print {
- .card-preview {
- padding: 0;
- .page-box {
- margin: 0 auto;
- box-shadow: none;
- page-break-after: always;
- }
- // 印刷模式:隐藏客观题强调标记
- .elem-fill-question-first {
- &::before {
- display: none;
- }
- }
- .elem-fill-question .option-item,
- .card-print .elem-fill-number .fill-number-option,
- .card-head-body .head-stdno .stdno-fill-option,
- .page-number-rect-list li,
- .card-head-body .head-dynamic-rect {
- border-width: 0.5pt;
- }
- .elem-fill-question .option-item {
- line-height: 9px;
- }
- }
- }
|