89 lines
1.7 KiB
Plaintext
89 lines
1.7 KiB
Plaintext
@import '../common/style/index.less';
|
|
|
|
@message-horizen-padding: 32rpx;
|
|
@message-vertical-padding: 24rpx;
|
|
@message-font-size: 28rpx;
|
|
@message-line-height: 44rpx;
|
|
@message-font-color: #0052d9;
|
|
@message-align: flex-start;
|
|
@message-icon-size: @icon-l;
|
|
@message-border-radius: 8rpx;
|
|
@message-z-index: 15000;
|
|
@gutter: 16rpx;
|
|
|
|
@message: ~'@{prefix}-message';
|
|
|
|
.@{message} {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
display: flex;
|
|
justify-content: @message-align;
|
|
align-items: center;
|
|
z-index: @message-z-index;
|
|
color: @message-font-color;
|
|
padding: @message-vertical-padding @message-horizen-padding;
|
|
box-sizing: border-box;
|
|
border-radius: @message-border-radius;
|
|
font-size: @message-font-size;
|
|
line-height: 1;
|
|
background: rgba(255, 255, 255, 1);
|
|
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.2);
|
|
opacity: 0;
|
|
|
|
&__text {
|
|
display: inline-block;
|
|
}
|
|
|
|
&__text-wrap {
|
|
flex: 1 1 auto;
|
|
overflow-x: hidden;
|
|
text-overflow: ellipsis;
|
|
line-height: @message-line-height;
|
|
}
|
|
|
|
&__text-nowrap {
|
|
word-break: keep-all;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&--info {
|
|
color: @primary-color;
|
|
}
|
|
|
|
&--success {
|
|
color: @success-color;
|
|
}
|
|
|
|
&--warning {
|
|
color: @warning-color;
|
|
}
|
|
|
|
&--error {
|
|
color: @error-color;
|
|
}
|
|
|
|
.@{message}__icon--left {
|
|
margin-right: @gutter;
|
|
}
|
|
|
|
.@{message}__icon--right,
|
|
.@{message}__btn--right {
|
|
flex: 0 0 auto;
|
|
margin-left: @gutter;
|
|
}
|
|
|
|
.@{message}__btn--right {
|
|
font-size: inherit;
|
|
line-height: inherit;
|
|
height: 44rpx;
|
|
line-height: 44rpx;
|
|
border-radius: @message-border-radius;
|
|
border-color: inherit;
|
|
color: inherit;
|
|
min-height: 0;
|
|
background: transparent;
|
|
}
|
|
}
|