// card-preview .card-preview { padding: 10px 0; background-color: #f0f0f0; color: #000; .page-box { margin: 10px auto; box-shadow: 0 0 4px #ddd; } .element-item { width: 100% !important; } } .card-print { padding: 0; .page-box { margin: 0 auto; box-shadow: none; page-break-after: always; } } // page-box .page-box { position: relative; // width: 420mm; // height: 297mm; // width: 1587px; width: 1586px; height: 1122px; background: #fff; margin: 0 auto; font-weight: normal; .page-main { height: 100%; position: relative; white-space: nowrap; margin: 0 -10px; &-3 { .page-column { width: 33.33%; } .page-column-forbid-area { &::before { transform: rotate(64.6555deg); } &::after { transform: rotate(-64.6555deg); } } } &-4 { .page-column { width: 25%; } .page-column-forbid-area { &::before { transform: rotate(70.3109deg); } &::after { transform: rotate(-70.3109deg); } } } } } // 分栏间距,默认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: 50%; font-size: 14px; padding: 0 10px; &-forbid-area { position: absolute; top: 0; left: 0; bottom: 0; right: 0; z-index: 1; border: 1px solid #333; overflow: hidden; &::before { content: ""; display: block; position: absolute; width: 1200px; border-bottom: 1px solid rgba(172, 172, 172, 1); top: 0; left: 0; transform: rotate(54.216deg); transform-origin: left; z-index: 1; } &::after { content: ""; display: block; position: absolute; width: 1200px; border-bottom: 1px solid rgba(172, 172, 172, 1); bottom: 0; left: 0; transform: rotate(-54.216deg); transform-origin: left; z-index: 1; } // wkhtmltopdf 工具无法渲染如下样式: // > p { // color: #333; // padding: 20px; // position: absolute; // top: 50%; // left: 50%; // z-index: 9; // transform: translate(-50%, -50%); // font-weight: bold; // font-size: 30px; // color: #999; // background-color: #fff; // } > p { color: #333; 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: #999; 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; &::before { content: ""; position: absolute; width: 100%; height: 100%; top: 0; left: 0; box-sizing: border-box; z-index: 2; border: 1px solid #333; 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 #333; } } } &:last-child { .element-item { &::before { border-bottom: 1px solid #333; } } .element-item-card-head.element-item-type-pre { &::before { border-bottom: none; } } } } } // locator .page-locators { position: absolute; top: 60px; left: 80px; right: 80px; bottom: 86px; z-index: 8; } .page-locator-group { position: absolute; top: 0; bottom: 0; width: 24px; &:first-child { left: 0; } &:nth-of-type(2) { left: 50%; margin-left: -12px; } &:last-child { right: 96px; } li { position: absolute; width: 24px; border-bottom: 16px solid #000; z-index: 99; &:first-child { top: -20px; } &:last-child { bottom: -46px; } } } .page-box-1 { .page-locator-group { &:first-child { left: -30px; } } } // page-number .page-number { position: absolute; bottom: 40px; &-rect { left: 152px; } &-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 { height: 0; border: none; border-bottom: 16px solid #000; } } } &-text { right: 25%; } &-text-cont { height: 16px; line-height: 16px; } } // elem .elem { &-title { padding: 10px; font-size: 14px; 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 #333; &-dash { border-style: dashed; vertical-align: middle; } } } // card-head .card-head { &-top { text-align: center; color: #000; } &-title { font-size: 24px; font-family: "楷体"; 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; 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 #333; 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; &::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 { font-weight: bold; letter-spacing: 3px; text-align: center; } .stdno-fill { min-height: 284px; height: 100%; position: relative; &-rect { font-size: 0; height: 27px; border-bottom: 1px solid #333; } &-number { display: inline-block; vertical-align: top; width: 7.692%; height: 100%; &:not(:last-child) { border-right: 1px solid #333; } } &-head { position: absolute; width: 100%; height: 51px; top: 0; left: 0; z-index: 9; > h5 { border-bottom: 1px solid #333; line-height: 24px; font-size: 16px; 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: 20px; height: 14px; font-size: 12px; line-height: 1; 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); } } } .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; } &-cont { line-height: 1.5; font-size: 12px; margin-bottom: 5px; > span { display: block; &:first-child { width: 20px; 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: 8px 10px; display: table-cell; vertical-align: middle; width: 133px; border-right: 1px solid #000; .head-dynamic-content { height: 32px; } span { display: block; } .dynamic-miss-title { width: 32px; float: left; } .dynamic-miss-body { margin-left: 32px; padding-top: 8px; text-align: center; } } &-fill { display: table-cell; vertical-align: middle; padding: 8px 10px; p { line-height: 18px; word-wrap: normal; > 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; width: 30px; height: 14px; // border-rect border: 1px solid #000; font-size: 12px; text-align: center; line-height: 1; color: #000; margin: 0 5px; font-family: "Times New Roman", Arial, sans-serif; > i { display: inline-block; 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 #333; } } &-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%); 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 #333; &: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: 286px; } } } } // 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: 289px; } &:last-child { float: right; width: 424px; } &-item { border: 1px solid #333; &: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 #333; } &-pad { padding-top: 10px; } h3 { font-size: 16px; height: 29px; line-height: 28px; border-bottom: 1px dotted #333; font-weight: normal; } p { font-size: 12px; height: 29px; line-height: 29px; 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 #333; } } &-halving { > table { table-layout: auto; width: 100%; } } } // elem-fill-question .elem-fill-question { white-space: normal; .elem-body { padding: 18px 0 18px 16px; } .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; &:last-child { margin-bottom: 0 !important; } } .option-item { display: inline-block; vertical-align: middle; padding: 0; width: 18px; height: 14px; text-align: center; font-size: 12px; line-height: 1; // border-rect border: 1px solid #000; color: #000; box-sizing: border-box; > i { display: inline-block; transform: scale(0.67, 0.67); } &:first-child { text-align: right; border-color: transparent; font-size: 12px; color: #000; > i { transform: scale(1, 1); } } &:last-child { margin-right: 0 !important; } } &-vertical { .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%); } } &.elem-fill-comma { position: absolute; top: 0; right: -10px; z-index: 9; 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; } } }