kd-deliver-api-3dcat
Version:
KD-DELIVER-API-3DCAT
62 lines (61 loc) • 1.19 kB
CSS
div,
i,
button {
margin: 0;
padding: 0;
}
.kd-message {
font-family: '\5FAE\8F6F\96C5\9ED1', Helvetica, sans-serif;
font-size: 12px;
z-index: 99999;
text-align: center;
}
.kd-message {
box-sizing: border-box;
position: fixed;
top: -200px;
left: 50%;
transform: translateX(-50%);
z-index: 99999;
padding: 8px 32px 8px 32px;
min-width: 20%;
max-width: 50%;
border-radius: 4px;
transition: top 0.3s;
}
/* info 消息 */
.kd-type__block—-info {
background: #edf2fc;
border: 1px solid #ebeef5;
color: #909399;
}
/* success 消息 */
.kd-type__block—-success {
background: #f0f9eb;
border: 1px solid #e1f3d8;
color: #67c23a;
}
/* error 消息 */
.kd-type__block—-error {
background: #fef0f0;
border: 1px solid #fde2e2;
color: #f56c6c;
}
/* warning 消息 */
.kd-type__block—-warning {
background: #fdf6ec;
border: 1px solid #faecd8;
color: #e6a23c;
}
.kd__icon--close {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
width: 16px;
height: 16px;
line-height: 16px;
text-align: center;
font-style: normal;
cursor: pointer;
}