iview/styles/components/notice.less
梁灏 40f8606f58 add Notice component
add Notice component
2016-09-20 09:30:35 +08:00

79 lines
No EOL
1.6 KiB
Text

@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} {
position: fixed;
z-index: @zindex-notification;
width: @notice-width;
margin-right: 24px;
&-notice {
padding: @notice-padding;
border-radius: @border-radius-base;
box-shadow: @shadow-base;
border: 1px solid @border-color-base;
background: #fff;
line-height: 1.5;
position: relative;
margin-bottom: @notice-margin-bottom;
overflow: hidden;
&-close {
position: absolute;
right: 16px;
top: 10px;
color: #999;
outline: none;
i{
.close-base(-3px);
}
}
}
&-title {
font-size: 14px;
color: @text-color;
margin-bottom: 4px;
}
&-desc {
font-size: @font-size-base;
color: @legend-color;
text-align: justify;
}
&-with-icon &-title{
margin-left: 51px;
margin-bottom: 4px;
}
&-with-icon &-desc {
margin-left: 51px;
}
&-icon {
position: absolute;
left: 21px;
top: 50%;
margin-top: -21px;
font-size: 28px;
&-success {
color: @success-color;
}
&-info {
color: @primary-color;
}
&-warning {
color: @warning-color;
}
&-error {
color: @error-color;
}
}
}