2016-09-12 11:59:15 +08:00
|
|
|
@alert-prefix-cls: ~"@{css-prefix}alert";
|
2016-09-19 14:50:32 +08:00
|
|
|
@icon-prefix-cls: ~"@{css-prefix}icon";
|
2016-09-12 11:59:15 +08:00
|
|
|
|
|
|
|
.@{alert-prefix-cls}{
|
|
|
|
position: relative;
|
|
|
|
padding: 8px 48px 8px 16px;
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
color: @text-color;
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 16px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
|
|
&&-with-icon{
|
|
|
|
padding: 8px 48px 8px 38px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-icon {
|
|
|
|
font-size: 14px;
|
|
|
|
top: 8px;
|
|
|
|
left: 16px;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-desc {
|
|
|
|
font-size: 12px;
|
|
|
|
color: @legend-color;
|
|
|
|
line-height: 21px;
|
|
|
|
display: none;
|
2016-09-20 09:30:35 +08:00
|
|
|
text-align: justify;
|
2016-09-12 11:59:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-success {
|
|
|
|
border: 1px solid tint(@success-color, 80%);
|
|
|
|
background-color: tint(@success-color, 90%);
|
|
|
|
.@{alert-prefix-cls}-icon {
|
|
|
|
color: @success-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-info {
|
|
|
|
border: 1px solid tint(@primary-color, 80%);
|
|
|
|
background-color: tint(@primary-color, 90%);
|
|
|
|
.@{alert-prefix-cls}-icon {
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-warning {
|
|
|
|
border: 1px solid tint(@warning-color, 80%);
|
|
|
|
background-color: tint(@warning-color, 90%);
|
|
|
|
.@{alert-prefix-cls}-icon {
|
|
|
|
color: @warning-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-error {
|
|
|
|
border: 1px solid tint(@error-color, 80%);
|
|
|
|
background-color: tint(@error-color, 90%);
|
|
|
|
.@{alert-prefix-cls}-icon {
|
|
|
|
color: @error-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-close {
|
2016-09-29 15:47:19 +08:00
|
|
|
.content-close(-3px);
|
2016-09-12 11:59:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-with-desc {
|
|
|
|
padding: 16px;
|
|
|
|
position: relative;
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
color: @text-color;
|
|
|
|
line-height: 1.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-with-desc&-with-icon{
|
|
|
|
padding: 16px 16px 16px 69px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-with-desc &-desc{
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-with-desc &-message {
|
|
|
|
font-size: 14px;
|
|
|
|
color: @text-color;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-with-desc &-icon {
|
|
|
|
top: 50%;
|
|
|
|
left: 24px;
|
|
|
|
margin-top: -21px;
|
|
|
|
font-size: 28px;
|
|
|
|
}
|
|
|
|
}
|