ten-design-vue
Version:
ten-vue
146 lines (145 loc) • 2.65 kB
CSS
/* dependencies icon */
/**
* 文字部分
* size 大小,line 行高, color 颜色
*/
/* button */
/* input */
/* transfer */
/* alert */
/* menu */
/* message */
/* modal */
/* badge */
/* tag */
/* progress */
/* popup */
/* tooltip */
/* loading */
/* tabs */
/* check */
/* mention */
/* popup */
/* steps */
/* tabs */
/* modal */
/* form */
/* table */
/* pagination */
/* upload */
/* collapse */
/* anchor */
/* list */
.ten-notification-fade-enter.right {
-webkit-transform: translateX(100%);
transform: translateX(100%);
}
.ten-notification-fade-enter.left {
-webkit-transform: translateX(-100%);
transform: translateX(-100%);
}
.ten-notification-fade-leave-active {
-webkit-animation: NotificationFadeOut 0.2s ease both;
animation: NotificationFadeOut 0.2s ease both;
}
@-webkit-keyframes NotificationFadeOut {
0% {
margin-bottom: 14px;
padding-top: 16px;
padding-bottom: 16px;
opacity: 1;
}
100% {
margin-bottom: 0;
padding-top: 0;
padding-bottom: 0;
opacity: 0;
}
}
@keyframes NotificationFadeOut {
0% {
margin-bottom: 14px;
padding-top: 16px;
padding-bottom: 16px;
opacity: 1;
}
100% {
margin-bottom: 0;
padding-top: 0;
padding-bottom: 0;
opacity: 0;
}
}
.ten-notification_wrap {
position: fixed;
z-index: 999;
transition: all 0.3s;
}
.ten-notification {
position: relative;
box-sizing: border-box;
width: 384px;
background: #fff;
padding: 16px 24px;
margin-bottom: 14px;
box-shadow: 3px 3px 8px 2px rgba(0, 0, 0, 0.06);
overflow: hidden;
transition: all 0.3s, opacity 0.2s;
}
.ten-notification_icon {
float: left;
font-size: 24px;
margin-right: 16px;
}
.ten-notification_icon.success {
color: #3ecc36;
}
.ten-notification_icon.error {
color: #ff3e00;
}
.ten-notification_icon.info {
color: #0052D9;
}
.ten-notification_icon.warning {
color: #ffa700;
}
.ten-notification_content {
overflow: hidden;
}
.ten-notification_title {
font-size: 16px;
color: #333;
}
.ten-notification_message {
margin-top: 16px;
opacity: 0.6;
font-size: 14px;
color: #000;
line-height: 22px;
}
.ten-notification_closeBtn {
position: absolute;
font-size: 14px;
height: 14px;
opacity: 0.32;
right: 25px;
top: 18px;
cursor: pointer;
}
/**
* 紧凑版变量覆写
* 如发现需要用到的变量没有定义,先在样式文件中抽出来在 vars.less 中添加该变量
* 变量命名方式 组件名-属性-修饰 如 button-fontsize-small
*/
/* input */
/* check */
/* select */
/* popup */
/* menu */
/* steps */
/* tabs */
/* modal */
/* table */
/* pagination */
/* upload */
/* form */