ant-design/style/components/message.less
afc163 11555d3eb1 Update style for adjust iconfont baseline again
Finally, we can say goodbye to top:-1px and top:1px
2015-11-17 16:14:11 +08:00

47 lines
735 B
Plaintext

@message-prefix-cls: ant-message;
.@{message-prefix-cls} {
font-size: 12px;
position: fixed;
z-index: 1050;
width: 100%;
top: 16px;
&-notice {
width: auto;
vertical-align: middle;
position: absolute;
left: 50%;
}
&-notice-content {
position: relative;
right: 50%;
padding: 8px 16px;
border-radius: @border-radius-base;
border: 1px solid #d9d9d9;
box-shadow: @overlay-shadow;
background: #fff;
display: block;
}
&-success.anticon {
color: @success-color;
}
&-error.anticon {
color: @error-color;
}
&-info.anticon,
&-loading.anticon {
color: @primary-color;
}
.anticon {
margin-right: 8px;
font-size: 14px;
top: 1px;
}
}