.check-card-form-box {
|
margin-top: 5px;
|
position: relative;
|
.card-cell {
|
position: relative;
|
border: 1px solid #bcbcbc;
|
background: #ffffff;
|
border-radius: 4px;
|
padding: 4px 6px;
|
margin-bottom: 2px;
|
line-height: 1.5;
|
transition: all 0.3s;
|
cursor: pointer;
|
|
.bg-mask {
|
position: absolute;
|
top: 0;
|
left: 0;
|
right: 0;
|
bottom: 0;
|
opacity: 0.6;
|
border-radius: 4px;
|
background-color: transparent;
|
transition: opacity 0.3s;
|
}
|
}
|
|
.content-line {
|
display: block;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
white-space: nowrap;
|
position: relative;
|
z-index: 1;
|
line-height: 1.5;
|
}
|
.card-cell.mk-background.active {
|
border-color: var(--mk-sys-color);
|
background: var(--mk-sys-color);
|
span {
|
color: #ffffff!important;
|
}
|
}
|
.card-cell.mk-background.active::after {
|
content: ' ';
|
position: absolute;
|
display: table;
|
border: 2px solid #ffffff;
|
border-top: 0;
|
border-left: 0;
|
bottom: 0;
|
right: 10px;
|
width: 6px;
|
height: 12px;
|
transform: rotate(45deg) scale(1) translate(-50%, -50%);
|
}
|
.card-cell.mk-font.active {
|
border-color: var(--mk-sys-color);
|
span {
|
color: var(--mk-sys-color)!important;
|
}
|
}
|
.card-cell.mk-custom {
|
border-color: transparent;
|
}
|
.card-cell.mk-custom.active {
|
.bg-mask {
|
opacity: 1;
|
}
|
}
|
.card-pic-cell {
|
position: relative;
|
border: 1px solid #e8e8e8;
|
border-radius: 4px;
|
background-size: cover;
|
background-position: center;
|
margin-bottom: 2px;
|
line-height: 1.5;
|
cursor: pointer;
|
transition: all 0.3s;
|
|
.content-wrap {
|
position: absolute;
|
top: 6px;
|
left: 6px;
|
right: 6px;
|
bottom: 6px;
|
.content-center {
|
position: relative;
|
top: 50%;
|
transform: translate(0px, -50%);
|
}
|
}
|
.anticon-check {
|
display: none;
|
position: absolute;
|
color: #ffffff;
|
border-radius: 20px;
|
padding: 3px;
|
width: 18px;
|
height: 18px;
|
font-size: 12px;
|
right: -2px;
|
bottom: -2px;
|
background: var(--mk-sys-color);
|
}
|
}
|
|
.card-color-cell {
|
position: relative;
|
border: 1px solid transparent;
|
border-radius: 4px;
|
padding: 4px 6px;
|
margin-bottom: 2px;
|
min-height: 32px;
|
cursor: pointer;
|
|
.anticon-check {
|
display: none;
|
position: absolute;
|
color: #ffffff;
|
border-radius: 20px;
|
padding: 3px;
|
width: 18px;
|
height: 18px;
|
font-size: 12px;
|
right: 0px;
|
bottom: 0px;
|
background: var(--mk-sys-color);
|
}
|
}
|
|
.card-pic-cell.active, .card-color-cell.active {
|
.anticon-check {
|
display: inline-block;
|
}
|
}
|
|
.ant-switch {
|
position: absolute;
|
top: -22px;
|
right: 0px;
|
opacity: 0.7;
|
}
|
|
.card-cell.disabled {
|
cursor: not-allowed;
|
}
|
.card-color-cell.disabled {
|
cursor: not-allowed;
|
}
|
.card-pic-cell.disabled {
|
cursor: not-allowed;
|
}
|
}
|
|
.check-card-form-box.mutile-line {
|
.card-cell {
|
margin-bottom: 12px;
|
}
|
.card-pic-cell {
|
margin-bottom: 12px;
|
}
|
.card-color-cell {
|
margin-bottom: 12px;
|
}
|
}
|
|
.check-card-form-box:not(.readonly) {
|
.card-cell.mk-background:not(.disabled):hover {
|
border-color: var(--mk-sys-color);
|
background: var(--mk-sys-color);
|
span {
|
color: #ffffff!important;
|
}
|
}
|
.card-cell.mk-font:not(.disabled):hover {
|
border-color: var(--mk-sys-color);
|
span {
|
color: var(--mk-sys-color)!important;
|
}
|
}
|
|
.card-cell.mk-custom:not(.active):not(.disabled):hover {
|
.bg-mask {
|
opacity: 0.8;
|
}
|
}
|
.card-pic-cell:not(.disabled):hover {
|
border-color: var(--mk-sys-color);
|
box-shadow: 0px 0px 4px var(--mk-sys-color);
|
}
|
}
|
.check-card-form-box.readonly {
|
.card-cell, .card-pic-cell {
|
cursor: not-allowed;
|
}
|
}
|
.check-card-form-box.border-hide {
|
.card-cell {
|
border: 0px;
|
}
|
}
|