2016-09-20 09:30:35 +08:00
|
|
|
@notice-prefix-cls: ~"@{css-prefix}notice";
|
|
|
|
@icon-prefix-cls: ~"@{css-prefix}icon";
|
|
|
|
|
|
|
|
@notice-width: 335px;
|
|
|
|
@notice-padding: 16px;
|
|
|
|
@notice-margin-bottom: 10px;
|
|
|
|
|
|
|
|
.@{notice-prefix-cls} {
|
|
|
|
width: @notice-width;
|
|
|
|
margin-right: 24px;
|
2016-11-04 16:34:05 +08:00
|
|
|
position: fixed;
|
|
|
|
z-index: @zindex-notification;
|
2016-09-20 09:30:35 +08:00
|
|
|
|
2017-12-20 16:19:25 +08:00
|
|
|
&-content-with-icon{
|
|
|
|
margin-left: 51px;
|
|
|
|
}
|
|
|
|
&-with-desc&-with-icon &-title{
|
|
|
|
margin-left: 51px;
|
|
|
|
}
|
|
|
|
|
2016-09-20 09:30:35 +08:00
|
|
|
&-notice {
|
2016-11-04 16:34:05 +08:00
|
|
|
margin-bottom: @notice-margin-bottom;
|
2016-09-20 09:30:35 +08:00
|
|
|
padding: @notice-padding;
|
2017-12-21 17:42:03 +08:00
|
|
|
// border: 1px solid @border-color-split;
|
2016-11-04 16:34:05 +08:00
|
|
|
border-radius: @border-radius-small;
|
2016-09-20 09:30:35 +08:00
|
|
|
box-shadow: @shadow-base;
|
|
|
|
background: #fff;
|
2016-11-04 16:34:05 +08:00
|
|
|
line-height: 1;
|
2016-09-20 09:30:35 +08:00
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&-close {
|
|
|
|
position: absolute;
|
|
|
|
right: 16px;
|
2016-11-04 16:34:05 +08:00
|
|
|
top: 15px;
|
2016-09-20 09:30:35 +08:00
|
|
|
color: #999;
|
|
|
|
outline: none;
|
|
|
|
|
|
|
|
i{
|
|
|
|
.close-base(-3px);
|
|
|
|
}
|
|
|
|
}
|
2016-11-04 16:34:05 +08:00
|
|
|
|
2017-12-20 16:19:25 +08:00
|
|
|
&-content-with-render{
|
|
|
|
.ivu-notice-desc{
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-04 16:34:05 +08:00
|
|
|
&-with-desc{
|
|
|
|
.@{notice-prefix-cls}-notice-close{
|
|
|
|
top: 11px;
|
|
|
|
}
|
|
|
|
}
|
2016-09-20 09:30:35 +08:00
|
|
|
}
|
|
|
|
|
2017-12-20 16:19:25 +08:00
|
|
|
&-content-with-render-notitle{
|
|
|
|
margin-left: 26px;
|
|
|
|
}
|
|
|
|
|
2016-09-20 09:30:35 +08:00
|
|
|
&-title {
|
2016-09-20 17:10:17 +08:00
|
|
|
font-size: @font-size-base;
|
2017-12-20 16:19:25 +08:00
|
|
|
line-height: @font-size-base + 3; //fixed the bug that the bottom of some letters were hidden just like 'g'
|
2016-11-04 16:34:05 +08:00
|
|
|
color: @title-color;
|
|
|
|
padding-right: 10px;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
&-with-desc &-title{
|
2017-05-26 17:29:58 +08:00
|
|
|
font-weight: bold;
|
2016-11-04 16:34:05 +08:00
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
2016-09-20 09:30:35 +08:00
|
|
|
|
|
|
|
&-desc {
|
2016-09-20 17:10:17 +08:00
|
|
|
font-size: 12px;
|
2017-05-26 17:29:58 +08:00
|
|
|
//color: @legend-color;
|
|
|
|
color: @text-color;
|
2016-09-20 09:30:35 +08:00
|
|
|
text-align: justify;
|
2016-11-04 16:34:05 +08:00
|
|
|
line-height: 1.5;
|
2016-09-20 09:30:35 +08:00
|
|
|
}
|
2016-11-04 16:34:05 +08:00
|
|
|
&-with-desc&-with-icon &-desc{
|
2016-09-20 09:30:35 +08:00
|
|
|
margin-left: 51px;
|
|
|
|
}
|
|
|
|
|
2016-11-04 16:34:05 +08:00
|
|
|
&-with-icon &-title{
|
|
|
|
margin-left: 26px;
|
2016-09-20 09:30:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-icon {
|
|
|
|
position: absolute;
|
2016-11-04 16:34:05 +08:00
|
|
|
left: 20px;
|
|
|
|
margin-top: -1px;
|
|
|
|
font-size: 16px;
|
2016-09-20 09:30:35 +08:00
|
|
|
|
|
|
|
&-success {
|
|
|
|
color: @success-color;
|
|
|
|
}
|
|
|
|
&-info {
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
|
|
|
&-warning {
|
|
|
|
color: @warning-color;
|
|
|
|
}
|
|
|
|
&-error {
|
|
|
|
color: @error-color;
|
|
|
|
}
|
|
|
|
}
|
2016-11-04 16:34:05 +08:00
|
|
|
&-with-desc &-icon{
|
|
|
|
font-size: 36px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-custom-content{
|
|
|
|
&:after{
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
width: 4px;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-with-normal{
|
|
|
|
&:after{
|
|
|
|
background: @primary-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-with-info{
|
|
|
|
&:after{
|
|
|
|
background: @primary-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-with-success{
|
|
|
|
&:after{
|
|
|
|
background: @success-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-with-warning{
|
|
|
|
&:after{
|
|
|
|
background: @warning-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-with-error{
|
|
|
|
&:after{
|
|
|
|
background: @error-color;
|
|
|
|
}
|
|
|
|
}
|
2016-09-20 09:30:35 +08:00
|
|
|
}
|