mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
* perf: remove CSS variables polyfill * style: fix missing calc value * perf: reduce some useless css vars
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
@import '../common/style/var.less';
|
|
|
|
.van-info {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-sizing: border-box;
|
|
white-space: nowrap;
|
|
transform: translate(50%, -50%);
|
|
transform-origin: 100%;
|
|
height: var(--info-size, @info-size);
|
|
min-width: var(--info-size, @info-size);
|
|
padding: var(--info-padding, @info-padding);
|
|
color: var(--info-color, @info-color);
|
|
font-weight: var(--info-font-weight, @info-font-weight);
|
|
font-size: var(--info-font-size, @info-font-size);
|
|
font-family: var(--info-font-family, @info-font-family);
|
|
background-color: var(--info-background-color, @info-background-color);
|
|
border: var(--info-border-width, @info-border-width) solid @white;
|
|
border-radius: var(--info-size, @info-size);
|
|
|
|
&--dot {
|
|
min-width: 0;
|
|
border-radius: 100%;
|
|
width: var(--info-dot-size, @info-dot-size);
|
|
height: var(--info-dot-size, @info-dot-size);
|
|
background-color: var(--info-dot-color, @info-dot-color);
|
|
}
|
|
}
|