// card-design .card-design { color: #000; .design-top { position: fixed; width: 100%; padding: 10px 0; height: 60px; top: 0; left: 0; z-index: 99; color: #fff; line-height: 40px; background: $--color-blue; &-logo { width: 240px; float: left; color: #fff; height: 60px; margin-top: -10px; padding: 10px 20px; font-size: 20px; text-align: left; transition: width 0.2s ease; .icon { margin-right: 12px; margin-top: -2px; cursor: pointer; } } &-info { padding-right: 20px; float: right; height: 40px; line-height: 40px; position: relative; color: $--color-text-regular; cursor: pointer; .info-help { display: inline-block; vertical-align: top; color: #fff; font-size: 20px; .icon { margin-right: 12px; margin-top: -2px; } } } } .design-main { padding-top: 60px; } // page-box .page-box { // box-shadow: $--shadow-light; box-shadow: 0 0 1px #333; &::before { content: ""; position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 7; // background-color: rgba($color: #ffffff, $alpha: 0.7); } } .page-column-main { &::before { content: ""; display: block; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 8; border: 1px dashed #d0d0d0; } } .page-column-element { .element-item-error { box-shadow: 0 0 10px inset $--color-danger; } > .element-resize { width: 100% !important; } .element-resize { > .resize-control { > .control-point, > .control-line { display: none; } } &:hover { > .resize-control { > .control-line { display: block; } } } &-act { > .resize-control { > .control-point, > .control-line { display: block; } } } } .element-resize-compact { > .resize-control { > .control-line { display: block; } } &:hover { > .resize-control { > .control-line { border-color: #4794b3; } } } &.element-resize-act { > .resize-control { > .control-line { border-color: #4794b3; &-left, &-right { border-left-style: solid; } &-top, &-bottom { border-top-style: solid; } } } } } .element-item-topic-number { position: absolute; left: -28px; top: 0; width: 24px; height: 24px; z-index: 99; line-height: 24px; font-size: 14px; text-align: center; background-color: $--color-primary; color: #fff; border-radius: 50% 0 50% 50%; } // 编辑时,小题扩展答题区之间用虚线 .element-item { &-explain { &::before { border-bottom: 1px dashed #333; } } &-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; } } } } // page-main-outer .page-main-outer { z-index: 1; background-color: rgba($color: #ffffff, $alpha: 0.7); &-act { z-index: 19; } } // design-other-pages .design-other-pages { position: absolute; width: 2000px; left: -9999px; top: 0; z-index: 1000; visibility: hidden; } // card-head-sample .card-head-sample { position: absolute; width: 2000px; left: -9999px; top: 0; z-index: 1001; visibility: hidden; } } .design-head { position: fixed; top: 60px; left: 270px; right: 0; height: 150px; z-index: 99; padding: 20px 40px; background: $--color-background; &::after { content: ""; display: block; position: absolute; width: 100%; height: 36px; left: 0; bottom: 0; z-index: 2; background: linear-gradient( 180deg, rgba(245, 245, 245, 0) 0%, rgba(238, 238, 238, 1) 100% ); } &::before { content: ""; display: block; position: absolute; width: 100%; height: 1px; left: 0; bottom: 0; z-index: 3; background: rgba(229, 229, 229, 1); } .design-control { overflow: hidden; position: relative; z-index: 9; } .control-right { float: right; width: 400px; line-height: 40px; text-align: right; .el-button { width: 100px; border-radius: 10px; } } .control-left { margin-right: 410px; white-space: nowrap; overflow-y: hidden; overflow-x: auto; .el-button { width: 80px; color: #bbb; font-weight: bold; background: rgba(245, 245, 245, 1); border-radius: 10px; } } } .design-steps { margin: 10px 0 30px; text-align: center; position: relative; height: 28px; &::after { content: ""; position: absolute; width: 100%; left: 0; top: 14px; border-bottom: 1px dashed #999; z-index: 2; } .step-item { position: absolute; top: 0; z-index: 8; padding: 0 10px; &::after { content: ""; position: absolute; width: 100%; left: 0; top: 14px; border-bottom: 1px solid #f5f5f5; z-index: 5; } > i { position: relative; display: inline-block; vertical-align: middle; height: 28px; width: 28px; border-radius: 50%; border: 2px solid $--color-primary; color: $--color-primary; line-height: 28px; font-weight: bold; z-index: 8; } > span { position: relative; display: inline-block; vertical-align: middle; margin-left: 14px; font-weight: bold; color: #999; z-index: 8; } &:first-child { left: 0; padding-left: 0; } &:last-child { right: 0; padding-right: 0; } &:nth-of-type(2) { left: 25%; transform: translateX(-50%); } &:nth-of-type(3) { left: 50%; transform: translateX(-50%); } &:nth-of-type(4) { left: 75%; transform: translateX(-50%); } } } .design-action { position: fixed; padding: 28px; top: 60px; left: 0; bottom: 0; width: 270px; z-index: 99; overflow-x: hidden; overflow-y: auto; background: linear-gradient( 90deg, rgba(247, 244, 248, 1) 0%, rgba(238, 238, 238, 1) 100% ); &::before { content: ""; display: block; position: absolute; height: 100%; width: 1px; right: 0; bottom: 0; z-index: 9; background: rgba(229, 229, 229, 1); } .action-part { margin-bottom: 5px; color: #999; &-title { padding-bottom: 10px; border-bottom: 1px solid #e5e5e5; } &-body { padding: 20px 0; } } // design-action .type-list { font-size: 0; } .type-item { font-size: 14px; display: inline-block; vertical-align: top; width: 50%; text-align: center; margin-bottom: 10px; border-radius: 10px; cursor: pointer; &:nth-of-type(even) { padding-left: 5px; } &:nth-of-type(odd) { padding-right: 5px; } .el-button { height: 40px; width: 100px; font-weight: bold; border-radius: 10px; background: rgba(245, 245, 245, 1); color: #999; &:hover { color: #fff; background: rgba(28, 208, 161, 1); box-shadow: 5px 5px 4px 0px rgba(28, 208, 161, 0.3); } } i { margin-right: 2px; font-size: 12px; } } } .design-body { position: relative; min-height: 1332px; background: #fff; padding: 180px 30px 30px 300px; } // topic-list .topic-list { position: absolute; top: -2000px; left: -5000px; z-index: auto; visibility: hidden; .element-item-card-head { width: 100% !important; height: auto !important; } .page-main-inner { overflow: hidden; } } // tool-tips .tool-tips { color: #999; } // page-prop-edit .page-prop-edit { .el-form-item { margin-bottom: 10px; } .el-form-item__label, .el-checkbox { color: #999; font-weight: bold; } .column-btn { width: 32px; height: 32px; padding: 2px 0; border-radius: 10px; .icon { margin-top: -2px; } &:hover { border-color: $--color-primary; } &:not(:first-child) { margin-left: 10px; } } .topicno-list { font-size: 0; line-height: 40px; li { display: inline-block; vertical-align: middle; margin: 0 5px 0 0; width: 24px; height: 24px; line-height: 24px; text-align: center; font-size: 14px; border-radius: 5px; background-color: $--color-primary; color: #fff; } } } // element-prop-edit .edit-dialog { .el-input-split { position: relative; display: inline-block; margin: 3px 10px; width: 10px; border-bottom: 2px solid #dddddd; } .el-input-number.is-without-controls { .el-input__inner { padding-left: 5px; padding-right: 5px; } } } // right-menu-body .right-menu-body { border: 1px solid #cccccc; border-radius: 5px; overflow: hidden; background-color: #fff; font-size: 14px; color: #666666; box-shadow: 5px 5px 4px 0px rgba(0, 0, 0, 0.1); li { padding: 6px; font-weight: 400; cursor: pointer; &:hover { background-color: #f6f6f6; color: $--color-primary; } &.li-danger:hover { color: $--color-danger; } &:not(:last-child) { border-bottom: 1px solid #dddddd; } } } // design-preview-frame .design-preview-frame { position: absolute; width: 1000px; height: 600px; left: -9999px; top: 0; z-index: 1001; visibility: hidden; } // card custom-select .custom-select { width: 100%; .select-preview { height: 40px; line-height: 36px; border: 1px solid #e0e0e0; border-radius: 5px; position: relative; overflow: hidden; cursor: pointer; &:hover { border-color: #b0b0b0; } &-main { padding: 0 30px 0 15px; } &-icon { position: absolute; top: 0; right: 0; width: 30px; height: 100%; background-color: #fff; text-align: center; } } } // color-select .color-item { display: inline-block; vertical-align: middle; width: 100px; height: 26px; } .color-menu .el-dropdown-menu__item { line-height: 30px; padding: 0 15px; } // line-style-select .style-item { display: inline-block; vertical-align: middle; width: 100px; border-bottom-width: 2px; border-bottom-color: #000; } .line-style-menu .el-dropdown-menu__item { line-height: 24px; padding: 0 10px; } // line-width-select .width-item { display: inline-block; vertical-align: middle; width: 100px; > i { display: inline-block; vertical-align: middle; width: 65px; border-bottom: 1pt solid #000; } > span { display: block; float: right; line-height: 28px; width: 40px; margin-right: -10px; text-align: center; } } .line-width-menu .el-dropdown-menu__item { line-height: 24px; padding: 0 10px; } .edit-dialog { .el-dialog__footer { text-align: right; } } // paper-params .paper-params { .params-dialog-title { font-size: 16px; > span { font-size: 14px; margin-left: 24px; color: $--color-text-regular; } } .params-main { margin-top: -10px; padding: 0 10px; } .params-head { margin-bottom: 20px; } .params-part { margin: 15px 0; } .params-title { margin-bottom: 10px; } .params-subtitle { margin-bottom: 10px; > span { display: inline-block; vertical-align: middle; &:first-child { margin-right: 20px; } } .el-input-number { width: 60px; margin: 0 5px; } } .param-sum-score { color: $--color-danger; } } // element-guide-lines .element-guide-lines { .guide-line { position: absolute; z-index: 999; &-x { border-bottom: 1px solid $--color-success; } &-y { border-left: 1px solid $--color-success; } } } @media screen and (max-width: 1600px) { .card-design { .design-top { height: 50px; &-logo { width: 200px; height: 50px; margin-top: -10px; padding: 10px 15px; font-size: 15px; line-height: 30px; .icon { width: 24px; height: 24px; margin-right: 8px; } } &-info { padding-right: 15px; height: 30px; line-height: 30px; .info-help { font-size: 15px; .icon { width: 24px; height: 24px; margin-right: 8px; } } } } .design-main { padding-top: 50px; } .design-action { padding: 20px 15px; top: 50px; width: 230px; .type-item .el-button { padding: 10px 0; width: 90px; } } .design-head { top: 50px; left: 230px; padding: 10px 20px; height: 110px; .control-right .el-button { width: 90px; } } .design-steps { margin: 10px 0; } .design-body { padding: 140px 30px 30px 250px; min-height: 1132px; } } }