acud
Version:
acg react 组件库
217 lines (216 loc) • 5.36 kB
CSS
/* color */
/* 默认颜色 */
/* 通用-icon */
/* 标签 */
/* 默认颜色 */
/* 其他颜色 */
/* 通用 */
/* 水平 */
/* 垂直 */
/* 序号水平 */
/* 序号垂直 */
.acud-notification {
margin: 0;
padding: 0;
position: fixed;
z-index: 1010;
margin-right: 24px;
}
.acud-notification > div {
display: flex;
flex-direction: column-reverse;
}
.acud-notification-topLeft,
.acud-notification-bottomLeft {
margin-right: 0;
margin-left: 24px;
}
.acud-notification-topLeft .acud-notification-fade-enter.acud-notification-fade-enter-active,
.acud-notification-bottomLeft .acud-notification-fade-enter.acud-notification-fade-enter-active,
.acud-notification-topLeft .acud-notification-fade-appear.acud-notification-fade-appear-active,
.acud-notification-bottomLeft .acud-notification-fade-appear.acud-notification-fade-appear-active {
animation-name: NotificationLeftFadeIn;
}
.acud-notification-close-icon {
font-size: 16px;
cursor: pointer;
}
.acud-notification-hook-holder {
position: relative;
}
.acud-notification-notice {
position: relative;
width: 400px;
max-width: calc(100vw - 24px * 2);
margin-bottom: 16px;
margin-left: auto;
padding: 4px 16px;
overflow: hidden;
line-height: 1.5715;
word-wrap: break-word;
background: #fff;
border-radius: 2px;
box-shadow: 0px 2px 8px 0px rgba(7, 12, 20, 0.12);
}
.acud-notification-topLeft .acud-notification-notice,
.acud-notification-bottomLeft .acud-notification-notice {
margin-right: auto;
margin-left: 0;
}
.acud-notification-notice-message {
margin-bottom: 8px;
color: #151B26;
font-size: 14px;
line-height: 24px;
}
.acud-notification-notice-message-single-line-auto-margin {
display: block;
width: calc(400px - 16px * 2 - 24px - 48px - 100%);
background-color: transparent;
pointer-events: none;
}
.acud-notification-notice-message-single-line-auto-margin::before {
display: block;
content: '';
}
.acud-notification-notice-message .acud-notification-toast-wrap {
display: flex;
}
.acud-notification-notice-message .acud-notification-toast-wrap-left {
flex: 1;
font-size: 14px;
color: #151B26;
font-weight: 500;
}
.acud-notification-notice-message .acud-notification-toast-wrap-right {
font-size: 12px;
color: #B8BABF;
}
.acud-notification-notice-message .acud-notification-toast-wrap-right span {
font-size: 12px;
}
.acud-notification-notice-message .acud-notification-toast-wrap-no-description {
color: #151B26;
font-size: 12px;
font-weight: 400;
}
.acud-notification-notice-description {
font-size: 14px;
}
.acud-notification-notice-description .description-wrap {
margin: 4px 0 0 0;
color: #151B26;
font-size: 12px;
font-weight: 400;
}
.acud-notification-notice-with-icon .acud-notification-notice-message {
margin: 0 calc(8px + 4px * 4) 0 calc(8px + 18px);
font-size: 14px;
}
.acud-notification-notice-with-icon .acud-notification-notice-description {
margin: 0 calc(8px + 4px * 4) 0 calc(8px + 18px);
font-size: 14px;
}
.acud-notification-notice-icon {
position: absolute;
font-size: 16px;
line-height: 16px;
top: 8px;
}
.acud-notification-notice .acud-notification-notice-icon-success path {
fill: #30BF13;
}
.acud-notification-notice .acud-notification-notice-icon-info path {
fill: #2468F2;
}
.acud-notification-notice .acud-notification-notice-icon-warning path {
fill: #FF9326;
}
.acud-notification-notice .acud-notification-notice-icon-error path {
fill: #F33E3E;
}
.acud-notification-notice-close {
position: absolute;
top: 4px;
right: 16px;
outline: none;
color: #84868C;
}
.acud-notification-notice-close:hover {
color: #5C5F66;
}
.acud-notification-notice-close:active {
color: #303540;
}
.acud-notification-notice-btn {
float: right;
margin-top: 16px;
}
.acud-notification-has-description {
padding: 16px 16px;
}
.acud-notification-has-description .acud-notification-notice-icon {
top: 19.2px;
}
.acud-notification-has-description .acud-notification-notice-close {
top: 16px;
}
.acud-notification .notification-fade-effect {
animation-duration: 0.24s;
animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
animation-fill-mode: both;
}
.acud-notification-fade-enter,
.acud-notification-fade-appear {
animation-duration: 0.24s;
animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
animation-fill-mode: both;
opacity: 0;
animation-play-state: paused;
}
.acud-notification-fade-leave {
animation-duration: 0.24s;
animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
animation-fill-mode: both;
animation-duration: 0.4s;
animation-play-state: paused;
}
.acud-notification-fade-enter.acud-notification-fade-enter-active,
.acud-notification-fade-appear.acud-notification-fade-appear-active {
animation-name: NotificationFadeIn;
animation-play-state: running;
}
.acud-notification-fade-leave.acud-notification-fade-leave-active {
animation-name: NotificationFadeOut;
animation-play-state: running;
}
@keyframes NotificationFadeIn {
0% {
left: 400px;
opacity: 0;
}
100% {
left: 0;
opacity: 1;
}
}
@keyframes NotificationLeftFadeIn {
0% {
right: 400px;
opacity: 0;
}
100% {
right: 0;
opacity: 1;
}
}
@keyframes NotificationFadeOut {
0% {
right: 0;
opacity: 1;
}
100% {
right: -400px;
opacity: 0;
}
}