Jackwew e42169ac51
feat: notify 组件没有全局居中 (#3751)
Co-authored-by: www <bugEngineer@163.com>
2020-11-23 19:32:43 +08:00

35 lines
719 B
Plaintext

@import '../common/style/var.less';
@import '../common/style/theme.less';
.van-notify {
text-align: center;
word-wrap: break-word;
.theme(padding, '@notify-padding');
.theme(font-size, '@notify-font-size');
.theme(line-height, '@notify-line-height');
&__container {
position: fixed;
top: 0;
left: 0;
box-sizing: border-box;
width: 100%;
}
&--primary {
.theme(background-color, '@notify-primary-background-color');
}
&--success {
.theme(background-color, '@notify-success-background-color');
}
&--danger {
.theme(background-color, '@notify-danger-background-color');
}
&--warning {
.theme(background-color, '@notify-warning-background-color');
}
}