zent
Version:
一套前端设计语言和基于React的实现
64 lines (58 loc) • 1.34 kB
CSS
.zent-alert {
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
font-size: 12px;
line-height: 12px;
position: relative
}
.zent-alert.zent-alert-closable .zent-alert-content {
margin-right: 15px;
}
.zent-alert.zent-alert-closable .zent-alert-close-wrapper {
margin-left: 15px;
height: 100%;
width: 14px;
position: absolute;
top: 0;
right: 15px;
}
.zent-alert.zent-alert-closable .zent-alert-close-btn {
width: 14px;
position: absolute;
top: 50%;
-webkit-transform: translate(0, -50%);
transform: translate(0, -50%);
font-family: sans-serif;
font-size: 18px;
text-align: center;
display: inline-block;
cursor: pointer;
color: #999;
}
.zent-alert.zent-alert-size-normal {
padding: 15px;
}
.zent-alert.zent-alert-size-large {
padding: 11px 15px 11px 30px;
}
.zent-alert.zent-alert-border-rounded {
border-radius: 4px;
}
.zent-alert.zent-alert-style-info {
background: #f8f8f8;
color: #333;
}
.zent-alert.zent-alert-style-warning {
background: #fff7cc;
border: 1px solid #feb;
color: #333;
}
.zent-alert.zent-alert-style-danger {
background: #f44;
border: 1px solid #e33;
color: #fff;
}
.zent-alert.zent-alert-style-danger .zent-alert-close-btn {
color: #fff;
}