Merge pull request #2667 from lison16/messagerender

make Message and Notice support render
This commit is contained in:
Aresn 2017-12-20 17:03:12 +08:00 committed by GitHub
commit c6336ce494
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 99 additions and 16 deletions

View file

@ -11,10 +11,17 @@
position: fixed;
z-index: @zindex-notification;
&-content-with-icon{
margin-left: 51px;
}
&-with-desc&-with-icon &-title{
margin-left: 51px;
}
&-notice {
margin-bottom: @notice-margin-bottom;
padding: @notice-padding;
//border: 1px solid @border-color-split;
border: 1px solid @border-color-split;
border-radius: @border-radius-small;
box-shadow: @shadow-base;
background: #fff;
@ -34,6 +41,12 @@
}
}
&-content-with-render{
.ivu-notice-desc{
display: none;
}
}
&-with-desc{
.@{notice-prefix-cls}-notice-close{
top: 11px;
@ -41,8 +54,13 @@
}
}
&-content-with-render-notitle{
margin-left: 26px;
}
&-title {
font-size: @font-size-base;
line-height: @font-size-base + 3; //fixed the bug that the bottom of some letters were hidden just like 'g'
color: @title-color;
padding-right: 10px;
overflow: hidden;
@ -53,9 +71,6 @@
font-weight: bold;
margin-bottom: 8px;
}
&-with-desc&-with-icon &-title{
margin-left: 51px;
}
&-desc {
font-size: 12px;