.check-card-form-box {
|
margin-top: 10px;
|
margin-bottom: -10px;
|
.card-cell {
|
position: relative;
|
border: 1px solid #bcbcbc;
|
border-radius: 4px;
|
padding: 6px;
|
margin-bottom: 12px;
|
line-height: 1.5;
|
transition: all 0.3s;
|
cursor: pointer;
|
span {
|
display: block;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
white-space: nowrap;
|
position: relative;
|
z-index: 1;
|
}
|
.bg-mask {
|
position: absolute;
|
top: 0;
|
left: 0;
|
right: 0;
|
bottom: 0;
|
opacity: 0.5;
|
border-radius: 4px;
|
background-color: transparent;
|
transition: opacity 0.3s;
|
}
|
}
|
.card-cell:not(.bg-control).active {
|
border-color: #1890ff;
|
background: #1890ff;
|
span {
|
color: #ffffff!important;
|
}
|
}
|
.card-cell.bg-control.active {
|
.bg-mask {
|
opacity: 1;
|
}
|
}
|
.card-pic-cell {
|
position: relative;
|
border: 1px solid #bcbcbc;
|
border-radius: 4px;
|
background-size: cover;
|
background-position: center;
|
margin-bottom: 12px;
|
line-height: 1.5;
|
cursor: pointer;
|
transition: all 0.3s;
|
}
|
.card-pic-cell.active {
|
border-color: #1890ff;
|
box-shadow: 0px 0px 4px #1890ff;
|
}
|
|
.card-cell:not(.bg-control).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.disabled {
|
cursor: not-allowed;
|
}
|
.card-pic-cell.disabled {
|
cursor: not-allowed;
|
}
|
}
|
|
.check-card-form-box:not(.readonly) {
|
.card-cell:not(.bg-control):not(.disabled):hover {
|
border-color: #1890ff;
|
background: #1890ff;
|
span {
|
color: #ffffff!important;
|
}
|
}
|
.card-cell.bg-control:not(.active):not(.disabled):hover {
|
.bg-mask {
|
opacity: 0.7;
|
}
|
}
|
.card-pic-cell:not(.disabled):hover {
|
border-color: #1890ff;
|
box-shadow: 0px 0px 4px #1890ff;
|
}
|
}
|
.check-card-form-box.readonly {
|
.card-cell, .card-pic-cell {
|
cursor: not-allowed;
|
}
|
}
|