2020-03-07 11:45:13 +00:00
|
|
|
@import '../../style/themes/index';
|
2019-01-02 13:01:56 +00:00
|
|
|
@import '../../style/mixins/index';
|
2018-02-06 08:43:59 +00:00
|
|
|
|
2019-01-02 13:01:56 +00:00
|
|
|
@message-prefix-cls: ~'@{ant-prefix}-message';
|
2018-02-06 08:43:59 +00:00
|
|
|
|
|
|
|
.@{message-prefix-cls} {
|
2020-12-27 06:50:32 +00:00
|
|
|
.reset-component();
|
2020-03-07 11:45:13 +00:00
|
|
|
|
2018-02-06 08:43:59 +00:00
|
|
|
position: fixed;
|
|
|
|
top: 16px;
|
|
|
|
left: 0;
|
2019-03-30 08:06:06 +00:00
|
|
|
z-index: @zindex-message;
|
|
|
|
width: 100%;
|
2018-02-06 08:43:59 +00:00
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
&-notice {
|
|
|
|
padding: 8px;
|
|
|
|
text-align: center;
|
|
|
|
&:first-child {
|
|
|
|
margin-top: -8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-notice-content {
|
2019-03-30 08:06:06 +00:00
|
|
|
display: inline-block;
|
2018-09-05 13:28:54 +00:00
|
|
|
padding: @message-notice-content-padding;
|
2019-03-30 08:06:06 +00:00
|
|
|
background: @component-background;
|
2018-02-06 08:43:59 +00:00
|
|
|
border-radius: @border-radius-base;
|
|
|
|
box-shadow: @shadow-2;
|
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-success .@{iconfont-css-prefix} {
|
|
|
|
color: @success-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-error .@{iconfont-css-prefix} {
|
|
|
|
color: @error-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-warning .@{iconfont-css-prefix} {
|
|
|
|
color: @warning-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-info .@{iconfont-css-prefix},
|
|
|
|
&-loading .@{iconfont-css-prefix} {
|
|
|
|
color: @info-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{iconfont-css-prefix} {
|
2019-03-30 08:06:06 +00:00
|
|
|
position: relative;
|
|
|
|
top: 1px;
|
2018-02-06 08:43:59 +00:00
|
|
|
margin-right: 8px;
|
|
|
|
font-size: @font-size-lg;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-notice.move-up-leave.move-up-leave-active {
|
|
|
|
overflow: hidden;
|
2019-03-30 08:06:06 +00:00
|
|
|
animation-name: MessageMoveOut;
|
2019-01-02 13:01:56 +00:00
|
|
|
animation-duration: 0.3s;
|
2018-02-06 08:43:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes MessageMoveOut {
|
|
|
|
0% {
|
|
|
|
max-height: 150px;
|
|
|
|
padding: 8px;
|
2019-03-30 08:06:06 +00:00
|
|
|
opacity: 1;
|
2018-02-06 08:43:59 +00:00
|
|
|
}
|
|
|
|
100% {
|
|
|
|
max-height: 0;
|
|
|
|
padding: 0;
|
2019-03-30 08:06:06 +00:00
|
|
|
opacity: 0;
|
2018-02-06 08:43:59 +00:00
|
|
|
}
|
|
|
|
}
|