element/packages/theme-default/src/notification.css

79 lines
1.3 KiB
CSS
Raw Normal View History

2016-07-27 06:15:02 +00:00
@charset "UTF-8";
@import "./common/var.css";
@component-namespace el {
@b notification {
width: 330px;
padding: 20px;
box-sizing: border-box;
border-radius: 2px;
position: fixed;
right: 16px;
background-color: #fff;
box-shadow: 0 0 6px rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .12);
transition: opacity 0.3s, transform .3s, right .3s, top 0.4s;
overflow: hidden;
2016-08-29 02:53:00 +00:00
z-index: var(--index-popper);
2016-07-27 06:15:02 +00:00
@e group {
& span {
font-size: 16px;
color: #1f2d3d;
}
& p {
font-size: 14px;
line-height: 21px;
margin: 10px 0 0 0;
color: #8492a6;
text-align: justify;
}
}
@e icon {
size: 40px;
font-size: 40px;
float: left;
position: relative;
top: 3px;
}
@e closeBtn {
position: absolute 20px 20px * *;
cursor: pointer;
color: #C0CCDA;
font-size: 14px;
&:hover {
color: #99A9BF;
}
}
& .el-icon-circle-check {
color: #13ce66;
}
& .el-icon-circle-cross {
color: #ff4949;
}
& .el-icon-information {
color: #50bfff;
}
& .el-icon-warning {
color: #f7ba2a;
}
}
.el-notification-fade-enter {
transform: translateX(100%);
right: 0;
}
2016-08-11 02:40:34 +00:00
.el-notification-fade-leave-active {
2016-07-27 06:15:02 +00:00
opacity: 0;
}
}