zent
Version:
一套前端设计语言和基于React的实现
96 lines (90 loc) • 2.33 kB
CSS
@charset "UTF-8";
.zent-notify-container {
z-index: 10000;
position: fixed;
top: 80px;
left: 50%;
transform: translateX(-50%);
}
.zent-notify-container.zent-notify-container-custom {
position: absolute;
}
.zent-notify {
padding-bottom: 16px;
display: flex;
}
.zent-notify-content {
box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.1);
box-shadow: var(--shadow-spec-modal, 0 2px 24px 0 rgba(var(--theme-rgb-shadow-bg, 0, 0, 0), 0.1));
background: #fff;
background: var(--theme-section-bg, var(--theme-stroke-9, #fff));
font-size: 14px;
line-height: 20px;
display: flex;
align-items: center;
margin: 0 auto;
padding: 14px 24px 14px 16px;
max-width: 344px;
border-radius: 2px;
box-sizing: border-box;
font-weight: 500;
word-break: break-all;
}
.zent-notify-content:empty:before {
content: "";
}
.zent-notify-content .zent-notify-content-icon {
font-size: 20px;
}
.zent-notify-content.zent-notify-content-success {
color: #45a110;
color: var(--theme-success-color, var(--theme-success-2, #45a110));
}
.zent-notify-content.zent-notify-content-warn {
color: #ed6a18;
color: var(--theme-warning-color, var(--theme-warn-2, #ed6a18));
}
.zent-notify-content.zent-notify-content-error {
color: #d42f15;
color: var(--theme-danger-color, var(--theme-error-2, #d42f15));
}
.zent-notify-content.zent-notify-content-info {
color: #333;
color: var(--theme-title-color, var(--theme-stroke-1, #333));
}
.zent-notify-content.zent-notify-content-info .zent-notify-content-icon {
color: #155bd4;
color: var(--theme-primary-bg, var(--theme-primary-4, #155bd4));
}
.zent-notify-content-icon {
margin-right: 10px;
}
.notify-appear {
transform: translateY(-100%);
opacity: 0;
}
.notify-appear-active {
transform: translateY(0%);
opacity: 1;
transition-duration: 160ms;
transition-timing-function: opacity linear, transform ease-in;
}
.notify-exit {
max-height: 48px;
opacity: 1;
}
.notify-exit .zent-notify-content {
transform: translateY(0%);
}
.notify-exit-active {
max-height: 0;
padding: 0;
opacity: 0;
transition-duration: 160ms;
transition-timing-function: opacity linear, max-height ease-out;
}
.notify-exit-active .zent-notify-content {
transform: translateY(-100%);
transition-duration: 160ms;
transition-timing-function: transform ease-out;
}