ant-design/components/message/style/index.less

55 lines
986 B
Plaintext
Raw Normal View History

@import "../../style/themes/default";
@message-prefix-cls: ~"@{ant-prefix}-message";
2015-08-20 16:55:42 +08:00
.@{message-prefix-cls} {
font-size: 12px;
position: fixed;
2016-03-28 16:01:37 +08:00
z-index: @zindex-message;
width: 100%;
2015-07-11 18:22:35 +08:00
top: 16px;
2016-02-22 19:25:10 +08:00
left: 0;
&-notice {
width: auto;
vertical-align: middle;
position: absolute;
2015-07-11 18:19:48 +08:00
left: 50%;
}
2015-07-11 18:00:58 +08:00
&-notice-content {
position: relative;
right: 50%;
padding: 8px 16px;
2015-07-11 18:00:58 +08:00
border-radius: @border-radius-base;
border: 1px solid @border-color-base;
2016-04-17 18:19:22 +08:00
box-shadow: @shadow-2;
background: #fff;
display: block;
}
&-success .@{iconfont-css-prefix} {
2015-07-11 18:00:58 +08:00
color: @success-color;
}
&-error .@{iconfont-css-prefix} {
2015-07-11 18:00:58 +08:00
color: @error-color;
}
&-warning .@{iconfont-css-prefix} {
color: @warning-color;
}
&-info .@{iconfont-css-prefix},
&-loading .@{iconfont-css-prefix} {
2015-07-11 18:00:58 +08:00
color: @primary-color;
}
.@{iconfont-css-prefix} {
margin-right: 8px;
2015-07-11 18:19:48 +08:00
font-size: 14px;
top: 1px;
position: relative;
}
}