2019-05-06 12:04:39 +08:00
|
|
|
@import '../../style/themes/index';
|
2018-12-07 16:17:45 +08:00
|
|
|
@import '../../style/mixins/index';
|
2016-04-27 20:44:36 +08:00
|
|
|
|
2018-12-07 16:17:45 +08:00
|
|
|
@message-prefix-cls: ~'@{ant-prefix}-message';
|
2015-07-11 16:40:59 +08:00
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{message-prefix-cls} {
|
2020-12-22 11:08:12 +08:00
|
|
|
.reset-component();
|
2019-04-15 10:52:00 +08:00
|
|
|
|
2015-07-11 16:40:59 +08:00
|
|
|
position: fixed;
|
2020-07-09 12:27:05 +08:00
|
|
|
top: 8px;
|
2016-02-22 19:25:10 +08:00
|
|
|
left: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
z-index: @zindex-message;
|
|
|
|
width: 100%;
|
2017-02-20 10:30:24 +08:00
|
|
|
pointer-events: none;
|
2015-07-11 16:40:59 +08:00
|
|
|
|
|
|
|
&-notice {
|
2017-02-20 10:30:24 +08:00
|
|
|
padding: 8px;
|
|
|
|
text-align: center;
|
2015-07-11 16:40:59 +08:00
|
|
|
}
|
|
|
|
|
2015-07-11 18:00:58 +08:00
|
|
|
&-notice-content {
|
2019-02-15 10:48:07 +08:00
|
|
|
display: inline-block;
|
2018-07-18 04:36:03 +08:00
|
|
|
padding: @message-notice-content-padding;
|
2019-11-26 21:11:24 +08:00
|
|
|
background: @message-notice-content-bg;
|
2015-07-11 18:00:58 +08:00
|
|
|
border-radius: @border-radius-base;
|
2016-04-17 18:19:22 +08:00
|
|
|
box-shadow: @shadow-2;
|
2017-02-20 10:30:24 +08:00
|
|
|
pointer-events: all;
|
2015-07-11 16:40:59 +08:00
|
|
|
}
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
&-success .@{iconfont-css-prefix} {
|
2015-07-11 18:00:58 +08:00
|
|
|
color: @success-color;
|
2015-07-11 16:40:59 +08:00
|
|
|
}
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
&-error .@{iconfont-css-prefix} {
|
2015-07-11 18:00:58 +08:00
|
|
|
color: @error-color;
|
2015-07-11 16:40:59 +08:00
|
|
|
}
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
&-warning .@{iconfont-css-prefix} {
|
2015-12-10 16:41:41 +08:00
|
|
|
color: @warning-color;
|
|
|
|
}
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
&-info .@{iconfont-css-prefix},
|
|
|
|
&-loading .@{iconfont-css-prefix} {
|
2017-03-23 13:57:14 +08:00
|
|
|
color: @info-color;
|
2015-07-11 16:40:59 +08:00
|
|
|
}
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{iconfont-css-prefix} {
|
2019-02-15 10:48:07 +08:00
|
|
|
position: relative;
|
|
|
|
top: 1px;
|
2015-07-11 16:40:59 +08:00
|
|
|
margin-right: 8px;
|
2016-11-08 21:07:01 +08:00
|
|
|
font-size: @font-size-lg;
|
2015-07-11 16:40:59 +08:00
|
|
|
}
|
2017-02-20 10:30:24 +08:00
|
|
|
|
2021-06-07 16:30:40 +08:00
|
|
|
&-notice.@{ant-prefix}-move-up-leave.@{ant-prefix}-move-up-leave-active {
|
2019-02-15 10:48:07 +08:00
|
|
|
animation-name: MessageMoveOut;
|
2018-12-07 16:17:45 +08:00
|
|
|
animation-duration: 0.3s;
|
2017-02-20 10:30:24 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes MessageMoveOut {
|
|
|
|
0% {
|
2017-02-20 14:44:27 +08:00
|
|
|
max-height: 150px;
|
2017-02-20 10:30:24 +08:00
|
|
|
padding: 8px;
|
2019-02-15 10:48:07 +08:00
|
|
|
opacity: 1;
|
2017-02-20 10:30:24 +08:00
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2017-02-20 10:30:24 +08:00
|
|
|
100% {
|
|
|
|
max-height: 0;
|
|
|
|
padding: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
opacity: 0;
|
2017-02-20 10:30:24 +08:00
|
|
|
}
|
2015-07-11 16:40:59 +08:00
|
|
|
}
|
2020-04-04 13:35:36 +08:00
|
|
|
|
|
|
|
@import './rtl';
|