vant/src/info/index.less
neverland eb9c758acf
fix(Icon): fix badge number align (#6975)
* Revert "fix(Info): number vertical align center (#6952)"

This reverts commit 3eb8e00843dc7f5cfcac40ffd0abb2e474573035.

* style(Icon): fix badge number align

* fix(Icon): line-height
2020-08-10 15:55:03 +08:00

30 lines
652 B
Plaintext

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