vant-weapp/packages/info/index.less
neverland b71cd32306
fix(Icon): fix badge number align (#3501)
* Revert "fix(Tabbar): badge number vertical align center (#3493)"

This reverts commit f5b00be97687d21153496ab067e4117050f0b925.

* fix(Icon): fix badge number align
2020-08-10 16:01:26 +08:00

33 lines
846 B
Plaintext

@import '../common/style/var.less';
@import '../common/style/theme.less';
.van-info {
position: absolute;
top: 0;
right: 0;
box-sizing: border-box;
line-height: 1.2;
white-space: nowrap;
text-align: center;
transform: translate(50%, -50%);
transform-origin: 100%;
.theme(min-width, '@info-size');
.theme(padding, '@info-padding');
.theme(color, '@info-color');
.theme(font-weight, '@info-font-weight');
.theme(font-size, '@info-font-size');
.theme(font-family, '@info-font-family');
.theme(background-color, '@info-background-color');
.theme(border, '@info-border-width solid @white');
.theme(border-radius, '@info-size');
&--dot {
min-width: 0;
border-radius: 100%;
.theme(width, '@info-dot-size');
.theme(height, '@info-dot-size');
.theme(background-color, '@info-dot-color');
}
}