123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782 |
- // 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;
- }
- }
- }
|